diff options
author | Christian Grothoff <christian@grothoff.org> | 2013-10-10 14:38:55 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2013-10-10 14:38:55 +0000 |
commit | 9351b1e9bdf2b067b6db06562c26ba658cff42b8 (patch) | |
tree | 68dc4ab447e7e8b6a20a706858cd36238c1c7c5f /src/revocation/gnunet-revocation.c | |
parent | 8beabcd96c0cf1e1873c0b5ff96e537f1beb0b34 (diff) | |
download | gnunet-9351b1e9bdf2b067b6db06562c26ba658cff42b8.tar.gz gnunet-9351b1e9bdf2b067b6db06562c26ba658cff42b8.zip |
separating ECC crypto into functions/structs for ECDHE, ECDSA and EDDSA
Diffstat (limited to 'src/revocation/gnunet-revocation.c')
-rw-r--r-- | src/revocation/gnunet-revocation.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/revocation/gnunet-revocation.c b/src/revocation/gnunet-revocation.c index 5f97a7112..6b2aa6180 100644 --- a/src/revocation/gnunet-revocation.c +++ b/src/revocation/gnunet-revocation.c | |||
@@ -193,12 +193,12 @@ struct RevocationData | |||
193 | /** | 193 | /** |
194 | * Public key. | 194 | * Public key. |
195 | */ | 195 | */ |
196 | struct GNUNET_CRYPTO_EccPublicSignKey key; | 196 | struct GNUNET_CRYPTO_EcdsaPublicKey key; |
197 | 197 | ||
198 | /** | 198 | /** |
199 | * Revocation signature data. | 199 | * Revocation signature data. |
200 | */ | 200 | */ |
201 | struct GNUNET_CRYPTO_EccSignature sig; | 201 | struct GNUNET_CRYPTO_EcdsaSignature sig; |
202 | 202 | ||
203 | /** | 203 | /** |
204 | * Proof of work (in NBO). | 204 | * Proof of work (in NBO). |
@@ -310,7 +310,7 @@ ego_callback (void *cls, | |||
310 | const struct GNUNET_IDENTITY_Ego *ego) | 310 | const struct GNUNET_IDENTITY_Ego *ego) |
311 | { | 311 | { |
312 | struct RevocationData *rd; | 312 | struct RevocationData *rd; |
313 | struct GNUNET_CRYPTO_EccPublicSignKey key; | 313 | struct GNUNET_CRYPTO_EcdsaPublicKey key; |
314 | 314 | ||
315 | el = NULL; | 315 | el = NULL; |
316 | if (NULL == ego) | 316 | if (NULL == ego) |
@@ -334,7 +334,7 @@ ego_callback (void *cls, | |||
334 | { | 334 | { |
335 | if (0 != memcmp (&rd->key, | 335 | if (0 != memcmp (&rd->key, |
336 | &key, | 336 | &key, |
337 | sizeof (struct GNUNET_CRYPTO_EccPublicSignKey))) | 337 | sizeof (struct GNUNET_CRYPTO_EcdsaPublicKey))) |
338 | { | 338 | { |
339 | fprintf (stderr, | 339 | fprintf (stderr, |
340 | _("Error: revocation certificate in `%s' is not for `%s'\n"), | 340 | _("Error: revocation certificate in `%s' is not for `%s'\n"), |
@@ -387,14 +387,14 @@ run (void *cls, | |||
387 | const char *cfgfile, | 387 | const char *cfgfile, |
388 | const struct GNUNET_CONFIGURATION_Handle *c) | 388 | const struct GNUNET_CONFIGURATION_Handle *c) |
389 | { | 389 | { |
390 | struct GNUNET_CRYPTO_EccPublicSignKey pk; | 390 | struct GNUNET_CRYPTO_EcdsaPublicKey pk; |
391 | struct RevocationData rd; | 391 | struct RevocationData rd; |
392 | 392 | ||
393 | cfg = c; | 393 | cfg = c; |
394 | if (NULL != test_ego) | 394 | if (NULL != test_ego) |
395 | { | 395 | { |
396 | if (GNUNET_OK != | 396 | if (GNUNET_OK != |
397 | GNUNET_CRYPTO_ecc_public_sign_key_from_string (test_ego, | 397 | GNUNET_CRYPTO_ecdsa_public_key_from_string (test_ego, |
398 | strlen (test_ego), | 398 | strlen (test_ego), |
399 | &pk)) | 399 | &pk)) |
400 | { | 400 | { |