-
Notifications
You must be signed in to change notification settings - Fork 36
Implemented read-out of trace files for custom sample lengths #12
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
base: master
Are you sure you want to change the base?
Conversation
…nto word_length
…_length Conflicts: utils.cpp
sample |= (1 << b); | ||
offset_bit++; | ||
} | ||
(*mem)[i][col] = (Type) sample; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think in some weird cases (trace_type=d, word_length=...) the sample will be 64b.
So "int" is too small for sample.
* The number of samples in n_samples must not be altered upon changing the word length | ||
* in the configuration file since this is already accounted for. | ||
* | ||
* "default" = use type_trace defined length |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
=> use "trace_type"
that's the correct keyword in the config file
The functionality was added to define in the configuration the length of a sample (a word) in the trace file. This gives the functionality of compressing or expanding the traces before they are fed into the attack.
To make use of the added functionality, you need to add to the
.config
file in the General section a lineword_length=x
wherex
is the desired length of a sample. This value can range from 1 (a single bit) tosizeof(trace_type)
. The setting for the number of samples (nsamples
) should not be adapted as the added functionality adjusts this based on the value forword_length
. This allows users to tweakword_length
easily without repeatedly recalculatingnsamples
.