The ADD differential probability of XOR with one fixed input (FI): .
More...
#include "common.hh"
#include "adp-xor-fi.hh"
The ADD differential probability of XOR with one fixed input (FI): .
- Author
- V.Velichkov, vesse.nosp@m.lin..nosp@m.velic.nosp@m.hkov.nosp@m.@uni..nosp@m.lu
- Date
- 2012-2013
- See Also
- adp-xor.cc
double adp_xor_fixed_input |
( |
gsl_matrix * |
A[2][2][2], |
|
|
uint32_t |
a, |
|
|
uint32_t |
db, |
|
|
uint32_t |
dc |
|
) |
| |
void adp_xor_fixed_input_alloc_matrices |
( |
gsl_matrix * |
A[2][2][2] | ) |
|
double adp_xor_fixed_input_exper |
( |
const uint32_t |
a, |
|
|
const uint32_t |
db, |
|
|
const uint32_t |
dc |
|
) |
| |
void adp_xor_fixed_input_free_matrices |
( |
gsl_matrix * |
A[2][2][2] | ) |
|
Free memory reserved by a previous call to adp_xor_fixed_input_alloc_matrices.
- Parameters
-
A | transition probability matrices for . |
void adp_xor_fixed_input_normalize_matrices |
( |
gsl_matrix * |
A[2][2][2] | ) |
|
Transform the elements of A into probabilities.
- Parameters
-
A | transition probability matrices for . |
void adp_xor_fixed_input_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 adp_xor_fixed_input_sf |
( |
gsl_matrix * |
A[2][2][2] | ) |
|
S-function for : .
- Parameters
-
A | zero-initialized set of matrices. |
- Returns
- Transition probability matrices A.
A[2][2][2] = A[a[i]][db[i]][dc[i]], where
- a[i] : the i-th bit of the fixed input.
- db[i] : the i-th bit of the input difference.
- dc[i] : the i-th bit of the output difference.