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

Tests for adp-rot.cc. More...

#include "common.hh"
#include "adp-rot.hh"

Functions

void test_adp_lrot ()
 
void test_adp_lrot_all ()
 
void test_adp_lrot_rand ()
 
void test_adp_lrot2 ()
 
WORD_T ddrot (WORD_T x, WORD_T lsb_mask)
 
void adp_ddt_ddrot (WORD_T **D, WORD_T D_len)
 
void adp_ddt_ddrot_approx (WORD_T **D, WORD_T D_len)
 
void xdp_ddt_ddrot_approx (WORD_T **D, WORD_T D_len)
 
void xdp_ddt_ddrot (WORD_T **D, WORD_T D_len)
 
void print_ddt (WORD_T **D, WORD_T D_len)
 
void test_rc5_dp_ddrot ()
 
int main ()
 

Detailed Description

Function Documentation

void adp_ddt_ddrot ( WORD_T **  D,
WORD_T  D_len 
)

Compute ADD difference distribution table (DDT) for the data dependent rotation operation (DDROT)

void adp_ddt_ddrot_approx ( WORD_T **  D,
WORD_T  D_len 
)

Approximated computation of ADD difference distribution table (DDT) for the data dependent rotation operation (DDROT)

WORD_T ddrot ( WORD_T  x,
WORD_T  lsb_mask 
)

data dependent rotation operation (DDROT) lsb_mask covers log2(WORD_SIZE) LS bits

void test_rc5_dp_ddrot ( )

test_rc5_dp_ddrot(); Test the differential probability (DP) of data dependent rotations (DDROT)

void xdp_ddt_ddrot ( WORD_T **  D,
WORD_T  D_len 
)

Compute XOR difference distribution table (DDT) for the data dependent rotation operation (DDROT)

void xdp_ddt_ddrot_approx ( WORD_T **  D,
WORD_T  D_len 
)

Approximated computation of XOR difference distribution table (DDT) for the data dependent rotation operation (DDROT)