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

[tvla] minor clean-up changes #154

Merged
merged 2 commits into from
Sep 12, 2023
Merged

[tvla] minor clean-up changes #154

merged 2 commits into from
Sep 12, 2023

Conversation

vrozic
Copy link
Contributor

@vrozic vrozic commented Sep 8, 2023

This PR consists of two commits with minor clean-ups for tvla.py.

  1. Moves all functions for computing t-tests into a separate file
  2. Makes 'HAMMING_WEIGHT' the default model for AES leakage

@vrozic vrozic force-pushed the tvla-util branch 2 times, most recently from f83c3de to a52c5ca Compare September 8, 2023 16:00
Copy link
Collaborator

@vogelpi vogelpi left a comment

Choose a reason for hiding this comment

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

Thanks @vrozic , LGTM.

I have a question regarding where to place the ttest.py file. We could move it to a different folder as this is not CW-specific.

cw/tvla.py Outdated Show resolved Hide resolved
@vrozic vrozic force-pushed the tvla-util branch 2 times, most recently from 211447b to d6619b0 Compare September 12, 2023 14:19
This commit moves functions needed for computing t-tests from
tvla.py into a separate file.
The goal is to declutter tvla script to make it easier for
maintaining and debugging.

Signed-off-by: Vladimir Rozic <[email protected]>
AES leakage can be computed using either HAMMING_WEIGHT or
HAMMING_DISTANCE. HAMMING_DISTANCE was useful in the early stages
of the project for analysing unprotected implemtation and debugging
the setup. However, now we use only HAMMING_WEIGHT model for TVLA
so it makes sense to make it the default.

Signed-off-by: Vladimir Rozic <[email protected]>
@vrozic vrozic merged commit b8ed0f9 into lowRISC:master Sep 12, 2023
2 checks passed
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