Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(13105)

Delta Between Two Patch Sets: Modules/_sha3/kcp/KeccakSponge.c

Issue 16113: Add SHA-3 (Keccak) support
Left Patch Set: Created 6 years, 11 months ago
Right Patch Set: Created 3 years ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
Right: Side by side diff | Download
« no previous file with change/comment | « Modules/_sha3/kcp/KeccakP-1600-unrolling.macros ('k') | Modules/_sha3/kcp/KeccakSponge.h » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
(no file at all)
1 /*
2 Implementation by the Keccak, Keyak and Ketje Teams, namely, Guido Bertoni,
3 Joan Daemen, Michaƫl Peeters, Gilles Van Assche and Ronny Van Keer, hereby
4 denoted as "the implementer".
5
6 For more information, feedback or questions, please refer to our websites:
7 http://keccak.noekeon.org/
8 http://keyak.noekeon.org/
9 http://ketje.noekeon.org/
10
11 To the extent possible under law, the implementer has waived all copyright
12 and related or neighboring rights to the source code in this file.
13 http://creativecommons.org/publicdomain/zero/1.0/
14 */
15
16 #include "KeccakSponge.h"
17
18 #ifdef KeccakReference
19 #include "displayIntermediateValues.h"
20 #endif
21
22 #ifndef KeccakP200_excluded
23 #include "KeccakP-200-SnP.h"
24
25 #define prefix KeccakWidth200
26 #define SnP KeccakP200
27 #define SnP_width 200
28 #define SnP_Permute KeccakP200_Permute_18rounds
29 #if defined(KeccakF200_FastLoop_supported)
30 #define SnP_FastLoop_Absorb KeccakF200_FastLoop_Absorb
31 #endif
32 #include "KeccakSponge.inc"
33 #undef prefix
34 #undef SnP
35 #undef SnP_width
36 #undef SnP_Permute
37 #undef SnP_FastLoop_Absorb
38 #endif
39
40 #ifndef KeccakP400_excluded
41 #include "KeccakP-400-SnP.h"
42
43 #define prefix KeccakWidth400
44 #define SnP KeccakP400
45 #define SnP_width 400
46 #define SnP_Permute KeccakP400_Permute_20rounds
47 #if defined(KeccakF400_FastLoop_supported)
48 #define SnP_FastLoop_Absorb KeccakF400_FastLoop_Absorb
49 #endif
50 #include "KeccakSponge.inc"
51 #undef prefix
52 #undef SnP
53 #undef SnP_width
54 #undef SnP_Permute
55 #undef SnP_FastLoop_Absorb
56 #endif
57
58 #ifndef KeccakP800_excluded
59 #include "KeccakP-800-SnP.h"
60
61 #define prefix KeccakWidth800
62 #define SnP KeccakP800
63 #define SnP_width 800
64 #define SnP_Permute KeccakP800_Permute_22rounds
65 #if defined(KeccakF800_FastLoop_supported)
66 #define SnP_FastLoop_Absorb KeccakF800_FastLoop_Absorb
67 #endif
68 #include "KeccakSponge.inc"
69 #undef prefix
70 #undef SnP
71 #undef SnP_width
72 #undef SnP_Permute
73 #undef SnP_FastLoop_Absorb
74 #endif
75
76 #ifndef KeccakP1600_excluded
77 #include "KeccakP-1600-SnP.h"
78
79 #define prefix KeccakWidth1600
80 #define SnP KeccakP1600
81 #define SnP_width 1600
82 #define SnP_Permute KeccakP1600_Permute_24rounds
83 #if defined(KeccakF1600_FastLoop_supported)
84 #define SnP_FastLoop_Absorb KeccakF1600_FastLoop_Absorb
85 #endif
86 #include "KeccakSponge.inc"
87 #undef prefix
88 #undef SnP
89 #undef SnP_width
90 #undef SnP_Permute
91 #undef SnP_FastLoop_Absorb
92 #endif
LEFTRIGHT

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+