remove sign API call
authorMartin Schanzenbach <mschanzenbach@posteo.de>
Mon, 20 Apr 2020 14:58:17 +0000 (16:58 +0200)
committerMartin Schanzenbach <mschanzenbach@posteo.de>
Mon, 20 Apr 2020 14:58:17 +0000 (16:58 +0200)
src/include/gnunet_revocation_service.h
src/revocation/revocation_api.c

index b2f81b67ab12f6f27fada0622880c033bdf9037d..b38fbac3dd106c757d6d16e70810a96dd3df7550 100644 (file)
@@ -149,12 +149,8 @@ struct GNUNET_REVOCATION_Handle;
  * Perform key revocation.
  *
  * @param cfg the configuration to use
- * @param key public key of the key to revoke
- * @param sig signature to use on the revocation (should have been
- *            created using #GNUNET_REVOCATION_sign_revocation).
- * @param ts  revocation timestamp
  * @param pow proof of work to use (should have been created by
- *            iteratively calling #GNUNET_REVOCATION_check_pow)
+ *            iteratively calling #GNUNET_REVOCATION_pow_round)
  * @param func funtion to call with the result of the check
  *             (called with `is_valid` being #GNUNET_NO if
  *              the revocation worked).
@@ -254,22 +250,6 @@ void
 GNUNET_REVOCATION_pow_cleanup (struct
                                GNUNET_REVOCATION_PowCalculationHandle *pc);
 
-
-
-
-/**
- * Create a revocation signature.
- *
- * @param key private key of the key to revoke
- * @param sig where to write the revocation signature
- */
-void
-GNUNET_REVOCATION_sign_revocation (struct
-                                   GNUNET_REVOCATION_Pow *pow,
-                                   const struct
-                                   GNUNET_CRYPTO_EcdsaPrivateKey *key);
-
-
 #if 0                           /* keep Emacsens' auto-indent happy */
 {
 #endif
index fba10a4d56ec8670e66494e705e0a73d5a883669..1aff7c2f6672614cfae2287ab03e27aaaf4e71d1 100644 (file)
@@ -608,27 +608,4 @@ GNUNET_REVOCATION_pow_cleanup (struct
   GNUNET_free (pc);
 }
 
-
-/**
- * Create a revocation signature.
- *
- * @param key private key of the key to revoke
- * @param sig where to write the revocation signature
- */
-void
-GNUNET_REVOCATION_sign_revocation (struct GNUNET_REVOCATION_Pow *pow,
-                                   const struct
-                                   GNUNET_CRYPTO_EcdsaPrivateKey *key)
-{
-  pow->purpose.purpose = htonl (GNUNET_SIGNATURE_PURPOSE_REVOCATION);
-  pow->purpose.size = htonl (sizeof(struct GNUNET_CRYPTO_EccSignaturePurpose)
-                             + sizeof(struct GNUNET_CRYPTO_EcdsaPublicKey));
-  GNUNET_CRYPTO_ecdsa_key_get_public (key, &pow->key);
-  GNUNET_assert (GNUNET_OK ==
-                 GNUNET_CRYPTO_ecdsa_sign_ (key,
-                                            &pow->purpose,
-                                            &pow->signature));
-}
-
-
 /* end of revocation_api.c */