diff options
author | JP Aumasson <jeanphilippe.aumasson@gmail.com> | 2016-10-11 21:48:16 +0300 |
---|---|---|
committer | JP Aumasson <jeanphilippe.aumasson@gmail.com> | 2016-10-11 21:48:16 +0300 |
commit | 73dd9e9038e5d8ca8efad8c19efce70335292f17 (patch) | |
tree | 368cb7d65d70385c49a11acf31134294ac771075 /ref/blake2sp-ref.c | |
parent | ae633ca8e2220236e28953299194bf0656da5d25 (diff) |
b2s xof unkeyed kats
Diffstat (limited to 'ref/blake2sp-ref.c')
-rw-r--r-- | ref/blake2sp-ref.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/ref/blake2sp-ref.c b/ref/blake2sp-ref.c index 8c617ad..3e6be19 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, 0ULL ); + store16( &P->xof_length, 0ULL ); P->node_depth = 1; P->inner_length = BLAKE2S_OUTBYTES; memset( P->salt, 0, sizeof( P->salt ) ); |