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