summaryrefslogtreecommitdiff
path: root/src/lib/crypt_ops/crypto_rsa.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2018-09-04 09:51:03 -0400
committerNick Mathewson <nickm@torproject.org>2018-09-04 14:52:35 -0400
commitedbb5ef5b258db15459407f8964b83b6dd4c3d22 (patch)
treed15adee2707c9d5fda774250aba1839fa4b9ca3e /src/lib/crypt_ops/crypto_rsa.h
parent600e046ed32f9826bcbdf223d99ed8af23a67504 (diff)
downloadtor-edbb5ef5b258db15459407f8964b83b6dd4c3d22.tar.gz
tor-edbb5ef5b258db15459407f8964b83b6dd4c3d22.zip
Make some additional RSA functions const
Diffstat (limited to 'src/lib/crypt_ops/crypto_rsa.h')
-rw-r--r--src/lib/crypt_ops/crypto_rsa.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/crypt_ops/crypto_rsa.h b/src/lib/crypt_ops/crypto_rsa.h
index dd25bc31bd..007964b268 100644
--- a/src/lib/crypt_ops/crypto_rsa.h
+++ b/src/lib/crypt_ops/crypto_rsa.h
@@ -64,7 +64,7 @@ int crypto_pk_read_private_key_from_string(crypto_pk_t *env,
int crypto_pk_write_private_key_to_filename(crypto_pk_t *env,
const char *fname);
-int crypto_pk_is_valid_private_key(crypto_pk_t *env);
+int crypto_pk_is_valid_private_key(const crypto_pk_t *env);
int crypto_pk_cmp_keys(const crypto_pk_t *a, const crypto_pk_t *b);
int crypto_pk_eq_keys(const crypto_pk_t *a, const crypto_pk_t *b);
size_t crypto_pk_keysize(const crypto_pk_t *env);
@@ -72,7 +72,7 @@ int crypto_pk_num_bits(crypto_pk_t *env);
crypto_pk_t *crypto_pk_dup_key(crypto_pk_t *orig);
crypto_pk_t *crypto_pk_copy_full(crypto_pk_t *orig);
int crypto_pk_key_is_private(const crypto_pk_t *key);
-int crypto_pk_public_exponent_ok(crypto_pk_t *env);
+int crypto_pk_public_exponent_ok(const crypto_pk_t *env);
int crypto_pk_obsolete_public_hybrid_encrypt(crypto_pk_t *env, char *to,
size_t tolen,
const char *from, size_t fromlen,