YAARX: Yet Another ARX Toolkit  0.1
 All Data Structures Files Functions Variables Macros Pages
threefish.hh File Reference

Header file for threefish.cc: More...

Go to the source code of this file.

Macros

#define THREEFISH_MAX_NROUNDS   20
 

Functions

void threefish32_print_dset (diff_set_t DX[4])
 
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 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]
 

Detailed Description

Header file for threefish.cc:

Author
V.Velichkov, vesse.nosp@m.lin..nosp@m.velic.nosp@m.hkov.nosp@m.@uni..nosp@m.lu
Date
2012-2013

Function Documentation

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.

Variable Documentation

uint32_t g_threefish32_rot_const[12][2]

Example rotation constants for 32-bit version of Threefish.