Skip to content

Commit

Permalink
lint fix
Browse files Browse the repository at this point in the history
Signed-off-by: {Johann Heyszl} <[email protected]>
  • Loading branch information
johannheyszl committed Oct 10, 2023
1 parent e76f8cf commit abf97b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cw/simple_capture_aes_sca.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
import yaml
from Crypto.Cipher import AES
from tqdm import tqdm
from waverunner import WaveRunner
# from waverunner import WaveRunner

from util import device, plot, trace_util

Expand Down Expand Up @@ -102,7 +102,7 @@ def abort_handler_during_loop(project, sig, frame):
print("Warning: Timeout happened during capture")

# Get response and verify
response = cwfpgahusky.target.simpleserial_read('r',
response = cwfpgahusky.target.simpleserial_read('r',
cwfpgahusky.target.output_len, ack=False)
if binascii.b2a_hex(response) != binascii.b2a_hex(cipher.encrypt(bytes(text))):
raise RuntimeError(f'Bad ciphertext: {response} != {cipher.encrypt(bytes(text))}.')
Expand Down

0 comments on commit abf97b1

Please sign in to comment.