1
1
mirror of https://github.com/BLAKE2/BLAKE2 synced 2024-09-16 08:31:34 +02:00

keylength=0 in B2 instances in b2x*

This commit is contained in:
JP Aumasson 2016-12-03 10:50:38 +01:00
parent e4de156be0
commit 7728c30896
6 changed files with 10699 additions and 10695 deletions

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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);

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff