Monero
Loading...
Searching...
No Matches
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)

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

◆ ROTL64

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

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 )

◆ keccak1600()

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

◆ keccak_finish()

void keccak_finish ( KECCAK_CTX * ctx,
uint8_t * md )

◆ keccak_init()

void keccak_init ( KECCAK_CTX * ctx)

◆ keccak_update()

void keccak_update ( KECCAK_CTX * ctx,
const uint8_t * in,
size_t inlen )

◆ keccakf()

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