naufusa
September 8, 2021, 12:35am
21
I am not using Jupyter. I installed ChipWhisperer 5.5 directly (no VM).
I am getting the below settings when I print(scope.clock). Is it correct?
scope = cw.scope()
scope.gain.db = 25
scope.adc.samples = 129
scope.adc.offset = 0
scope.adc.basic_mode = “rising_edge”
scope.clock.adc_src = “extclk_x4”
scope.trigger.triggers = “tio4”
scope.io.tio1 = “serial_rx”
scope.io.tio2 = “serial_tx”
scope.io.hs2 = “disabled”
print(scope.clock)
adc_src = extclk_x4
adc_phase = 0
adc_freq = 40001621
adc_rate = 40001621.0
adc_locked = True
freq_ctr = 10000408
freq_ctr_src = extclk
clkgen_src = system
extclk_freq = 10000000
clkgen_mul = 2
clkgen_div = 1
clkgen_freq = 192000000.0
clkgen_locked = True
That looks alright.
The other thing you might want to do is insert a small delay after the reset, for example:
scope.clock.reset_adc()
time.sleep(0.1)
assert scope.clock.adc_locked
naufusa
September 8, 2021, 1:28am
23
Thanks, Pierre, It is working now.
naufusa
September 8, 2021, 1:57am
24
Hi, I performed the TVLA testing on AES using the python script: chipwhisperer-jupyter/PA_TVLA_1-Performing_TVLA_Testing_for_Crypto_Validation.ipynb at e33f4a2c822d7c195674b11a1de72828907e7255 · newaetech/chipwhisperer-jupyter · GitHub
The scripts are working fine without error (i.e., Capturing Traces, Analysis, and Tests). It is printed values of num_traces =4000, num_points=129. But how to plot the TVLA results as per the following figure?
The notebook you refer to does TVLA on software AES, and I’m guessing that the figure you show is from a hardware AES on the CW305?
You can easily run that notebook on a CW305 target – just change the target and set it up as it is done in our CW305 demo notebooks.
Our updated TVLA tutorials (under courses/sca203) are still a work-in-progress; we’ll update them when we can. We do have a brand new demo of TVLA on a hardware ECC target:
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Breaking Hardware ECC on CW305 FPGA, part 5\n",
"\n",
"This builds on CW305_ECC parts 1, 2, 3 and 4 notebooks; be sure to digest them before starting this one.\n",
"\n",
"In this notebook, we look at what TVLA can tell us about our target's leakage.\n",
"\n",
"The tutorial was developed with a CW-Pro with the 100t FPGA; the observations made in the attack's development should be accurate if you're using the same, but other combinations of CW-Pro / CW-Lite / CW-Husky / 100t / 35t may behave somewhat differently."
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Setup\n",
This file has been truncated. show original