Skip to content

Commit

Permalink
[capture] Remove redundant key write
Browse files Browse the repository at this point in the history
Writing key at the begining of `capture_kmac_random()` is
redundant because `cw.capture_trace()` will send the key on
every run.

Signed-off-by: Vladimir Rozic <[email protected]>
  • Loading branch information
vrozic committed Sep 18, 2023
1 parent b8ed0f9 commit c754e4b
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion cw/capture.py
Original file line number Diff line number Diff line change
Expand Up @@ -892,7 +892,6 @@ def capture_kmac_random(ot, ktp):
"""
key, _ = ktp.next()
tqdm.write(f'Using key: {binascii.b2a_hex(bytes(key))}')
ot.target.simpleserial_write('k', key)
while True:
_, text = ktp.next()
ret = cw.capture_trace(ot.scope, ot.target, text, key, ack=False, as_int=True)
Expand Down

0 comments on commit c754e4b

Please sign in to comment.