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:
authorSamuel Neves <sneves@dei.uc.pt>2016-06-11 14:42:46 +0300
committerSamuel Neves <sneves@dei.uc.pt>2016-06-11 14:42:46 +0300
commit932be4e9f5c973a2aa49656447683fbfae4cfb39 (patch)
tree791d07b1bebe41b9567e73fed3d4cc4c6fef44a0 /ref/blake2.h
parent64cafcff1620ab778d23057e1c7559087d7bd4e6 (diff)
outlen in blake2xx_final should be the output buffer size, not the hash length
Diffstat (limited to 'ref/blake2.h')
-rw-r--r--ref/blake2.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/ref/blake2.h b/ref/blake2.h
index 2e1838c..6a3069b 100644
--- a/ref/blake2.h
+++ b/ref/blake2.h
@@ -53,6 +53,7 @@ extern "C" {
uint32_t f[2];
uint8_t buf[BLAKE2S_BLOCKBYTES];
size_t buflen;
+ size_t outlen;
uint8_t last_node;
} blake2s_state;
@@ -63,6 +64,7 @@ extern "C" {
uint64_t f[2];
uint8_t buf[BLAKE2B_BLOCKBYTES];
size_t buflen;
+ size_t outlen;
uint8_t last_node;
} blake2b_state;
@@ -72,6 +74,7 @@ extern "C" {
blake2s_state R[1];
uint8_t buf[8 * BLAKE2S_BLOCKBYTES];
size_t buflen;
+ size_t outlen;
} blake2sp_state;
typedef struct blake2bp_state__
@@ -80,6 +83,7 @@ extern "C" {
blake2b_state R[1];
uint8_t buf[4 * BLAKE2B_BLOCKBYTES];
size_t buflen;
+ size_t outlen;
} blake2bp_state;