Welcome to little lamb

Code » test-hashes » master » tree

[master] / src / sha3-lila.c

#include <limb/sha3.h>

static sha3_ctx ctx;

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

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

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

int hashlen(void)
{
    return 32;
}