Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[otbn/tvla] Add batch mode for OTBN vertical ecc256 keygen capture #128

Merged
merged 1 commit into from
Mar 6, 2023

Conversation

wettermo
Copy link
Contributor

@wettermo wettermo commented Mar 3, 2023

This commit adds

  • A batch mode capture function for OTBN vertical ecc256 keygen analysis.
  • Additional capture and tvla config files suitable to run with the batch mode (configuration parameters have to be different to the non-batch mode).

The batch mode increases the capture rate, compared to non-batch mode, by approx. 2000% (at least on my FPGA setup). (Before: ca. 20 Traces/s, Now: ca. 400 Traces/s)

First TVLA results look good: (first plot: masks off, 10k traces, second plot: masks on, 40k traces)

otbn_fixed_vs_random_batch_mask_off_10k_traces
otbn_fixed_vs_random_batch_mask_on_40k_traces

Once the corresponding PR for the serial device code (lowRISC/opentitan#17416) is merged I'll open another PR for the built binary.

cw/tvla_cfg_otbn_batch..yaml Outdated Show resolved Hide resolved
@m-temp m-temp mentioned this pull request Mar 3, 2023
Copy link
Contributor

@vrozic vrozic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To me this looks ready to merge.
Thanks @wettermo for working on this

@wettermo wettermo merged commit 49b9dd0 into lowRISC:master Mar 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants