The XOR differential probability of ADD .
More...
#include "common.hh"
#include "xdp-add.hh"
|
void | xdp_add_alloc_matrices (gsl_matrix *A[2][2][2]) |
|
void | xdp_add_free_matrices (gsl_matrix *A[2][2][2]) |
|
void | xdp_add_normalize_matrices (gsl_matrix *A[2][2][2]) |
|
void | xdp_add_print_matrices (gsl_matrix *A[2][2][2]) |
|
void | xdp_add_print_matrices_sage (gsl_matrix *A[2][2][2]) |
|
void | xdp_add_sf (gsl_matrix *A[2][2][2]) |
|
double | xdp_add (gsl_matrix *A[2][2][2], WORD_T da, WORD_T db, WORD_T dc) |
|
double | xdp_add_exper (const WORD_T da, const WORD_T db, const WORD_T dc) |
|
WORD_T | aop (WORD_T x, WORD_T n_in) |
|
WORD_T | cap (WORD_T x, WORD_T y) |
|
bool | is_eq (WORD_T x, WORD_T y, WORD_T z) |
|
WORD_T | eq (const WORD_T x, const WORD_T y, const WORD_T z) |
|
WORD_T | eq_unoptimized (const WORD_T x, const WORD_T y, const WORD_T z) |
|
bool | xdp_add_is_nonzero (WORD_T da, WORD_T db, WORD_T dc) |
|
WORD_T | eq_unoptimized (const WORD_T x, const WORD_T y, const WORD_T z, const uint32_t word_size) |
|
The XOR differential probability of ADD .
- Author
- V.Velichkov, vesse.nosp@m.lin..nosp@m.velic.nosp@m.hkov.nosp@m.@uni..nosp@m.lu
- Date
- 2012-2013
WORD_T aop |
( |
WORD_T |
x, |
|
|
WORD_T |
n_in |
|
) |
| |
The all-one parity function (AOP) [Algorithm 1, Lipmaa, Moriai, FSE 2001]
y = aop(x): y[i] = 1 iff x[i..j] = 11..1 has odd length .
WORD_T cap |
( |
WORD_T |
x, |
|
|
WORD_T |
y |
|
) |
| |
WORD_T eq |
( |
const WORD_T |
x, |
|
|
const WORD_T |
y, |
|
|
const WORD_T |
z |
|
) |
| |
WORD_T eq_unoptimized |
( |
const WORD_T |
x, |
|
|
const WORD_T |
y, |
|
|
const WORD_T |
z, |
|
|
const uint32_t |
word_size |
|
) |
| |
Same as eq but taking the word size as in input parameter
- Note
- credits: Yann Le Core
bool is_eq |
( |
WORD_T |
x, |
|
|
WORD_T |
y, |
|
|
WORD_T |
z |
|
) |
| |
Check if three integers are equal.
- Parameters
-
x | first input word |
y | second input word. |
z | third input word. |
- Returns
TRUE
if ; FALSE
otherwise.
double xdp_add |
( |
gsl_matrix * |
A[2][2][2], |
|
|
WORD_T |
da, |
|
|
WORD_T |
db, |
|
|
WORD_T |
dc |
|
) |
| |
void xdp_add_alloc_matrices |
( |
gsl_matrix * |
A[2][2][2] | ) |
|
Allocate memory for the transition probability matrices for .
- Parameters
-
A | transition probability matrices for . |
- See Also
- xdp_add_free_matrices
double xdp_add_exper |
( |
const WORD_T |
da, |
|
|
const WORD_T |
db, |
|
|
const WORD_T |
dc |
|
) |
| |
void xdp_add_free_matrices |
( |
gsl_matrix * |
A[2][2][2] | ) |
|
Free memory reserved by a previous call to xdp_add_alloc_matrices.
- Parameters
-
A | transition probability matrices for . |
bool xdp_add_is_nonzero |
( |
WORD_T |
da, |
|
|
WORD_T |
db, |
|
|
WORD_T |
dc |
|
) |
| |
Checks of the differential (da, db -> dc) is possible.
void xdp_add_normalize_matrices |
( |
gsl_matrix * |
A[2][2][2] | ) |
|
Transform the elements of A into probabilities.
- Parameters
-
A | transition probability matrices for . |
void xdp_add_print_matrices |
( |
gsl_matrix * |
A[2][2][2] | ) |
|
Print the matrices for .
- Parameters
-
A | transition probability matrices for . |
void xdp_add_print_matrices_sage |
( |
gsl_matrix * |
A[2][2][2] | ) |
|
Print the matrices for in a format readable by the computer algebra system Sage (http://www.sagemath.org/).
- Parameters
-
A | transition probability matrices for . |
void xdp_add_sf |
( |
gsl_matrix * |
A[2][2][2] | ) |
|