YAARX: Yet Another ARX Toolkit  0.1
 All Data Structures Files Functions Variables Macros Pages
max-adp-xor.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 MAX_ADP_XOR_H
28 #define MAX_ADP_XOR_H
29 
30 void max_adp_xor_i(const WORD_T i, const WORD_T k, const WORD_T n, double* p, WORD_T* dd,
31  gsl_matrix* A[2][2][2], gsl_vector* B[WORD_SIZE + 1], gsl_vector* C,
32  const WORD_T da, const WORD_T db, WORD_T* dd_max,
33  double* p_max, WORD_T A_size);
34 
35 void max_adp_xor_bounds(gsl_matrix* A[2][2][2], gsl_vector* B[WORD_SIZE + 1],
36  const WORD_T da, const WORD_T db,
37  WORD_T* dd_max, WORD_T A_size);
38 
39 double max_adp_xor(gsl_matrix* A[2][2][2],
40  const WORD_T da, const WORD_T db,
41  WORD_T* dd_max);
42 
43 double max_adp_xor_exper(gsl_matrix* A[2][2][2],
44  const WORD_T da, const WORD_T db,
45  WORD_T* dc_max);
46 
47 #endif // #ifndef MAX_ADP_XOR_H
48 
#define WORD_SIZE
Definition: common.hh:119
void max_adp_xor_i(const WORD_T i, const WORD_T k, const WORD_T n, double *p, WORD_T *dd, gsl_matrix *A[2][2][2], gsl_vector *B[WORD_SIZE+1], gsl_vector *C, const WORD_T da, const WORD_T db, WORD_T *dd_max, double *p_max, WORD_T A_size)
Definition: max-adp-xor.cc:77
double max_adp_xor(gsl_matrix *A[2][2][2], const WORD_T da, const WORD_T db, WORD_T *dd_max)
Definition: max-adp-xor.cc:208
double max_adp_xor_exper(gsl_matrix *A[2][2][2], const WORD_T da, const WORD_T db, WORD_T *dc_max)
Definition: max-adp-xor.cc:261
void max_adp_xor_bounds(gsl_matrix *A[2][2][2], gsl_vector *B[WORD_SIZE+1], const WORD_T da, const WORD_T db, WORD_T *dd_max, WORD_T A_size)
Definition: max-adp-xor.cc:167