18 lines
319 B
C
18 lines
319 B
C
#ifndef WHIRLPOOL_H
|
|
#define WHIRLPOOL_H
|
|
|
|
#include <stddef.h>
|
|
#include <stdint.h>
|
|
|
|
struct whirlpool_ctx
|
|
{
|
|
uint64_t state[8];
|
|
uint64_t count;
|
|
uint8_t buf[64];
|
|
};
|
|
|
|
void whirlpool_init(void *ctx);
|
|
void whirlpool_update(void *ctx, const uint8_t *data, size_t len);
|
|
void whirlpool_final(void *ctx, uint8_t *out);
|
|
|
|
#endif
|