aboutsummaryrefslogtreecommitdiff
path: root/src/dns
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2013-05-29 08:18:55 +0000
committerChristian Grothoff <christian@grothoff.org>2013-05-29 08:18:55 +0000
commit022002438e4047d235a688cfd9da7b63ab990103 (patch)
tree8d0cb444a3ab376b5a8f614fb87bdeb31e7b3327 /src/dns
parentb62eb443ee3af84f87030fad9fd11a948b1a2503 (diff)
downloadgnunet-022002438e4047d235a688cfd9da7b63ab990103.tar.gz
gnunet-022002438e4047d235a688cfd9da7b63ab990103.zip
-switching GNS from RSA to ECC
Diffstat (limited to 'src/dns')
-rw-r--r--src/dns/plugin_block_dns.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/dns/plugin_block_dns.c b/src/dns/plugin_block_dns.c
index 8ac1ef2b5..d8f3cbb6f 100644
--- a/src/dns/plugin_block_dns.c
+++ b/src/dns/plugin_block_dns.c
@@ -75,13 +75,13 @@ block_plugin_dns_evaluate (void *cls, enum GNUNET_BLOCK_Type type,
75 75
76 if (ntohl (rec->purpose.size) != 76 if (ntohl (rec->purpose.size) !=
77 sizeof (struct GNUNET_DNS_Record) - 77 sizeof (struct GNUNET_DNS_Record) -
78 sizeof (struct GNUNET_CRYPTO_RsaSignature)) 78 sizeof (struct GNUNET_CRYPTO_EccSignature))
79 { 79 {
80 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 80 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
81 "DNS-Block is invalid: rec->purpose.size=%d != %d\n", 81 "DNS-Block is invalid: rec->purpose.size=%d != %d\n",
82 ntohl (rec->purpose.size), 82 ntohl (rec->purpose.size),
83 sizeof (struct GNUNET_DNS_Record) - 83 sizeof (struct GNUNET_DNS_Record) -
84 sizeof (struct GNUNET_CRYPTO_RsaSignature)); 84 sizeof (struct GNUNET_CRYPTO_EccSignature));
85 return GNUNET_BLOCK_EVALUATION_RESULT_INVALID; 85 return GNUNET_BLOCK_EVALUATION_RESULT_INVALID;
86 } 86 }
87 87
@@ -94,7 +94,7 @@ block_plugin_dns_evaluate (void *cls, enum GNUNET_BLOCK_Type type,
94 } 94 }
95 95
96 if (GNUNET_OK != 96 if (GNUNET_OK !=
97 GNUNET_CRYPTO_rsa_verify (htonl (GNUNET_SIGNATURE_PURPOSE_DNS_RECORD), 97 GNUNET_CRYPTO_ecc_verify (htonl (GNUNET_SIGNATURE_PURPOSE_DNS_RECORD),
98 &rec->purpose, &rec->signature, &rec->peer)) 98 &rec->purpose, &rec->signature, &rec->peer))
99 { 99 {
100 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 100 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,