The ADD differential probability of right shift followed by XOR: .
More...
#include "common.hh"
#include "adp-xor.hh"
#include "adp-shift.hh"
#include "adp-rsh-xor.hh"
|
uint32_t | rsh_xor (uint32_t a, uint32_t x, int r) |
|
double | adp_rsh_xor_exper (const uint32_t da, const uint32_t dx, const uint32_t db, const int r) |
|
void | adp_rsh_xor_alloc_matrices (gsl_matrix *A[3][2][2][2]) |
|
void | adp_rsh_xor_free_matrices (gsl_matrix *A[3][2][2][2]) |
|
void | adp_rsh_xor_normalize_matrices (gsl_matrix *A[3][2][2][2]) |
|
void | adp_rsh_xor_print_matrices (gsl_matrix *A[3][2][2][2]) |
|
void | adp_rsh_xor_sf (gsl_matrix *A[3][2][2][2]) |
|
double | adp_rsh_xor (gsl_matrix *A[3][2][2][2], uint32_t da, uint32_t dx, uint32_t db, int r) |
|
double | adp_rsh_xor_approx (uint32_t da, uint32_t dx, uint32_t db, int r) |
|
The ADD differential probability of right shift followed by XOR: .
- Author
- V.Velichkov, vesse.nosp@m.lin..nosp@m.velic.nosp@m.hkov.nosp@m.@uni..nosp@m.lu
- Date
- 2012-2013
double adp_rsh_xor |
( |
gsl_matrix * |
A[3][2][2][2], |
|
|
uint32_t |
da, |
|
|
uint32_t |
dx, |
|
|
uint32_t |
db, |
|
|
int |
r |
|
) |
| |
void adp_rsh_xor_alloc_matrices |
( |
gsl_matrix * |
A[3][2][2][2] | ) |
|
Allocate memory for the transition probability matrices for .
- Parameters
-
A | transition probability matrices for . |
- See Also
- adp_rsh_xor_free_matrices
double adp_rsh_xor_approx |
( |
uint32_t |
da, |
|
|
uint32_t |
dx, |
|
|
uint32_t |
db, |
|
|
int |
r |
|
) |
| |
double adp_rsh_xor_exper |
( |
const uint32_t |
da, |
|
|
const uint32_t |
dx, |
|
|
const uint32_t |
db, |
|
|
const int |
r |
|
) |
| |
The ADD differential probability of RSH-XOR computed experimentally over all inputs. Complexity: .
- Parameters
-
da | input difference. |
dx | input difference. |
db | output difference. |
r | shift constant. |
- Returns
- .
- See Also
- adp_rsh_xor
void adp_rsh_xor_free_matrices |
( |
gsl_matrix * |
A[3][2][2][2] | ) |
|
Free memory reserved for the transition probability matrices for .
- Parameters
-
A | transition probability matrices for . |
- See Also
- adp_rsh_xor_alloc_matrices
void adp_rsh_xor_normalize_matrices |
( |
gsl_matrix * |
A[3][2][2][2] | ) |
|
Transform the elements of A into probabilities.
- Parameters
-
A | transition probability matrices for . |
void adp_rsh_xor_print_matrices |
( |
gsl_matrix * |
A[3][2][2][2] | ) |
|
Print the elements of A.
- Parameters
-
A | transition probability matrices for . |
void adp_rsh_xor_sf |
( |
gsl_matrix * |
A[3][2][2][2] | ) |
|
uint32_t rsh_xor |
( |
uint32_t |
a, |
|
|
uint32_t |
x, |
|
|
int |
r |
|
) |
| |
The sequence of operations right shift (RSH) followed by an XOR (RSH-XOR).
- Parameters
-
a | input to XOR. |
x | input to RSH. |
r | shift constant. |
- Returns
- .