ref: cb19577245324bbcda774adaec9c5307e2d9280a
parent: 8b6442c3af3f1b21dccec576c74ace5adc873507
author: Samuel Neves <sneves@dei.uc.pt>
date: Tue Oct 11 18:03:29 EDT 2016
missing adjustments
--- a/sse/blake2bp.c
+++ b/sse/blake2bp.c
@@ -36,6 +36,7 @@
P->depth = 2;
P->leaf_length = 0;
P->node_offset = offset;
+ P->xof_length = 0;
P->node_depth = 0;
P->inner_length = BLAKE2B_OUTBYTES;
memset( P->reserved, 0, sizeof( P->reserved ) );
@@ -53,6 +54,7 @@
P->depth = 2;
P->leaf_length = 0;
P->node_offset = 0;
+ P->xof_length = 0;
P->node_depth = 1;
P->inner_length = BLAKE2B_OUTBYTES;
memset( P->reserved, 0, sizeof( P->reserved ) );
--- a/sse/blake2sp.c
+++ b/sse/blake2sp.c
@@ -34,7 +34,8 @@
P->fanout = PARALLELISM_DEGREE;
P->depth = 2;
P->leaf_length = 0;
- store48( P->node_offset, offset );
+ P->node_offset = offset;
+ P->xof_length = 0;
P->node_depth = 0;
P->inner_length = BLAKE2S_OUTBYTES;
memset( P->salt, 0, sizeof( P->salt ) );
@@ -50,7 +51,8 @@
P->fanout = PARALLELISM_DEGREE;
P->depth = 2;
P->leaf_length = 0;
- store48( P->node_offset, 0ULL );
+ P->node_offset = 0;
+ P->xof_length = 0;
P->node_depth = 1;
P->inner_length = BLAKE2S_OUTBYTES;
memset( P->salt, 0, sizeof( P->salt ) );
--
⑨