From cddca0530fdf461607d6c0af908bb527df6193f2 Mon Sep 17 00:00:00 2001 From: Martin Schanzenbach Date: Mon, 3 May 2021 16:33:27 +0200 Subject: -fix --- src/util/crypto_ecc_gnsrecord.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/util/crypto_ecc_gnsrecord.c b/src/util/crypto_ecc_gnsrecord.c index 93bd9907e..59efff8ab 100644 --- a/src/util/crypto_ecc_gnsrecord.c +++ b/src/util/crypto_ecc_gnsrecord.c @@ -114,8 +114,8 @@ GNUNET_CRYPTO_eddsa_sign_with_scalar ( * Calculate the derived zone key zk' from the * derived private scalar. */ - crypto_scalarmult_ed25519_base_noclamp (zk, - sk); + crypto_scalarmult_ed25519_base (zk, + sk); /** * Calculate r: @@ -163,9 +163,9 @@ GNUNET_CRYPTO_eddsa_sign_with_scalar ( crypto_core_ed25519_scalar_reduce (hram_mod, hram); /** - * Calculate - * S := r + hram * s mod L - */ + * Calculate + * S := r + hram * s mod L + */ crypto_core_ed25519_scalar_mul (tmp, hram_mod, sk); crypto_core_ed25519_scalar_add (sig->s, tmp, r_mod); @@ -249,7 +249,7 @@ GNUNET_CRYPTO_ecdsa_public_key_derive ( GNUNET_assert (q); /* calculate h_mod_n = h % n */ - derive_h (pub, sizeof (pub), label, context, &hc); + derive_h (pub, sizeof (*pub), label, context, &hc); GNUNET_CRYPTO_mpi_scan_unsigned (&h, (unsigned char *) &hc, sizeof(hc)); n = gcry_mpi_ec_get_mpi ("n", ctx, 1); h_mod_n = gcry_mpi_new (256); -- cgit v1.2.3