aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_crypto_lib.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2015-05-15 12:15:58 +0000
committerChristian Grothoff <christian@grothoff.org>2015-05-15 12:15:58 +0000
commitc0e6f18c0ebe60bff0437740d64a7de43b9304ca (patch)
tree77024e5403213727b5f4acbbb5c52266f23b3ba5 /src/include/gnunet_crypto_lib.h
parent55d612a4f2b68911b472d10bb7efd50d8740fe6e (diff)
downloadgnunet-c0e6f18c0ebe60bff0437740d64a7de43b9304ca.tar.gz
gnunet-c0e6f18c0ebe60bff0437740d64a7de43b9304ca.zip
-adding cmp functions for RSA public keys and sigs
Diffstat (limited to 'src/include/gnunet_crypto_lib.h')
-rw-r--r--src/include/gnunet_crypto_lib.h24
1 files changed, 24 insertions, 0 deletions
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
@@ -1682,6 +1682,30 @@ GNUNET_CRYPTO_rsa_blinding_key_cmp (struct GNUNET_CRYPTO_rsa_BlindingKey *b1,
1682 1682
1683 1683
1684/** 1684/**
1685 * Compare the values of two signatures.
1686 *
1687 * @param s1 one signature
1688 * @param s2 the other signature
1689 * @return 0 if the two are equal
1690 */
1691int
1692GNUNET_CRYPTO_rsa_signature_cmp (struct GNUNET_CRYPTO_rsa_Signature *s1,
1693 struct GNUNET_CRYPTO_rsa_Signature *s2);
1694
1695
1696/**
1697 * Compare the values of two public keys.
1698 *
1699 * @param p1 one public key
1700 * @param p2 the other public key
1701 * @return 0 if the two are equal
1702 */
1703int
1704GNUNET_CRYPTO_rsa_public_key_cmp (struct GNUNET_CRYPTO_rsa_PublicKey *p1,
1705 struct GNUNET_CRYPTO_rsa_PublicKey *p2);
1706
1707
1708/**
1685 * Destroy a blinding key 1709 * Destroy a blinding key
1686 * 1710 *
1687 * @param bkey the blinding key to destroy 1711 * @param bkey the blinding key to destroy