Skip to content

Conversation

gafderks
Copy link

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 line word_length=x where x is the desired length of a sample. This value can range from 1 (a single bit) to sizeof(trace_type). The setting for the number of samples (nsamples) should not be adapted as the added functionality adjusts this based on the value for word_length. This allows users to tweak word_length easily without repeatedly recalculating nsamples.

sample |= (1 << b);
offset_bit++;
}
(*mem)[i][col] = (Type) sample;
Copy link
Contributor

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
Copy link
Contributor

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

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