YAARX: Yet Another ARX Toolkit
0.1
|
Analysis of block cipher Threefish – common routines. More...
Functions | |
void | threefish32_mix (uint32_t X[4], uint32_t rot_const_0, uint32_t rot_const_1) |
void | threefish32 (uint32_t nrounds, uint32_t rot_const[THREEFISH_MAX_NROUNDS][2], uint32_t X[4], uint32_t Y[4]) |
void | threefish64_mix (uint64_t X[4], uint64_t rot_const_0, uint64_t rot_const_1) |
void | threefish64 (uint64_t nrounds, uint32_t rot_const[8][2], uint64_t X[4], uint64_t Y[4]) |
void | threefish32_print_dset (diff_set_t DX[4]) |
void | threefish32_print_prob (double P[4]) |
void | threefish32_print_dset_trail (uint32_t nrounds, diff_set_t DT[THREEFISH_MAX_NROUNDS][4], double P[THREEFISH_MAX_NROUNDS][4]) |
Variables | |
uint32_t | g_threefish32_rot_const [12][2] |
uint32_t | g_threefish64_rot_const [8][2] |
Analysis of block cipher Threefish – common routines.
void threefish32 | ( | uint32_t | nrounds, |
uint32_t | rot_const[THREEFISH_MAX_NROUNDS][2], | ||
uint32_t | X[4], | ||
uint32_t | Y[4] | ||
) |
Threefish-256 with 32-bit word size Reference source code: http://www.schneier.com/code/threefish.zip
void threefish32_mix | ( | uint32_t | X[4], |
uint32_t | rot_const_0, | ||
uint32_t | rot_const_1 | ||
) |
The MIX primitive of 32-bit Threefish.
void threefish64 | ( | uint64_t | nrounds, |
uint32_t | rot_const[8][2], | ||
uint64_t | X[4], | ||
uint64_t | Y[4] | ||
) |
Threefish-256 with 64-bit word size Reference source code: http://www.schneier.com/code/threefish.zip
void threefish64_mix | ( | uint64_t | X[4], |
uint64_t | rot_const_0, | ||
uint64_t | rot_const_1 | ||
) |
The MIX primitive of 64-bit Threefish.
uint32_t g_threefish32_rot_const[12][2] |
Example rotation constants for 32-bit version of Threefish.
uint32_t g_threefish64_rot_const[8][2] |
Rotation constants for the 64-bit version of Threefish (the original version).