Welcome to little lamb

Code » test-hashes » master » tree

[master] / src / sha3-nettle.c

#include "sha3-nettle-impl.h"

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;
}