Welcome to little lamb

Code » test-hashes » next » tree

[next] / src / sha1-ska.c

#include <skalibs/stdcrypto.h>

static SHA1Schedule ctx;

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

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

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

int hashlen(void)
{
    return 20;
}