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:
authorJP Aumasson <jeanphilippe.aumasson@gmail.com>2016-10-28 10:29:15 +0300
committerGitHub <noreply@github.com>2016-10-28 10:29:15 +0300
commitd4418edab4b9e7595973f876f82d9fecf54b9d19 (patch)
tree7b741a8899f3e070400368e38e87cab35466718b /ref/blake2sp-ref.c
parentc314fb42d4bafa0577de5a7d04c944ad175819c1 (diff)
parent5522bb232553e3d50affc7859df16a1dee0d652e (diff)
Merge pull request #35 from BLAKE2/b2x
B2x
Diffstat (limited to 'ref/blake2sp-ref.c')
-rw-r--r--ref/blake2sp-ref.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/ref/blake2sp-ref.c b/ref/blake2sp-ref.c
index 8c617ad..e9e9259 100644
--- a/ref/blake2sp-ref.c
+++ b/ref/blake2sp-ref.c
@@ -34,7 +34,8 @@ static int blake2sp_init_leaf( blake2s_state *S, size_t outlen, size_t keylen, u
P->fanout = PARALLELISM_DEGREE;
P->depth = 2;
store32( &P->leaf_length, 0 );
- store48( P->node_offset, offset );
+ store32( &P->node_offset, offset );
+ store16( &P->xof_length, 0 );
P->node_depth = 0;
P->inner_length = BLAKE2S_OUTBYTES;
memset( P->salt, 0, sizeof( P->salt ) );
@@ -50,7 +51,8 @@ static int blake2sp_init_root( blake2s_state *S, size_t outlen, size_t keylen )
P->fanout = PARALLELISM_DEGREE;
P->depth = 2;
store32( &P->leaf_length, 0 );
- store48( P->node_offset, 0ULL );
+ store32( &P->node_offset, 0 );
+ store16( &P->xof_length, 0 );
P->node_depth = 1;
P->inner_length = BLAKE2S_OUTBYTES;
memset( P->salt, 0, sizeof( P->salt ) );