aboutsummaryrefslogtreecommitdiff
path: root/src/gnsrecord
diff options
context:
space:
mode:
authorMartin Schanzenbach <schanzen@gnunet.org>2022-02-01 17:52:33 +0100
committerMartin Schanzenbach <schanzen@gnunet.org>2022-02-01 17:52:33 +0100
commit4f07822ff0f5c13ff6052f531da249363d5116f8 (patch)
tree1c2c0dc60f62993811ca8eb7a4f393827bed7826 /src/gnsrecord
parent816bab695d6a7f4e359865e83b687d45ff66a2b1 (diff)
downloadgnunet-4f07822ff0f5c13ff6052f531da249363d5116f8.tar.gz
gnunet-4f07822ff0f5c13ff6052f531da249363d5116f8.zip
GNS: Fix context strings in key derivation according to LSD0001
Diffstat (limited to 'src/gnsrecord')
-rw-r--r--src/gnsrecord/gnsrecord_crypto.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gnsrecord/gnsrecord_crypto.c b/src/gnsrecord/gnsrecord_crypto.c
index 58feaee74..24f4c48ca 100644
--- a/src/gnsrecord/gnsrecord_crypto.c
+++ b/src/gnsrecord/gnsrecord_crypto.c
@@ -159,8 +159,8 @@ GNR_derive_block_xsalsa_key (unsigned char *nonce,
159 uint64_t exp, 159 uint64_t exp,
160 const struct GNUNET_CRYPTO_EddsaPublicKey *pub) 160 const struct GNUNET_CRYPTO_EddsaPublicKey *pub)
161{ 161{
162 static const char ctx_key[] = "gns-aes-ctx-key"; 162 static const char ctx_key[] = "gns-xsalsa-ctx-key";
163 static const char ctx_iv[] = "gns-aes-ctx-iv"; 163 static const char ctx_iv[] = "gns-xsalsa-ctx-iv";
164 164
165 GNUNET_CRYPTO_kdf (key, crypto_secretbox_KEYBYTES, 165 GNUNET_CRYPTO_kdf (key, crypto_secretbox_KEYBYTES,
166 ctx_key, strlen (ctx_key), 166 ctx_key, strlen (ctx_key),