YAARX: Yet Another ARX Toolkit  0.1
 All Data Structures Files Functions Variables Macros Pages
adp-tea-f-fk-ddt.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_DDT_H
28 #define ADP_TEA_F_FK_DDT_H
29 
31 
33 
35 
36 void ddt_to_list(uint32_t** DDT, differential_t* SDDT);
37 
38 void ddt_to_diff_struct(uint32_t** DDT, differential_t** SDDT);
39 
40 void ddt_sort(differential_t* SDDT);
41 
42 void print_rsddt(differential_t** RSDDT);
43 
44 void print_sddt(differential_t* SDDT);
45 
46 double adp_f_exper_fixed_key_all(const uint32_t da, const uint32_t db,
47  const uint32_t k0, const uint32_t k1, const uint32_t delta,
48  uint32_t lsh_const, uint32_t rsh_const);
49 
50 double max_adp_f_exper_fixed_key_all(const uint32_t da, uint32_t* db,
51  const uint32_t k0, const uint32_t k1, const uint32_t delta,
52  uint32_t lsh_const, uint32_t rsh_const);
53 
55 
56 void rsddt_free(differential_t** T);
57 
59 
60 void sddt_free(differential_t* ST);
61 
62 uint32_t** ddt_alloc();
63 
64 void ddt_free(uint32_t** T);
65 
66 void ddt_f(uint32_t** T, uint32_t k0, uint32_t k1, uint32_t delta, uint32_t lsh_const, uint32_t rsh_const);
67 
68 void ddt_print(uint32_t** T);
69 
70 double adp_f_ddt(uint32_t** DDT, uint32_t dx, uint32_t dy);
71 
72 double max_adp_f_ddt(uint32_t** DDT, uint32_t dx, uint32_t* dy);
73 
74 double max_adp_f_rsddt(differential_t** TS, uint32_t dx, uint32_t* dy);
75 
76 uint32_t*** xddt_alloc();
77 
78 void xddt_free(uint32_t*** T);
79 
81 
82 void xrsddt_free(differential_t*** T);
83 
85 
86 void xsddt_free(differential_t** ST);
87 
88 #endif // #ifndef ADP_TEA_F_FK_DDT_H
differential_t ** xsddt_alloc()
Definition: adp-tea-f-fk-ddt.cc:555
void ddt_f(uint32_t **T, uint32_t k0, uint32_t k1, uint32_t delta, uint32_t lsh_const, uint32_t rsh_const)
Definition: adp-tea-f-fk-ddt.cc:356
Definition: common.hh:272
void xsddt_free(differential_t **ST)
Definition: adp-tea-f-fk-ddt.cc:569
double adp_f_ddt(uint32_t **DDT, uint32_t dx, uint32_t dy)
Definition: adp-tea-f-fk-ddt.cc:404
void sddt_free(differential_t *ST)
Definition: adp-tea-f-fk-ddt.cc:302
differential_t * sddt_alloc()
Definition: adp-tea-f-fk-ddt.cc:290
void ddt_sort_rows(differential_t **T)
Definition: adp-tea-f-fk-ddt.cc:43
void ddt_sort(differential_t *SDDT)
Definition: adp-tea-f-fk-ddt.cc:121
void xrsddt_free(differential_t ***T)
Definition: adp-tea-f-fk-ddt.cc:539
double max_adp_f_ddt(uint32_t **DDT, uint32_t dx, uint32_t *dy)
Definition: adp-tea-f-fk-ddt.cc:423
void rsddt_free(differential_t **T)
Definition: adp-tea-f-fk-ddt.cc:277
void ddt_print(uint32_t **T)
Definition: adp-tea-f-fk-ddt.cc:377
void ddt_sort_first_col(differential_t **T)
Definition: adp-tea-f-fk-ddt.cc:69
void ddt_to_list(uint32_t **DDT, differential_t *SDDT)
Definition: adp-tea-f-fk-ddt.cc:80
void xddt_free(uint32_t ***T)
Definition: adp-tea-f-fk-ddt.cc:502
uint32_t ** ddt_alloc()
Definition: adp-tea-f-fk-ddt.cc:312
uint32_t *** xddt_alloc()
Definition: adp-tea-f-fk-ddt.cc:481
bool comp_rows(differential_t *a, differential_t *b)
Definition: adp-tea-f-fk-ddt.cc:56
void print_rsddt(differential_t **RSDDT)
Definition: adp-tea-f-fk-ddt.cc:130
double adp_f_exper_fixed_key_all(const uint32_t da, const uint32_t db, const uint32_t k0, const uint32_t k1, const uint32_t delta, uint32_t lsh_const, uint32_t rsh_const)
Definition: adp-tea-f-fk-ddt.cc:173
void ddt_to_diff_struct(uint32_t **DDT, differential_t **SDDT)
Definition: adp-tea-f-fk-ddt.cc:99
void ddt_free(uint32_t **T)
Definition: adp-tea-f-fk-ddt.cc:334
void print_sddt(differential_t *SDDT)
Definition: adp-tea-f-fk-ddt.cc:147
differential_t *** xrsddt_alloc()
Definition: adp-tea-f-fk-ddt.cc:518
differential_t ** rsddt_alloc()
Definition: adp-tea-f-fk-ddt.cc:258
double max_adp_f_exper_fixed_key_all(const uint32_t da, uint32_t *db, const uint32_t k0, const uint32_t k1, const uint32_t delta, uint32_t lsh_const, uint32_t rsh_const)
Definition: adp-tea-f-fk-ddt.cc:212
double max_adp_f_rsddt(differential_t **TS, uint32_t dx, uint32_t *dy)
Definition: adp-tea-f-fk-ddt.cc:452