diff options
author | Christian Grothoff <christian@grothoff.org> | 2021-11-25 14:38:48 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2021-11-25 14:38:48 +0100 |
commit | 63854ee52ec8d24928c2346928a3dbea22ebd1fe (patch) | |
tree | 353e8104a758592004d59c1d3ecdcd0186a4fe8e /src/include | |
parent | fff38c7f0b1bee8302b4e5689c77412d28542398 (diff) | |
download | gnunet-63854ee52ec8d24928c2346928a3dbea22ebd1fe.tar.gz gnunet-63854ee52ec8d24928c2346928a3dbea22ebd1fe.zip |
add pk invariant check
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/gnunet_crypto_lib.h | 9 |
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 | */ | ||
2223 | bool | ||
2224 | GNUNET_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 |