aboutsummaryrefslogtreecommitdiffstats
path: root/libblake.h
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2022-01-07 20:48:40 +0100
committerMattias Andrée <maandree@kth.se>2022-01-07 20:48:40 +0100
commit52325a998c17516e7e727c5495fb812e2a47595c (patch)
treec2d55c1ec38c49afa10cb05e4b095cf5cc38a0a1 /libblake.h
parentAdd BLAKE2b and BLAKE2s + add salt support to BLAKE + m (diff)
downloadlibblake-52325a998c17516e7e727c5495fb812e2a47595c.tar.gz
libblake-52325a998c17516e7e727c5495fb812e2a47595c.tar.bz2
libblake-52325a998c17516e7e727c5495fb812e2a47595c.tar.xz
m
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r--libblake.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/libblake.h b/libblake.h
index 01dce32..9704d3a 100644
--- a/libblake.h
+++ b/libblake.h
@@ -74,11 +74,11 @@ struct libblake_blake2s_params {
uint_least8_t key_len; /* in bytes, [0, 32] */
uint_least8_t fanout; /* normally 1 */
uint_least8_t depth; /* normally 1 */
- uint_least32_t leaf_len;
- uint_least32_t node_offset;
- uint_least16_t xof_len;
- uint_least8_t node_depth;
- uint_least8_t inner_len;
+ uint_least32_t leaf_len; /* normally 0 */
+ uint_least32_t node_offset; /* normally 0 */
+ uint_least16_t xof_len; /* normally 0 */
+ uint_least8_t node_depth; /* normally 0 */
+ uint_least8_t inner_len; /* normally 0 */
uint_least8_t salt[8];
uint_least8_t pepper[8];
};
@@ -88,11 +88,11 @@ struct libblake_blake2b_params {
uint_least8_t key_len; /* in bytes, [0, 64] */
uint_least8_t fanout; /* normally 1 */
uint_least8_t depth; /* normally 1 */
- uint_least32_t leaf_len;
- uint_least32_t node_offset;
- uint_least32_t xof_len;
- uint_least8_t node_depth;
- uint_least8_t inner_len;
+ uint_least32_t leaf_len; /* normally 0 */
+ uint_least32_t node_offset; /* normally 0 */
+ uint_least32_t xof_len; /* normally 0 */
+ uint_least8_t node_depth; /* normally 0 */
+ uint_least8_t inner_len; /* normally 0 */
uint_least8_t salt[16];
uint_least8_t pepper[16];
};