Header file for adp-rsh-xor.cc:
More...
Go to the source code of this file.
|
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) |
|
#define ADP_RSH_XOR_COLSUM 4 |
Sum of the non-zero elements in one column of the matrices.
#define ADP_RSH_XOR_MSIZE (1L << ADP_RSH_XOR_NSTATES) |
Size of the transition probability matrices for .
#define ADP_RSH_XOR_NINPUTS 2 |
Number of inputs to the operation .
Normalization factor for transforming the elements of the matrices into probabilities.
#define ADP_RSH_XOR_NOUTPUTS 1 |
Number of outputs from the operation .
#define ADP_RSH_XOR_NPOS 3 |
Special bit positions in the computation of .
#define ADP_RSH_XOR_NSTATES 3 |
Number of states of the S-function for .
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
- .