YAARX: Yet Another ARX Toolkit
0.1
|
#include <rc5-eq.hh>
Data Fields | |
pair_t | cp_pair |
WORD_T | dx |
WORD_T | y |
WORD_T | yy |
uint32_t | rot_const |
uint32_t | rot_const_prev |
bool | b_aux_data |
uint64_t | nvariants |
Parameters for the last round equation in x: (y - x) = (y - (x ^ dx))
The Boolean variable b_aux_data
indicated the presence of auxiliray data such as e.g. the values of the rotation constants from this and the previous rounds resp. rot_const_prev
and rot_const
. If the latter are known then the following log2(w) bits of x can be computed, where w is the word size in bits:
x[(rot_const + log2(w)) : rot_const] = (rot_const_prev ^ rot_const).
Example: x[(r6 + 5) : r6] = (r6 ^ r7) = (X[6] & 0x1F) ^ (X[7] & 0x1F).