ot-sca icon indicating copy to clipboard operation
ot-sca copied to clipboard

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

Open johannheyszl opened this issue 2 years ago • 2 comments

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

  • There is a danger of the Python class changing.
  • This is not precisely in line with the definition of TVLA.
  • Using something like AES to generate random data is very straightforward / comprehensible.

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

johannheyszl avatar Oct 23 '23 12:10 johannheyszl

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.

vrozic avatar Nov 14 '23 11:11 vrozic

The kmac script also depends on the random function.

m-temp avatar Nov 27 '23 15:11 m-temp