aboutsummaryrefslogtreecommitdiffstats
path: root/libblake.h
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2022-02-20 11:29:39 +0100
committerMattias Andrée <maandree@kth.se>2022-02-20 11:29:39 +0100
commit4319d104ceb3ed1e62e7831b9f232c6b4186a7b4 (patch)
tree8cc9a6e6770d55f964631664defcd9baa542ff9a /libblake.h
parentAdd more tests for BLAKE2b and BLAKE2s and update init functions (breaks API; were broken for keyed mode with zero-length message) (diff)
downloadlibblake-4319d104ceb3ed1e62e7831b9f232c6b4186a7b4.tar.gz
libblake-4319d104ceb3ed1e62e7831b9f232c6b4186a7b4.tar.bz2
libblake-4319d104ceb3ed1e62e7831b9f232c6b4186a7b4.tar.xz
Update init for BLAKE2Xb and BLAKE2Xs according to previous commmit
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'libblake.h')
-rw-r--r--libblake.h22
1 files changed, 2 insertions, 20 deletions
diff --git a/libblake.h b/libblake.h
index 81439a1..63a7d73 100644
--- a/libblake.h
+++ b/libblake.h
@@ -1071,18 +1071,9 @@ struct libblake_blake2xb_state {
*
* @param state The state to initialise
* @param params Hashing parameters
- * @param key Key to use. The key's length is set in
- * `params->key_len`, but unless this value
- * is 0 (hash in unkeyed mode), this buffer
- * must be padded with NUL bytes, to the end,
- * such that it's length is at least 64 bytes.
- * (The maximum allowed key length is 32, the
- * buffer's size shall be twice this.) The
- * key is used for MAC and PRF.
*/
LIBBLAKE_PUBLIC__ void
-libblake_blake2xs_init(struct libblake_blake2xs_state *state, const struct libblake_blake2xs_params *params,
- const unsigned char *key /* append null bytes until 64 bytes; if key is used */);
+libblake_blake2xs_init(struct libblake_blake2xs_state *state, const struct libblake_blake2xs_params *params);
/**
* Process data for hashing with BLAKE2Xs
@@ -1199,18 +1190,9 @@ libblake_blake2xs_digest(const struct libblake_blake2xs_state *state, uint_least
*
* @param state The state to initialise
* @param params Hashing parameters
- * @param key Key to use. The key's length is set in
- * `params->key_len`, but unless this value
- * is 0 (hash in unkeyed mode), this buffer
- * must be padded with NUL bytes, to the end,
- * such that it's length is at least 128 bytes.
- * (The maximum allowed key length is 64, the
- * buffer's size shall be twice this.) The
- * key is used for MAC and PRF.
*/
LIBBLAKE_PUBLIC__ void
-libblake_blake2xb_init(struct libblake_blake2xb_state *state, const struct libblake_blake2xb_params *params,
- const unsigned char *key /* append null bytes until 128 bytes; if key is used */);
+libblake_blake2xb_init(struct libblake_blake2xb_state *state, const struct libblake_blake2xb_params *params);
/**
* Process data for hashing with BLAKE2Xb