YAARX: Yet Another ARX Toolkit  0.1
 All Data Structures Files Functions Variables Macros Pages
adp-shift.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_SHIFT_H
28 #define ADP_SHIFT_H
29 
30 double adp_lsh_exper(uint32_t da, uint32_t db, int l);
31 
32 void adp_lrot_odiffs(const uint32_t da, const int r, uint32_t dx[4], double P[4]);
33 
34 double adp_lsh(uint32_t da, uint32_t db, int l);
35 
36 double adp_rsh_exper(const uint32_t da, const uint32_t db, const int r);
37 
38 double adp_rsh(uint32_t da, uint32_t db, int r);
39 
40 void adp_rsh_odiffs(uint32_t dx[4], const uint32_t da, int r);
41 
42 #endif // #ifndef ADP_SHIFT_H
double adp_rsh_exper(const uint32_t da, const uint32_t db, const int r)
Definition: adp-shift.cc:103
double adp_lsh_exper(uint32_t da, uint32_t db, int l)
Definition: adp-shift.cc:47
double adp_lsh(uint32_t da, uint32_t db, int l)
Definition: adp-shift.cc:81
void adp_lrot_odiffs(const WORD_T da, const int r, WORD_T dx[4], double P[4])
Definition: adp-rot.cc:39
void adp_rsh_odiffs(uint32_t dx[4], const uint32_t da, int r)
Definition: adp-shift.cc:155
double adp_rsh(uint32_t da, uint32_t db, int r)
Definition: adp-shift.cc:190