device:
  fpga_bitstream: objs/lowrisc_systems_chip_earlgrey_cw310_0.1.bit
  fw_bin: objs/sha3_serial_fpga_cw310.bin
  pll_frequency: 100000000
  baudrate: 115200
capture:
  key_len_bytes: 16
  plain_text_len_bytes: 16
  output_len_bytes: 32
  num_samples: 4000
  scope_gain: 30
  num_traces: 100
  project_name: projects/opentitan_simple_sha3
  waverunner_ip: 192.168.1.228
  batch_prng_seed: 0
plot_capture:
  show: true
  num_traces: 100
  trace_image_filename: projects/sample_traces_sha3.html
  # The ADC output is in the interval [-0.5, 0.5). Define safety margin.
  amplitude_max: 0.48

device:
  fpga_bitstream: objs/lowrisc_systems_chip_earlgrey_cw310_0.1.bit
  fw_bin: objs/sha3_serial_fpga_cw310.bin
  pll_frequency: 100000000
  baudrate: 115200
capture:
  key_len_bytes: 16
  plain_text_len_bytes: 16
  output_len_bytes: 32
  # Samples per trace - We oversample by 20x and KMAC is doing 24 or 96 cycles
  # for the key absorb w/o or w/ DOM, respectively, as well as 23 cycles for
  # XORing the key into the state.
  # w/o DOM
  num_samples: 1600
  # w/ DOM
  #num_samples: 3200
  # Offest in samples - During the first activity block, KMAC just absorbs the
  # fixed prefix (23 cycles XORing + 24 or 96 cycles absorbing w/o or w/ DOM,
  # respectively). This first activity block can be skipped.
  # w/o DOM
  offset: 860
  # w/ DOM
  #offset: 2300
  scope_gain: 30
  num_traces: 100
  project_name: projects/opentitan_simple_sha3
  waverunner_ip: 192.168.1.228
  batch_prng_seed: 0
plot_capture:
  show: true
  num_traces: 100
  trace_image_filename: projects/sample_traces_sha3.html
  # The ADC output is in the interval [-0.5, 0.5). Define safety margin.
  amplitude_max: 0.48

Adjust capture window for SHA3
Adjust capture window for SHA3

During the first and third activity blocks, KMAC absorbs the fixed
prefix and the uncritical message, respectively. For SCA we are mainly
interested in the middle activity block when KMAC XORs the key into
the state and then performs the key absorption. To optimize capture
and processing, this commit adjust the capture offset and number of
samples to only capture this middle activity block.

Signed-off-by: Pirmin Vogel <386a7fc8e7338ed7899b4d9883c0ebec5de81366@lowrisc.org>
