[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r35742 - gnunet/src/util
From: |
gnunet |
Subject: |
[GNUnet-SVN] r35742 - gnunet/src/util |
Date: |
Tue, 19 May 2015 13:52:07 +0200 |
Author: grothoff
Date: 2015-05-19 13:52:07 +0200 (Tue, 19 May 2015)
New Revision: 35742
Modified:
gnunet/src/util/crypto_ecc.c
Log:
-use faster Eddsa key gen
Modified: gnunet/src/util/crypto_ecc.c
===================================================================
--- gnunet/src/util/crypto_ecc.c 2015-05-18 21:18:26 UTC (rev 35741)
+++ gnunet/src/util/crypto_ecc.c 2015-05-19 11:52:07 UTC (rev 35742)
@@ -494,7 +494,7 @@
if (0 != (rc = gcry_sexp_build (&s_keyparam, NULL,
"(genkey(ecc(curve \"" CURVE "\")"
- "(flags)))")))
+ "(flags eddsa)))")))
{
LOG_GCRY (GNUNET_ERROR_TYPE_ERROR, "gcry_sexp_build", rc);
return NULL;
@@ -1586,7 +1586,7 @@
gcry_mpi_t a;
b = 256 / 8; /* number of bytes in `d` */
-
+
/* Note that we clear DIGEST so we can use it as input to left pad
the key with zeroes for hashing. */
memset (hvec, 0, sizeof hvec);
@@ -1658,7 +1658,7 @@
/* NOW, because this is EdDSA, HASH 'd' first! */
a = eddsa_d_to_a (d);
gcry_mpi_release (d);
-
+
/* then call the 'multiply' function, to compute the product */
result = gcry_mpi_point_new (0);
gcry_mpi_ec_mul (result, a, q, ctx);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r35742 - gnunet/src/util,
gnunet <=