I am trying to run “PA_CPA_1-Using_CW-Analyzer_for_CPA_Attack” in (http://localhost:8888/tree/jupyter/archive) folder for DES using AVRCRYPTOLIB. When I am executing following code, I get specified error.
code:
from tqdm import tnrange
ktp = cw.ktp.Basic()
#ktp.key_len = 8
#ktp.text_len = 8
for i in tnrange(num_traces, desc=‘Capturing traces’):
key, text = ktp.next() # manual creation of a key, text pair can be substituted here
#scope.arm()
trace = cw.capture_trace(scope, target, text, key)
if trace is None:
continue
project.traces.append(trace)
plot.send(trace)
Error (50 times):
(ChipWhisperer Scope WARNING|File _OpenADCInterface.py:642) Timeout in OpenADC capture(), no trigger seen! Trigger forced, data is invalid. Status: 0b
(ChipWhisperer Scope WARNING|File _OpenADCInterface.py:642) Timeout in OpenADC capture(), no trigger seen! Trigger forced, data is invalid. Status: 0a
And when I changed code to as follows:
from tqdm import tnrange
ktp = cw.ktp.Basic()
#ktp.key_len = 8
ktp.text_len = 8
for i in tnrange(num_traces, desc=‘Capturing traces’):
key, text = ktp.next() # manual creation of a key, text pair can be substituted here
#scope.arm()
trace = cw.capture_trace(scope, target, text, key)
if trace is None:
continue
project.traces.append(trace)
plot.send(trace)
I get following error (50 times):
(ChipWhisperer Target WARNING|File SimpleSerial.py:419) ValueError: invalid literal for int() with base 16: ‘\nz’
(ChipWhisperer Target WARNING|File SimpleSerial.py:419) ValueError: invalid literal for int() with base 16: ‘\n’
(ChipWhisperer Target WARNING|File SimpleSerial.py:419) ValueError: invalid literal for int() with base 16: ‘’
(ChipWhisperer Target WARNING|File SimpleSerial.py:419) ValueError: invalid literal for int() with base 16: ‘’
(ChipWhisperer Target WARNING|File SimpleSerial.py:419) ValueError: invalid literal for int() with base 16: ‘’
(ChipWhisperer Target WARNING|File SimpleSerial.py:419) ValueError: invalid literal for int() with base 16: ‘’
(ChipWhisperer Target WARNING|File SimpleSerial.py:419) ValueError: invalid literal for int() with base 16: ‘’
(ChipWhisperer Target WARNING|File SimpleSerial.py:424) Unexpected end to command:
Later in code when I import following library (as mentioned in https://wiki.newae.com/Tutorial_B5-2_Breaking_DES_(Straightforward) ):
from chipwhisperer.analyzer.attacks.models import DES,SBox_output
I get following error:
ImportError: cannot import name ‘SBox_output’ from ‘chipwhisperer.analyzer.attacks.models’ (c:\users\my pc\chipwhisperer5_64\cw\home\portable\chipwhisperer\software\chipwhisperer\analyzer\attacks\models_init_.py)
kindly help me out regarding this issue