aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/util/crypto_edx25519.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/util/crypto_edx25519.c b/src/util/crypto_edx25519.c
index bb5c6d177..49360eeab 100644
--- a/src/util/crypto_edx25519.c
+++ b/src/util/crypto_edx25519.c
@@ -110,6 +110,7 @@ GNUNET_CRYPTO_edx25519_sign_ (
110 unsigned char r[64]; 110 unsigned char r[64];
111 unsigned char hram[64]; 111 unsigned char hram[64];
112 unsigned char P[32]; 112 unsigned char P[32];
113 unsigned char r_mod[64];
113 unsigned char R[32]; 114 unsigned char R[32];
114 unsigned char tmp[32]; 115 unsigned char tmp[32];
115 116
@@ -143,7 +144,6 @@ GNUNET_CRYPTO_edx25519_sign_ (
143 /** 144 /**
144 * Reduce the scalar value r 145 * Reduce the scalar value r
145 */ 146 */
146 unsigned char r_mod[64];
147 crypto_core_ed25519_scalar_reduce (r_mod, r); 147 crypto_core_ed25519_scalar_reduce (r_mod, r);
148 148
149 /** 149 /**
@@ -255,6 +255,7 @@ derive_h_mod_n (
255 GNUNET_assert (! gcry_mpi_cmp_ui (h_mod_n, 1)); 255 GNUNET_assert (! gcry_mpi_cmp_ui (h_mod_n, 1));
256#endif 256#endif
257 257
258 gcry_mpi_release(h);
258 return h_mod_n; 259 return h_mod_n;
259} 260}
260 261
@@ -330,6 +331,7 @@ GNUNET_CRYPTO_edx25519_private_key_derive (
330#endif 331#endif
331 332
332 gcry_mpi_release (h_mod_n); 333 gcry_mpi_release (h_mod_n);
334 gcry_mpi_release (eight);
333 gcry_mpi_release (h); 335 gcry_mpi_release (h);
334 gcry_mpi_release (x); 336 gcry_mpi_release (x);
335 gcry_mpi_release (n); 337 gcry_mpi_release (n);