diff options
author | Mattias Andrée <maandree@kth.se> | 2022-01-07 20:48:40 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2022-01-07 20:48:40 +0100 |
commit | 52325a998c17516e7e727c5495fb812e2a47595c (patch) | |
tree | c2d55c1ec38c49afa10cb05e4b095cf5cc38a0a1 /libblake.h | |
parent | Add BLAKE2b and BLAKE2s + add salt support to BLAKE + m (diff) | |
download | libblake-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.h | 20 |
1 files changed, 10 insertions, 10 deletions
@@ -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]; }; |