diff options
author | aqua <aqua@iserlohn-fortress.net> | 2022-07-29 11:35:16 +0300 |
---|---|---|
committer | aqua <aqua@iserlohn-fortress.net> | 2022-12-28 21:01:45 +0200 |
commit | bb6439d85b36d9ebbaf82a08e707428e8a7ef234 (patch) | |
tree | c8841eea0913f8fcda621870875422b1d6f28394 /com/BLAKE2/blake2s.c | |
parent | Add BLAKE2s implementation (diff) | |
download | kernel-bb6439d85b36d9ebbaf82a08e707428e8a7ef234.tar.xz |
BLAKE2s: add Known Answer Tests
Diffstat (limited to 'com/BLAKE2/blake2s.c')
-rw-r--r-- | com/BLAKE2/blake2s.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/com/BLAKE2/blake2s.c b/com/BLAKE2/blake2s.c index d829780..5b03b88 100644 --- a/com/BLAKE2/blake2s.c +++ b/com/BLAKE2/blake2s.c @@ -124,13 +124,3 @@ BLAKE2s_final(struct BLAKE2s_ctx *ctx, void *out) for (unsigned i = 0; i < ctx->outlen; ++i) ((uint8_t *)out)[i] = (ctx->h[i >> 2] >> (8 * (i & 3))) & 0xff; } -int -BLAKE2s(void *out, size_t outlen, const void *key, size_t keylen, const void *in, size_t inlen) -{ - struct BLAKE2s_ctx ctx; - if (BLAKE2s_init(&ctx, outlen, key, keylen)) return -1; - BLAKE2s_update(&ctx, in, inlen); - BLAKE2s_final(&ctx, out); - - return 0; -} |