KeccakF-1600.h 713 Bytes
Newer Older
bernd's avatar
bernd committed
1 2 3 4 5 6 7 8 9
/* KeccakF interface */

#ifndef _KeccakF_1600_h_
#define _KeccakF_1600_h_

typedef unsigned char UINT8;
typedef unsigned short UINT16;
typedef unsigned int UINT32;
typedef unsigned long long int UINT64;
bernd's avatar
bernd committed
10 11 12
#ifndef STATEI
# define STATEI long
#endif
bernd's avatar
bernd committed
13
typedef STATEI keccak_state[25*sizeof(UINT64)/sizeof(STATEI)];
bernd's avatar
bernd committed
14 15

void KeccakInitialize();
16
void KeccakF(keccak_state state, int round);
bernd's avatar
bernd committed
17
void KeccakInitializeState(keccak_state state);
bernd's avatar
bernd committed
18 19 20 21
void KeccakExtract(keccak_state state, UINT64 *data, int laneCount);
void KeccakAbsorb (keccak_state state, UINT64 *data, int laneCount);
void KeccakEncrypt(keccak_state state, UINT64 *data, int laneCount);
void KeccakDecrypt(keccak_state state, UINT64 *data, int laneCount);
bernd's avatar
bernd committed
22 23

#endif