YAARX: Yet Another ARX Toolkit  0.1
 All Data Structures Files Functions Variables Macros Pages
tea-add-ddt-search.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 TEA_ADD_DDT_SEARCH_H
28 #define TEA_ADD_DDT_SEARCH_H
29 
30 double verify_trail(uint64_t npairs, differential_t trail[NROUNDS], uint32_t nrounds, uint32_t key[4],
31  uint32_t delta, uint32_t lsh_const, uint32_t rsh_const);
32 
33 void round_ddt(const int n, const int nrounds,
34  differential_t** RSDDT_E, differential_t** RSDDT_O, differential_t* SDDT_O,
35  double B[NROUNDS], double* Bn,
36  const differential_t diff_in[NROUNDS], differential_t trail[NROUNDS]);
37 
38 
39 void tea_search_ddt(uint32_t key[4]);
40 
41 void round_xddt(const int n, const int nrounds,
42  differential_t*** XRSDDT_E, differential_t*** XRSDDT_O, differential_t** XSDDT_O,
43  const double B[NROUNDS], double* Bn,
44  differential_t diff[NROUNDS], differential_t trail[NROUNDS]);
45 
46 void tea_search_xddt(uint32_t key[4]);
47 
48 void round_xddt_bottom_up(const int n, const int nrounds,
49  differential_t*** XRSDDT_E, differential_t*** XRSDDT_O,
50  differential_t** XSDDT_E, differential_t** XSDDT_O,
51  const double B[NROUNDS], double* Bn,
52  differential_t diff[NROUNDS], differential_t trail[NROUNDS]);
53 
54 void tea_search_xddt_bottom_up(uint32_t key[4]);
55 
56 #endif // #ifndef TEA_ADD_DDT_SEARCH_H
#define NROUNDS
Definition: common.hh:122
Definition: common.hh:272
void round_xddt_bottom_up(const int n, const int nrounds, differential_t ***XRSDDT_E, differential_t ***XRSDDT_O, differential_t **XSDDT_E, differential_t **XSDDT_O, const double B[NROUNDS], double *Bn, differential_t diff[NROUNDS], differential_t trail[NROUNDS])
Definition: tea-add-ddt-search.cc:1119
void round_ddt(const int n, const int nrounds, differential_t **RSDDT_E, differential_t **RSDDT_O, differential_t *SDDT_O, double B[NROUNDS], double *Bn, const differential_t diff_in[NROUNDS], differential_t trail[NROUNDS])
Definition: tea-add-ddt-search.cc:159
void tea_search_xddt_bottom_up(uint32_t key[4])
Definition: tea-add-ddt-search.cc:1303
void round_xddt(const int n, const int nrounds, differential_t ***XRSDDT_E, differential_t ***XRSDDT_O, differential_t **XSDDT_O, const double B[NROUNDS], double *Bn, differential_t diff[NROUNDS], differential_t trail[NROUNDS])
Definition: tea-add-ddt-search.cc:738
void tea_search_ddt(uint32_t key[4])
Definition: tea-add-ddt-search.cc:390
double verify_trail(uint64_t npairs, differential_t trail[NROUNDS], uint32_t nrounds, uint32_t key[4], uint32_t delta, uint32_t lsh_const, uint32_t rsh_const)
Definition: tea-add-ddt-search.cc:55
void tea_search_xddt(uint32_t key[4])
Definition: tea-add-ddt-search.cc:896