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
path: root/sse
diff options
context:
space:
mode:
authorJP Aumasson <jeanphilippe.aumasson@gmail.com>2016-12-03 12:50:38 +0300
committerJP Aumasson <jeanphilippe.aumasson@gmail.com>2016-12-03 12:50:38 +0300
commit7728c30896d3fa0c3b4df52c2bd5a1e36f8f1287 (patch)
tree21bef197bddc2ba96b8e4b7576e8dc1b0f11ec89 /sse
parente4de156be0063e86059a9fb2e204a952637e005e (diff)
keylength=0 in B2 instances in b2x*
Diffstat (limited to 'sse')
-rw-r--r--sse/blake2xb.c1
-rw-r--r--sse/blake2xs.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/sse/blake2xb.c b/sse/blake2xb.c
index 1811ab2..2da56ae 100644
--- a/sse/blake2xb.c
+++ b/sse/blake2xb.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);
diff --git a/sse/blake2xs.c b/sse/blake2xs.c
index de420fa..625693e 100644
--- a/sse/blake2xs.c
+++ b/sse/blake2xs.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);