Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/BLAKE2/BLAKE2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'ref/blake2xs-ref.c')
-rw-r--r--ref/blake2xs-ref.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ref/blake2xs-ref.c b/ref/blake2xs-ref.c
index 5ad11a0..e7a89f8 100644
--- a/ref/blake2xs-ref.c
+++ b/ref/blake2xs-ref.c
@@ -104,6 +104,7 @@ int blake2xs_final(blake2xs_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(blake2s_param));
+ P->key_length = 0;
P->fanout = 0;
P->depth = 0;
store32(&P->leaf_length, BLAKE2S_OUTBYTES);