Welcome to little lamb

Code » test-hashes » master » tree

[master] / src / blake3-off.c

#include "blake3-off.h"

blake3_hasher ctx;

void init(void)
{
    blake3_hasher_init(&ctx);
}

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

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

int hashlen(void)
{
    return 32;
}