YAARX: Yet Another ARX Toolkit
0.1
|
Header file for adp-rot.cc: More...
Go to the source code of this file.
Functions | |
double | adp_lrot (WORD_T da, WORD_T db, int r) |
void | adp_lrot_odiffs (const WORD_T da, const int r, WORD_T dx[4], double P[4]) |
double | adp_lrot_exper (const WORD_T da, const WORD_T db, const int r) |
double | adp_lrot2_exper (const WORD_T da, const WORD_T db_r, const WORD_T db_s, const int r, const int s) |
Header file for adp-rot.cc:
double adp_lrot | ( | WORD_T | da, |
WORD_T | db, | ||
int | r | ||
) |
The ADD differential probability of (left) rotation (LROT):
double adp_lrot2_exper | ( | const WORD_T | da, |
const WORD_T | db_r, | ||
const WORD_T | db_s, | ||
const int | r, | ||
const int | s | ||
) |
The ADD differential probability of one input a
left rotated by two constants in parallel: b1 = a <<< r, b2 = a <<< s .
double adp_lrot_exper | ( | const WORD_T | da, |
const WORD_T | db, | ||
const int | r | ||
) |
The ADD differential probability of (left) rotation (LROT): computed experimentally over all inputs.
void adp_lrot_odiffs | ( | const WORD_T | da, |
const int | r, | ||
WORD_T | dx[4], | ||
double | P[4] | ||
) |
For given input difference da
, generate all four possible output ADD differences after left rotation together with their probabilities.