Electroneum
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.

Classes

struct  KECCAK_CTX
 

Macros

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

Typedefs

typedef struct KECCAK_CTX KECCAK_CTX
 

Functions

void 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)
 
void keccak_init (KECCAK_CTX *ctx)
 
void keccak_update (KECCAK_CTX *ctx, const uint8_t *in, size_t inlen)
 
void keccak_finish (KECCAK_CTX *ctx, uint8_t *md)
 

Macro Definition Documentation

◆ KECCAK_ROUNDS

#define KECCAK_ROUNDS   24

Definition at line 11 of file keccak.h.

◆ ROTL64

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

Definition at line 15 of file keccak.h.

Typedef Documentation

◆ KECCAK_CTX

typedef struct KECCAK_CTX KECCAK_CTX

Function Documentation

◆ keccak()

void keccak ( const uint8_t in,
size_t  inlen,
uint8_t md,
int  mdlen 
)
Here is the caller graph for this function:

◆ keccak1600()

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

◆ keccak_finish()

void keccak_finish ( KECCAK_CTX ctx,
uint8_t md 
)
Here is the caller graph for this function:

◆ keccak_init()

void keccak_init ( KECCAK_CTX ctx)
Here is the caller graph for this function:

◆ keccak_update()

void keccak_update ( KECCAK_CTX ctx,
const uint8_t in,
size_t  inlen 
)
Here is the caller graph for this function:

◆ keccakf()

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