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

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)
 

Detailed Description

Header file for adp-rot.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

double adp_lrot ( WORD_T  da,
WORD_T  db,
int  r 
)

The ADD differential probability of (left) rotation (LROT): $\mathrm{adp}^{\mathrm{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): $\mathrm{adp}^{\mathrm{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.