Electroneum
Typedefs | Functions | Variables
keccak.c File Reference
#include "hash-ops.h"
#include "keccak.h"
Include dependency graph for keccak.c:

Typedefs

typedef uint64_t state_t[25]
 

Functions

void keccakf (uint64_t st[25], int rounds)
 
int keccak (const uint8_t *in, size_t inlen, uint8_t *md, int mdlen)
 
void keccak1600 (const uint8_t *in, size_t inlen, uint8_t *md)
 

Variables

const uint64_t keccakf_rndc [24]
 
const int keccakf_rotc [24]
 
const int keccakf_piln [24]
 

Typedef Documentation

◆ state_t

typedef uint64_t state_t[25]

Function Documentation

◆ keccak()

int keccak ( const uint8_t *  in,
size_t  inlen,
uint8_t *  md,
int  mdlen 
)

◆ keccak1600()

void keccak1600 ( const uint8_t *  in,
size_t  inlen,
uint8_t *  md 
)

◆ keccakf()

void keccakf ( uint64_t  st[25],
int  rounds 
)

Variable Documentation

◆ keccakf_piln

const int keccakf_piln[24]
Initial value:
=
{
10, 7, 11, 17, 18, 3, 5, 16, 8, 21, 24, 4,
15, 23, 19, 13, 12, 2, 20, 14, 22, 9, 6, 1
}

◆ keccakf_rndc

const uint64_t keccakf_rndc[24]
Initial value:
=
{
0x0000000000000001, 0x0000000000008082, 0x800000000000808a,
0x8000000080008000, 0x000000000000808b, 0x0000000080000001,
0x8000000080008081, 0x8000000000008009, 0x000000000000008a,
0x0000000000000088, 0x0000000080008009, 0x000000008000000a,
0x000000008000808b, 0x800000000000008b, 0x8000000000008089,
0x8000000000008003, 0x8000000000008002, 0x8000000000000080,
0x000000000000800a, 0x800000008000000a, 0x8000000080008081,
0x8000000000008080, 0x0000000080000001, 0x8000000080008008
}

◆ keccakf_rotc

const int keccakf_rotc[24]
Initial value:
=
{
1, 3, 6, 10, 15, 21, 28, 36, 45, 55, 2, 14,
27, 41, 56, 8, 25, 43, 62, 18, 39, 61, 20, 44
}