Compare commits
No commits in common. "da3db1a1676b9fa2a1d77191df95a5fcbc650f4e" and "1901ad680df2e902689df54dc063265f1ecf9b6f" have entirely different histories.
da3db1a167
...
1901ad680d
3 changed files with 5 additions and 16 deletions
7
.gitignore
vendored
7
.gitignore
vendored
|
@ -67,10 +67,3 @@ apdu_scripts/
|
||||||
# Build Output
|
# Build Output
|
||||||
*.class
|
*.class
|
||||||
javacard/
|
javacard/
|
||||||
|
|
||||||
# Python cache
|
|
||||||
__pycache__/
|
|
||||||
|
|
||||||
# TRNG Attack Files
|
|
||||||
TRNG_attack/data_info.txt
|
|
||||||
TRNG_attack/data.bin
|
|
||||||
|
|
|
@ -10,10 +10,6 @@
|
||||||
{
|
{
|
||||||
"name": "AES",
|
"name": "AES",
|
||||||
"path": "./aes"
|
"path": "./aes"
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "TRNG Attack",
|
|
||||||
"path": "./TRNG_attack"
|
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"tasks": {
|
"tasks": {
|
||||||
|
|
|
@ -72,10 +72,10 @@ if __name__ == '__main__':
|
||||||
list_resources(ports, "COM")
|
list_resources(ports, "COM")
|
||||||
|
|
||||||
# modify the device numbers in the following two lines:
|
# modify the device numbers in the following two lines:
|
||||||
s = serial.Serial(ports[3].device, 923076)
|
s = serial.Serial(ports[0].device, 923076)
|
||||||
scope = oscilloscope.Oscilloscope(5)
|
scope = oscilloscope.Oscilloscope(0)
|
||||||
|
|
||||||
scope.setup_measurement()
|
# scope.setup_measurement()
|
||||||
# scope.save_conf('scope_setup.conf')
|
# scope.save_conf('scope_setup.conf')
|
||||||
scope.load_conf('scope_setup.conf')
|
scope.load_conf('scope_setup.conf')
|
||||||
sleep(2) # wait for the oscilloscope to process the setup
|
sleep(2) # wait for the oscilloscope to process the setup
|
||||||
|
@ -83,5 +83,5 @@ if __name__ == '__main__':
|
||||||
# test run -- only TRNG, no recording
|
# test run -- only TRNG, no recording
|
||||||
# run(s)
|
# run(s)
|
||||||
|
|
||||||
# measurement -- RESET the FPGA >first! (USB disconnect+connect)
|
# measurement -- RESET the FPGA first! (USB disconnect+connect)
|
||||||
trng_read(scope, s)
|
# trng_read(scope, s)
|
||||||
|
|
Loading…
Reference in a new issue