Electroneum
Macros | Functions
keccak.h File Reference
#include <stdint.h>
#include <string.h>
Include dependency graph for keccak.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define KECCAK_ROUNDS   24
 
#define ROTL64(x, y)   (((x) << (y)) | ((x) >> (64 - (y))))
 

Functions

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

Macro Definition Documentation

◆ KECCAK_ROUNDS

#define KECCAK_ROUNDS   24

◆ ROTL64

#define ROTL64 (   x,
 
)    (((x) << (y)) | ((x) >> (64 - (y))))

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  norounds 
)