-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathKeccak512_data.h
More file actions
43 lines (33 loc) · 995 Bytes
/
Copy pathKeccak512_data.h
File metadata and controls
43 lines (33 loc) · 995 Bytes
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
43
/*
The Keccak sponge function, designed by Guido Bertoni, Joan Daemen,
Michaël Peeters and Gilles Van Assche. For more information, feedback or
questions, please refer to our website: http://keccak.noekeon.org/
Implementation by Ronny Van Keer,
hereby denoted as "the implementer".
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 KECCAK512_DATA_H
#define KECCAK512_DATA_H
#include <memory.h>
#ifdef _WIN32
#include "pstdint.h"
#else
#include "stdint.h"
#endif
// ** Thread-safe implementation
// ** Keccak hashing
// ** 512bit hash
typedef uint8_t BYTE;
typedef uint16_t WORD;
typedef uint32_t DWORD;
typedef uint64_t QWORD;
#define cKeccakB 1600
#define cKeccakR 576
#define cKeccakFixedOutputLengthInBytes 64
typedef struct {
BYTE state[cKeccakB / 8];
int bytesInQueue;
} KECCAK512_DATA;
#endif