aboutsummaryrefslogtreecommitdiff
path: root/src/util/crypto_ecc.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2013-08-19 19:09:28 +0000
committerChristian Grothoff <christian@grothoff.org>2013-08-19 19:09:28 +0000
commit7b8acf8915fcedc4d905487ce0f7f3ff4ab201f4 (patch)
tree60bd85d90797a26b8ad34caf1b32c8c45fc93f8b /src/util/crypto_ecc.c
parentbdeb92f66e328fc964423310300a18981d9eb1af (diff)
downloadgnunet-7b8acf8915fcedc4d905487ce0f7f3ff4ab201f4.tar.gz
gnunet-7b8acf8915fcedc4d905487ce0f7f3ff4ab201f4.zip
-eliminate more uses of ShortHashCode, breaks signatures
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 {