Welcome to little lamb

Code » test-hashes » master » tree

[master] / src / blake2s-ska.c

#include <skalibs/stdcrypto.h>

static blake2s_ctx ctx;

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

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

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

int hashlen(void)
{
    return 32;
}