blob: 54f5515e934f1130ec2c738626690875a44023a6 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
|
#include <linux/kernel.h>
#include <crypto/blake2s.h>
static struct blake2s_state hash[2] = { {.outlen = 32 /* TODO: other constants */ }, {.outlen = 32 /* TODO: other constants */ } };
void mix_dblblake2s(const void *in, int nbytes)
{
blake2s_update(&hash[0], in, nbytes);
blake2s_update(&hash[1], in, nbytes);
}
|