diff options
author | Nick Mathewson <nickm@torproject.org> | 2011-05-16 14:44:23 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2011-05-16 14:45:06 -0400 |
commit | 4a22046c86bec7165e6977024ff84e2109832417 (patch) | |
tree | d3be101572e05bafdfb1be5d536b82ecb16105d3 /src/common/crypto.h | |
parent | 987190c2bc1dc7b64f0f4acf98f6a84609c9d50c (diff) | |
download | tor-4a22046c86bec7165e6977024ff84e2109832417.tar.gz tor-4a22046c86bec7165e6977024ff84e2109832417.zip |
squash! Add crypto_pk_check_key_public_exponent function
Rename crypto_pk_check_key_public_exponent to crypto_pk_public_exponent_ok:
it's nice to name predicates s.t. you can tell how to interpret true
and false.
Diffstat (limited to 'src/common/crypto.h')
-rw-r--r-- | src/common/crypto.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/crypto.h b/src/common/crypto.h index 0fcd067ae1..8604a8db59 100644 --- a/src/common/crypto.h +++ b/src/common/crypto.h @@ -92,7 +92,7 @@ size_t crypto_pk_keysize(crypto_pk_env_t *env); crypto_pk_env_t *crypto_pk_dup_key(crypto_pk_env_t *orig); crypto_pk_env_t *crypto_pk_copy_full(crypto_pk_env_t *orig); int crypto_pk_key_is_private(const crypto_pk_env_t *key); -int crypto_pk_check_key_public_exponent(crypto_pk_env_t *env); +int crypto_pk_public_exponent_ok(crypto_pk_env_t *env); int crypto_pk_public_encrypt(crypto_pk_env_t *env, char *to, size_t tolen, const char *from, size_t fromlen, int padding); |