diff options
Diffstat (limited to 'ref/blake2xb-ref.c')
-rw-r--r-- | ref/blake2xb-ref.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ref/blake2xb-ref.c b/ref/blake2xb-ref.c index 276983b..b369ee7 100644 --- a/ref/blake2xb-ref.c +++ b/ref/blake2xb-ref.c @@ -105,6 +105,7 @@ int blake2xb_final( blake2xb_state *S, void *out, size_t outlen) { /* Set common block structure values */ /* Copy values from parent instance, and only change the ones below */ memcpy(P, S->P, sizeof(blake2b_param)); + P->key_length = 0; P->fanout = 0; P->depth = 0; store32(&P->leaf_length, BLAKE2B_OUTBYTES); |