-
Notifications
You must be signed in to change notification settings - Fork 22
/
SnP-interface.h
42 lines (34 loc) · 1.8 KB
/
SnP-interface.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/*
Implementation by the Keccak, Keyak and Ketje Teams, namely, Guido Bertoni,
Joan Daemen, Michaël Peeters, Gilles Van Assche and Ronny Van Keer, hereby
denoted as "the implementer".
For more information, feedback or questions, please refer to our websites:
http://keccak.noekeon.org/
http://keyak.noekeon.org/
http://ketje.noekeon.org/
To the extent possible under law, the implementer has waived all copyright
and related or neighboring rights to the source code in this file.
http://creativecommons.org/publicdomain/zero/1.0/
*/
#ifndef _SnP_Interface_h_
#define _SnP_Interface_h_
#include "KeccakF-1600-interface.h"
#include "SnP-FBWL-default.h"
#define SnP_width KeccakF_width
#define SnP_stateSizeInBytes KeccakF_stateSizeInBytes
#define SnP_laneLengthInBytes KeccakF_laneInBytes
#define SnP_laneCount 25
#define SnP_StaticInitialize KeccakF1600_Initialize
#define SnP_Initialize KeccakF1600_StateInitialize
#define SnP_XORBytes KeccakF1600_StateXORBytes
#define SnP_OverwriteBytes KeccakF1600_StateOverwriteBytes
#define SnP_OverwriteWithZeroes KeccakF1600_StateOverwriteWithZeroes
#define SnP_ComplementBit KeccakF1600_StateComplementBit
#define SnP_Permute KeccakF1600_StatePermute
#define SnP_ExtractBytes KeccakF1600_StateExtractBytes
#define SnP_ExtractAndXORBytes KeccakF1600_StateExtractAndXORBytes
#define SnP_FBWL_Absorb SnP_FBWL_Absorb_Default
#define SnP_FBWL_Squeeze SnP_FBWL_Squeeze_Default
#define SnP_FBWL_Wrap SnP_FBWL_Wrap_Default
#define SnP_FBWL_Unwrap SnP_FBWL_Unwrap_Default
#endif