YAARX: Yet Another ARX Toolkit
0.1
Main Page
Data Structures
Files
File List
Globals
All
Data Structures
Files
Functions
Variables
Macros
Pages
bsdr.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 BSDR_H
28
#define BSDR_H
29
30
// signed difference structure
31
// val == {-1,0,+1}
32
// sign == 0 if val == +1 or 0
33
// sign == 1 if val == -1
38
struct
bsd_t
39
{
40
uint32_t val;
41
uint32_t sign;
42
};
43
44
bsd_t
naf
(uint32_t x);
45
46
#endif // #ifndef BSDR_H
bsd_t
Definition:
bsdr.hh:38
naf
bsd_t naf(uint32_t x)
Definition:
bsdr.cc:41
include
bsdr.hh
Generated on Mon Apr 18 2016 16:53:09 for YAARX: Yet Another ARX Toolkit by
1.8.6