commit ec5162d86cd5d2c99885828acf768d4521f49e04
parent ebe7a360c614f339380dfc1354629bb042601d22
Author: Özgür Kesim <oec@codeblau.de>
Date: Tue, 29 Oct 2024 18:11:46 +0100
util: correct order of arguments in derive_h
Diffstat:
1 file changed, 9 insertions(+), 9 deletions(-)
diff --git a/src/lib/util/crypto_edx25519.c b/src/lib/util/crypto_edx25519.c
@@ -220,7 +220,7 @@ derive_h (
size_t seedsize,
struct GNUNET_HashCode *phc)
{
- /** NOTE: While (H)KDF calls this value a salt
+ /** NOTE: While (H)KDF calls this value a salt
* it is not necessary for it to be a random value.
* It is more common to use a NULL value here
* (https://www.rfc-editor.org/rfc/rfc8446#section-7.1)
@@ -229,14 +229,14 @@ derive_h (
static const char *const salt = "edx25519-derivation";
GNUNET_CRYPTO_kdf (/* output*/
- phc, sizeof(*phc),
- /* salt */
- seed, seedsize,
- /* ikm */
- pub, sizeof(*pub),
- /* ctx chunks*/
- salt, strlen (salt),
- NULL, 0);
+ phc, sizeof(*phc),
+ /* salt */
+ salt, strlen (salt),
+ /* ikm */
+ pub, sizeof(*pub),
+ /* ctx chunks*/
+ seed, seedsize,
+ NULL, 0);
}