diff options
author | Mattias Andrée <maandree@kth.se> | 2022-02-20 11:29:39 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2022-02-20 11:29:39 +0100 |
commit | 4319d104ceb3ed1e62e7831b9f232c6b4186a7b4 (patch) | |
tree | 8cc9a6e6770d55f964631664defcd9baa542ff9a /libblake_blake2xs_init.c | |
parent | Add more tests for BLAKE2b and BLAKE2s and update init functions (breaks API; were broken for keyed mode with zero-length message) (diff) | |
download | libblake-4319d104ceb3ed1e62e7831b9f232c6b4186a7b4.tar.gz libblake-4319d104ceb3ed1e62e7831b9f232c6b4186a7b4.tar.bz2 libblake-4319d104ceb3ed1e62e7831b9f232c6b4186a7b4.tar.xz |
Update init for BLAKE2Xb and BLAKE2Xs according to previous commmit
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'libblake_blake2xs_init.c')
-rw-r--r-- | libblake_blake2xs_init.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/libblake_blake2xs_init.c b/libblake_blake2xs_init.c index 5404eee..1857f19 100644 --- a/libblake_blake2xs_init.c +++ b/libblake_blake2xs_init.c @@ -2,7 +2,7 @@ #include "common.h" void -libblake_blake2xs_init(struct libblake_blake2xs_state *state, const struct libblake_blake2xs_params *params, const unsigned char *key) +libblake_blake2xs_init(struct libblake_blake2xs_state *state, const struct libblake_blake2xs_params *params) { libblake_internal_blake2xs_init0(state, params); @@ -17,9 +17,4 @@ libblake_blake2xs_init(struct libblake_blake2xs_state *state, const struct libbl state->xof_params.inner_len = 32; memset(&state->intermediate, 0, sizeof(state->intermediate)); - - if (params->key_len) { - state->b2s.t[0] = 64; - libblake_internal_blake2s_compress(&state->b2s, key); - } } |