»Core Development>Code coverage>Modules/_sha3/kcp/KeccakSponge.c

Python code coverage for Modules/_sha3/kcp/KeccakSponge.c

#countcontent
1n/a/*
2n/aImplementation by the Keccak, Keyak and Ketje Teams, namely, Guido Bertoni,
3n/aJoan Daemen, Michaël Peeters, Gilles Van Assche and Ronny Van Keer, hereby
4n/adenoted as "the implementer".
5n/a
6n/aFor more information, feedback or questions, please refer to our websites:
7n/ahttp://keccak.noekeon.org/
8n/ahttp://keyak.noekeon.org/
9n/ahttp://ketje.noekeon.org/
10n/a
11n/aTo the extent possible under law, the implementer has waived all copyright
12n/aand related or neighboring rights to the source code in this file.
13n/ahttp://creativecommons.org/publicdomain/zero/1.0/
14n/a*/
15n/a
16n/a#include "KeccakSponge.h"
17n/a
18n/a#ifdef KeccakReference
19n/a #include "displayIntermediateValues.h"
20n/a#endif
21n/a
22n/a#ifndef KeccakP200_excluded
23n/a #include "KeccakP-200-SnP.h"
24n/a
25n/a #define prefix KeccakWidth200
26n/a #define SnP KeccakP200
27n/a #define SnP_width 200
28n/a #define SnP_Permute KeccakP200_Permute_18rounds
29n/a #if defined(KeccakF200_FastLoop_supported)
30n/a #define SnP_FastLoop_Absorb KeccakF200_FastLoop_Absorb
31n/a #endif
32n/a #include "KeccakSponge.inc"
33n/a #undef prefix
34n/a #undef SnP
35n/a #undef SnP_width
36n/a #undef SnP_Permute
37n/a #undef SnP_FastLoop_Absorb
38n/a#endif
39n/a
40n/a#ifndef KeccakP400_excluded
41n/a #include "KeccakP-400-SnP.h"
42n/a
43n/a #define prefix KeccakWidth400
44n/a #define SnP KeccakP400
45n/a #define SnP_width 400
46n/a #define SnP_Permute KeccakP400_Permute_20rounds
47n/a #if defined(KeccakF400_FastLoop_supported)
48n/a #define SnP_FastLoop_Absorb KeccakF400_FastLoop_Absorb
49n/a #endif
50n/a #include "KeccakSponge.inc"
51n/a #undef prefix
52n/a #undef SnP
53n/a #undef SnP_width
54n/a #undef SnP_Permute
55n/a #undef SnP_FastLoop_Absorb
56n/a#endif
57n/a
58n/a#ifndef KeccakP800_excluded
59n/a #include "KeccakP-800-SnP.h"
60n/a
61n/a #define prefix KeccakWidth800
62n/a #define SnP KeccakP800
63n/a #define SnP_width 800
64n/a #define SnP_Permute KeccakP800_Permute_22rounds
65n/a #if defined(KeccakF800_FastLoop_supported)
66n/a #define SnP_FastLoop_Absorb KeccakF800_FastLoop_Absorb
67n/a #endif
68n/a #include "KeccakSponge.inc"
69n/a #undef prefix
70n/a #undef SnP
71n/a #undef SnP_width
72n/a #undef SnP_Permute
73n/a #undef SnP_FastLoop_Absorb
74n/a#endif
75n/a
76n/a#ifndef KeccakP1600_excluded
77n/a #include "KeccakP-1600-SnP.h"
78n/a
79n/a #define prefix KeccakWidth1600
80n/a #define SnP KeccakP1600
81n/a #define SnP_width 1600
82n/a #define SnP_Permute KeccakP1600_Permute_24rounds
83n/a #if defined(KeccakF1600_FastLoop_supported)
84n/a #define SnP_FastLoop_Absorb KeccakF1600_FastLoop_Absorb
85n/a #endif
86n/a #include "KeccakSponge.inc"
87n/a #undef prefix
88n/a #undef SnP
89n/a #undef SnP_width
90n/a #undef SnP_Permute
91n/a #undef SnP_FastLoop_Absorb
92n/a#endif