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.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/util/crypto_ecc.c b/src/util/crypto_ecc.c
index a397724f4..89cbde922 100644
--- a/src/util/crypto_ecc.c
+++ b/src/util/crypto_ecc.c
@@ -711,14 +711,14 @@ GNUNET_CRYPTO_get_host_identity (const struct GNUNET_CONFIGURATION_Handle *cfg,
711static gcry_sexp_t 711static gcry_sexp_t
712data_to_pkcs1 (const struct GNUNET_CRYPTO_EccSignaturePurpose *purpose) 712data_to_pkcs1 (const struct GNUNET_CRYPTO_EccSignaturePurpose *purpose)
713{ 713{
714 struct GNUNET_CRYPTO_ShortHashCode hc; 714 struct GNUNET_HashCode hc;
715 gcry_sexp_t data; 715 gcry_sexp_t data;
716 int rc; 716 int rc;
717 717
718 GNUNET_CRYPTO_short_hash (purpose, ntohl (purpose->size), &hc); 718 GNUNET_CRYPTO_hash (purpose, ntohl (purpose->size), &hc);
719 if (0 != (rc = gcry_sexp_build (&data, NULL, 719 if (0 != (rc = gcry_sexp_build (&data, NULL,
720 "(data(flags rfc6979)(hash %s %b))", 720 "(data(flags rfc6979)(hash %s %b))",
721 "sha256", 721 "sha512",
722 sizeof (hc), 722 sizeof (hc),
723 &hc))) 723 &hc)))
724 { 724 {