diff options
author | Ard Biesheuvel <ardb@kernel.org> | 2019-11-08 15:22:30 +0300 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2019-11-17 04:02:42 +0300 |
commit | 7f9b0880925f1f9d7d59504ea0892d2ae9cfc233 (patch) | |
tree | 71a691af39c26114a19a112975976c121d213ff5 /include/crypto | |
parent | 17e1df67023a5c9ccaeb5de8bf5b88f63127ecf7 (diff) | |
download | linux-7f9b0880925f1f9d7d59504ea0892d2ae9cfc233.tar.xz |
crypto: blake2s - implement generic shash driver
Wire up our newly added Blake2s implementation via the shash API.
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'include/crypto')
-rw-r--r-- | include/crypto/internal/blake2s.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/crypto/internal/blake2s.h b/include/crypto/internal/blake2s.h index 941693effc7d..74ff77032e52 100644 --- a/include/crypto/internal/blake2s.h +++ b/include/crypto/internal/blake2s.h @@ -5,6 +5,11 @@ #include <crypto/blake2s.h> +struct blake2s_tfm_ctx { + u8 key[BLAKE2S_KEY_SIZE]; + unsigned int keylen; +}; + void blake2s_compress_generic(struct blake2s_state *state,const u8 *block, size_t nblocks, const u32 inc); |