aboutsummaryrefslogtreecommitdiff
path: root/src/revocation/gnunet-service-revocation.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2013-10-10 14:38:55 +0000
committerChristian Grothoff <christian@grothoff.org>2013-10-10 14:38:55 +0000
commit9351b1e9bdf2b067b6db06562c26ba658cff42b8 (patch)
tree68dc4ab447e7e8b6a20a706858cd36238c1c7c5f /src/revocation/gnunet-service-revocation.c
parent8beabcd96c0cf1e1873c0b5ff96e537f1beb0b34 (diff)
downloadgnunet-9351b1e9bdf2b067b6db06562c26ba658cff42b8.tar.gz
gnunet-9351b1e9bdf2b067b6db06562c26ba658cff42b8.zip
separating ECC crypto into functions/structs for ECDHE, ECDSA and EDDSA
Diffstat (limited to 'src/revocation/gnunet-service-revocation.c')
-rw-r--r--src/revocation/gnunet-service-revocation.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/revocation/gnunet-service-revocation.c b/src/revocation/gnunet-service-revocation.c
index c6e3152ba..5a7170de6 100644
--- a/src/revocation/gnunet-service-revocation.c
+++ b/src/revocation/gnunet-service-revocation.c
@@ -147,7 +147,7 @@ verify_revoke_message (const struct RevokeMessage *rm)
147 return GNUNET_NO; 147 return GNUNET_NO;
148 } 148 }
149 if (GNUNET_OK != 149 if (GNUNET_OK !=
150 GNUNET_CRYPTO_ecc_verify (GNUNET_SIGNATURE_PURPOSE_REVOCATION, 150 GNUNET_CRYPTO_ecdsa_verify (GNUNET_SIGNATURE_PURPOSE_REVOCATION,
151 &rm->purpose, 151 &rm->purpose,
152 &rm->signature, 152 &rm->signature,
153 &rm->public_key)) 153 &rm->public_key))
@@ -177,7 +177,7 @@ handle_query_message (void *cls,
177 int res; 177 int res;
178 178
179 GNUNET_CRYPTO_hash (&qm->key, 179 GNUNET_CRYPTO_hash (&qm->key,
180 sizeof (struct GNUNET_CRYPTO_EccPublicSignKey), 180 sizeof (struct GNUNET_CRYPTO_EcdsaPublicKey),
181 &hc); 181 &hc);
182 res = GNUNET_CONTAINER_multihashmap_contains (revocation_map, &hc); 182 res = GNUNET_CONTAINER_multihashmap_contains (revocation_map, &hc);
183 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 183 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
@@ -240,7 +240,7 @@ publicize_rm (const struct RevokeMessage *rm)
240 struct GNUNET_SET_Element e; 240 struct GNUNET_SET_Element e;
241 241
242 GNUNET_CRYPTO_hash (&rm->public_key, 242 GNUNET_CRYPTO_hash (&rm->public_key,
243 sizeof (struct GNUNET_CRYPTO_EccPublicSignKey), 243 sizeof (struct GNUNET_CRYPTO_EcdsaPublicKey),
244 &hc); 244 &hc);
245 if (GNUNET_YES == 245 if (GNUNET_YES ==
246 GNUNET_CONTAINER_multihashmap_contains (revocation_map, 246 GNUNET_CONTAINER_multihashmap_contains (revocation_map,
@@ -622,7 +622,7 @@ run (void *cls,
622 } 622 }
623 GNUNET_break (0 == ntohl (rm->reserved)); 623 GNUNET_break (0 == ntohl (rm->reserved));
624 GNUNET_CRYPTO_hash (&rm->public_key, 624 GNUNET_CRYPTO_hash (&rm->public_key,
625 sizeof (struct GNUNET_CRYPTO_EccPublicSignKey), 625 sizeof (struct GNUNET_CRYPTO_EcdsaPublicKey),
626 &hc); 626 &hc);
627 GNUNET_break (GNUNET_OK == 627 GNUNET_break (GNUNET_OK ==
628 GNUNET_CONTAINER_multihashmap_put (revocation_map, 628 GNUNET_CONTAINER_multihashmap_put (revocation_map,