aboutsummaryrefslogtreecommitdiff
path: root/src/util/crypto_ecc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/crypto_ecc.c')
-rw-r--r--src/util/crypto_ecc.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/util/crypto_ecc.c b/src/util/crypto_ecc.c
index 07782b181..ed20fa2c8 100644
--- a/src/util/crypto_ecc.c
+++ b/src/util/crypto_ecc.c
@@ -25,6 +25,7 @@
25#include <gcrypt.h> 25#include <gcrypt.h>
26#include "gnunet_crypto_lib.h" 26#include "gnunet_crypto_lib.h"
27#include "gnunet_strings_lib.h" 27#include "gnunet_strings_lib.h"
28#include "benchmark.h"
28 29
29#define EXTRA_CHECKS 0 30#define EXTRA_CHECKS 0
30 31
@@ -873,6 +874,12 @@ GNUNET_CRYPTO_eddsa_sign (const struct GNUNET_CRYPTO_EddsaPrivateKey *priv,
873 int rc; 874 int rc;
874 gcry_mpi_t rs[2]; 875 gcry_mpi_t rs[2];
875 876
877#if ENABLE_BENCHMARK
878 struct BenchmarkData *bd = get_benchmark_data ();
879 bd->eddsa_sign_count++;
880 printf("crypto eddsa sign\n");
881#endif
882
876 priv_sexp = decode_private_eddsa_key (priv); 883 priv_sexp = decode_private_eddsa_key (priv);
877 data = data_to_eddsa_value (purpose); 884 data = data_to_eddsa_value (purpose);
878 if (0 != (rc = gcry_pk_sign (&sig_sexp, data, priv_sexp))) 885 if (0 != (rc = gcry_pk_sign (&sig_sexp, data, priv_sexp)))