lowRISC / ot-sca

Side-channel analysis setup for OpenTitan
Apache License 2.0
27 stars 25 forks source link

[capture] Change PRNG for on-device test data generation (TVLA) #199

Open johannheyszl opened 10 months ago

johannheyszl commented 10 months ago

We currently use Python random host-side and an implementation of the same Mersenne twister on device side.

We could replace it by a SW implementation of AES to generate the data on-device.

vrozic commented 10 months ago

OT PR #20238 partially addressed this issue. It adds AES SW implementation and changes the batch-capture commands to use AES generated data as defined in TVLA Derived Test Requirements.

After merging this, my plan to update the binaries and modify the capture scripts.

m-temp commented 9 months ago

The kmac script also depends on the random function.