From c0e6f18c0ebe60bff0437740d64a7de43b9304ca Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Fri, 15 May 2015 12:15:58 +0000 Subject: -adding cmp functions for RSA public keys and sigs --- src/include/gnunet_crypto_lib.h | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'src/include') diff --git a/src/include/gnunet_crypto_lib.h b/src/include/gnunet_crypto_lib.h index 81be6f3de..4dd9ec246 100644 --- a/src/include/gnunet_crypto_lib.h +++ b/src/include/gnunet_crypto_lib.h @@ -1681,6 +1681,30 @@ GNUNET_CRYPTO_rsa_blinding_key_cmp (struct GNUNET_CRYPTO_rsa_BlindingKey *b1, struct GNUNET_CRYPTO_rsa_BlindingKey *b2); +/** + * Compare the values of two signatures. + * + * @param s1 one signature + * @param s2 the other signature + * @return 0 if the two are equal + */ +int +GNUNET_CRYPTO_rsa_signature_cmp (struct GNUNET_CRYPTO_rsa_Signature *s1, + struct GNUNET_CRYPTO_rsa_Signature *s2); + + +/** + * Compare the values of two public keys. + * + * @param p1 one public key + * @param p2 the other public key + * @return 0 if the two are equal + */ +int +GNUNET_CRYPTO_rsa_public_key_cmp (struct GNUNET_CRYPTO_rsa_PublicKey *p1, + struct GNUNET_CRYPTO_rsa_PublicKey *p2); + + /** * Destroy a blinding key * -- cgit v1.2.3