YAARX: Yet Another ARX Toolkit  0.1
 All Data Structures Files Functions Variables Macros Pages
adp-tea-f-fk-noshift.hh
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2012-2013 Luxembourg University,
3  * Laboratory of Algorithmics, Cryptology and Security (LACS).
4  *
5  * This file is part of the YAARX toolkit. YAARX stands for
6  * Yet Another ARX toolkit for analysis of ARX cryptographic algorithms.
7  *
8  * YAARX is free software: you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by
10  * the Free Software Foundation, either version 3 of the License, or
11  * (at your option) any later version.
12  *
13  * YAARX is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with YAARX. If not, see <http://www.gnu.org/licenses/>.
20  */
27 #ifndef ADP_TEA_F_FK_NOSHIFT_H
28 #define ADP_TEA_F_FK_NOSHIFT_H
29 
30 #ifndef ADP_F_OP_NOSHIFT_NINPUTS
31 #define ADP_F_OP_NOSHIFT_NINPUTS 4
32 #endif
33 #ifndef ADP_F_OP_NOSHIFT_MSIZE
34 #define ADP_F_OP_NOSHIFT_MSIZE (1L << 7)
35 #endif
36 #ifndef ADP_F_OP_NOSHIFT_NMATRIX
37 #define ADP_F_OP_NOSHIFT_NMATRIX 32
38 #endif
39 #ifndef ADP_F_OP_NOSHIFT_COLSUM
40 #define ADP_F_OP_NOSHIFT_COLSUM 2
41 #endif
42 #ifndef ADP_F_OP_NOSHIFT_NORM
43 #define ADP_F_OP_NOSHIFT_NORM 1.0 /(double)ADP_F_OP_NOSHIFT_COLSUM
44 #endif
45 #ifndef ADP_F_OP_NOSHIFT_ISTATE
46 #define ADP_F_OP_NOSHIFT_ISTATE 64
47 #endif
48 #ifndef NSPOS
49 #define NSPOS 1
50 #endif
51 
52 void adp_f_op_noshift_sf(gsl_matrix* A[NSPOS][2][2][2][2][2]);
53 
54 void adp_f_op_noshift_alloc_matrices(gsl_matrix* A[NSPOS][2][2][2][2][2]);
55 
56 void adp_f_op_noshift_free_matrices(gsl_matrix* A[NSPOS][2][2][2][2][2]);
57 
58 void adp_f_op_noshift_normalize_matrices(gsl_matrix* A[NSPOS][2][2][2][2][2]);
59 
60 void adp_f_op_noshift_print_matrices(gsl_matrix* A[NSPOS][2][2][2][2][2]);
61 
62 double adp_f_op_noshift(gsl_matrix* A[NSPOS][2][2][2][2][2],
63  uint32_t k0, uint32_t k1, uint32_t delta, uint32_t da, uint32_t db);
64 
65 double adp_f_op_noshift_exper(uint32_t k0, uint32_t k1, uint32_t delta,
66  uint32_t da, uint32_t db);
67 
68 #endif // #ifndef ADP_TEA_F_FK_NOSHIFT_H
void adp_f_op_noshift_alloc_matrices(gsl_matrix *A[NSPOS][2][2][2][2][2])
Definition: adp-tea-f-fk-noshift.cc:179
void adp_f_op_noshift_print_matrices(gsl_matrix *A[NSPOS][2][2][2][2][2])
Definition: adp-tea-f-fk-noshift.cc:264
#define NSPOS
Definition: adp-tea-f-fk-noshift.hh:49
void adp_f_op_noshift_free_matrices(gsl_matrix *A[NSPOS][2][2][2][2][2])
Definition: adp-tea-f-fk-noshift.cc:203
void adp_f_op_noshift_sf(gsl_matrix *A[NSPOS][2][2][2][2][2])
Definition: adp-tea-f-fk-noshift.cc:60
double adp_f_op_noshift_exper(uint32_t k0, uint32_t k1, uint32_t delta, uint32_t da, uint32_t db)
Definition: adp-tea-f-fk-noshift.cc:358
void adp_f_op_noshift_normalize_matrices(gsl_matrix *A[NSPOS][2][2][2][2][2])
Definition: adp-tea-f-fk-noshift.cc:227
double adp_f_op_noshift(gsl_matrix *A[NSPOS][2][2][2][2][2], uint32_t k0, uint32_t k1, uint32_t delta, uint32_t da, uint32_t db)
Definition: adp-tea-f-fk-noshift.cc:307