Welcome to little lamb

Code » test-hashes » next » tree

[next] / src / sha3-tiny.c

#include "tiny-sha3.h"

static sha3_ctx_t ctx;

void init(void)
{
    sha3_init(&ctx, 32);
}

void update(const char *msg, size_t size)
{
    sha3_update(&ctx, msg, size);
}

void final(unsigned char *md)
{
    sha3_final(md, &ctx);
}

int hashlen(void)
{
    return 32;
}