aboutsummaryrefslogtreecommitdiffstats
path: root/blake2s.c
blob: 6d5500a100d47a35e9bc040d6252191729c35962 (plain) (blame)
1
2
3
4
5
6
7
8
9
#include <linux/kernel.h>
#include <crypto/blake2s.h>

static struct blake2s_state hash = { .outlen = 32 /* TODO: other constants */ };

void mix_blake2s(const void *in, int nbytes)
{
	blake2s_update(&hash, in, nbytes);
}