diff options
Diffstat (limited to 'src/revocation')
-rw-r--r-- | src/revocation/revocation_api.c | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/src/revocation/revocation_api.c b/src/revocation/revocation_api.c index fba10a4d5..1aff7c2f6 100644 --- a/src/revocation/revocation_api.c +++ b/src/revocation/revocation_api.c | |||
@@ -608,27 +608,4 @@ GNUNET_REVOCATION_pow_cleanup (struct | |||
608 | GNUNET_free (pc); | 608 | GNUNET_free (pc); |
609 | } | 609 | } |
610 | 610 | ||
611 | |||
612 | /** | ||
613 | * Create a revocation signature. | ||
614 | * | ||
615 | * @param key private key of the key to revoke | ||
616 | * @param sig where to write the revocation signature | ||
617 | */ | ||
618 | void | ||
619 | GNUNET_REVOCATION_sign_revocation (struct GNUNET_REVOCATION_Pow *pow, | ||
620 | const struct | ||
621 | GNUNET_CRYPTO_EcdsaPrivateKey *key) | ||
622 | { | ||
623 | pow->purpose.purpose = htonl (GNUNET_SIGNATURE_PURPOSE_REVOCATION); | ||
624 | pow->purpose.size = htonl (sizeof(struct GNUNET_CRYPTO_EccSignaturePurpose) | ||
625 | + sizeof(struct GNUNET_CRYPTO_EcdsaPublicKey)); | ||
626 | GNUNET_CRYPTO_ecdsa_key_get_public (key, &pow->key); | ||
627 | GNUNET_assert (GNUNET_OK == | ||
628 | GNUNET_CRYPTO_ecdsa_sign_ (key, | ||
629 | &pow->purpose, | ||
630 | &pow->signature)); | ||
631 | } | ||
632 | |||
633 | |||
634 | /* end of revocation_api.c */ | 611 | /* end of revocation_api.c */ |