diff options
Diffstat (limited to 'dblblake2s.c')
-rw-r--r-- | dblblake2s.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/dblblake2s.c b/dblblake2s.c new file mode 100644 index 0000000..54f5515 --- /dev/null +++ b/dblblake2s.c @@ -0,0 +1,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); +} |