aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_crypto_lib.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2021-11-25 14:38:48 +0100
committerChristian Grothoff <christian@grothoff.org>2021-11-25 14:38:48 +0100
commit63854ee52ec8d24928c2346928a3dbea22ebd1fe (patch)
tree353e8104a758592004d59c1d3ecdcd0186a4fe8e /src/include/gnunet_crypto_lib.h
parentfff38c7f0b1bee8302b4e5689c77412d28542398 (diff)
downloadgnunet-63854ee52ec8d24928c2346928a3dbea22ebd1fe.tar.gz
gnunet-63854ee52ec8d24928c2346928a3dbea22ebd1fe.zip
add pk invariant check
Diffstat (limited to 'src/include/gnunet_crypto_lib.h')
-rw-r--r--src/include/gnunet_crypto_lib.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/include/gnunet_crypto_lib.h b/src/include/gnunet_crypto_lib.h
index 0eb2ea8cd..edb4bb230 100644
--- a/src/include/gnunet_crypto_lib.h
+++ b/src/include/gnunet_crypto_lib.h
@@ -2216,6 +2216,15 @@ GNUNET_CRYPTO_rsa_public_key_hash (const struct GNUNET_CRYPTO_RsaPublicKey *key,
2216 2216
2217 2217
2218/** 2218/**
2219 * Check if @a key is well-formed.
2220 *
2221 * @return true if @a key is well-formed.
2222 */
2223bool
2224GNUNET_CRYPTO_rsa_public_key_check (
2225 const struct GNUNET_CRYPTO_RsaPublicKey *key);
2226
2227/**
2219 * Obtain the length of the RSA key in bits. 2228 * Obtain the length of the RSA key in bits.
2220 * 2229 *
2221 * @param key the public key to introspect 2230 * @param key the public key to introspect