summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Schanzenbach <mschanzenbach@posteo.de>2021-05-03 16:33:27 +0200
committerMartin Schanzenbach <mschanzenbach@posteo.de>2021-05-03 16:33:27 +0200
commitcddca0530fdf461607d6c0af908bb527df6193f2 (patch)
tree4296343b69fe6e9596fedb32b84174f63d36f261
parent9b1065bcad0e82350e3e72e474ae425293defe42 (diff)
-fix
-rw-r--r--src/util/crypto_ecc_gnsrecord.c12
1 files 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);