Compare commits

...

3 commits

3 changed files with 16 additions and 5 deletions

7
.gitignore vendored
View file

@ -67,3 +67,10 @@ apdu_scripts/
# Build Output
*.class
javacard/
# Python cache
__pycache__/
# TRNG Attack Files
TRNG_attack/data_info.txt
TRNG_attack/data.bin

View file

@ -10,6 +10,10 @@
{
"name": "AES",
"path": "./aes"
},
{
"name": "TRNG Attack",
"path": "./TRNG_attack"
}
],
"tasks": {

View file

@ -72,10 +72,10 @@ if __name__ == '__main__':
list_resources(ports, "COM")
# modify the device numbers in the following two lines:
s = serial.Serial(ports[0].device, 923076)
scope = oscilloscope.Oscilloscope(0)
s = serial.Serial(ports[3].device, 923076)
scope = oscilloscope.Oscilloscope(5)
# scope.setup_measurement()
scope.setup_measurement()
# scope.save_conf('scope_setup.conf')
scope.load_conf('scope_setup.conf')
sleep(2) # wait for the oscilloscope to process the setup
@ -83,5 +83,5 @@ if __name__ == '__main__':
# test run -- only TRNG, no recording
# run(s)
# measurement -- RESET the FPGA first! (USB disconnect+connect)
# trng_read(scope, s)
# measurement -- RESET the FPGA >first! (USB disconnect+connect)
trng_read(scope, s)