diff options
author | Nick Mathewson <nickm@torproject.org> | 2020-03-17 15:22:36 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2020-03-17 15:22:36 -0400 |
commit | a74f620e5281194566bf30a656ddd2f6952656c9 (patch) | |
tree | 5bc9dc79bb5b29b00363600dcfcfe9c7c6a93714 /src/lib/crypt_ops/crypto_rsa.h | |
parent | 40536768b0414703ab59b718ef3cd74b5811dc61 (diff) | |
parent | 85141a3a74efb0db29ff98667e83b06208d1c926 (diff) | |
download | tor-a74f620e5281194566bf30a656ddd2f6952656c9.tar.gz tor-a74f620e5281194566bf30a656ddd2f6952656c9.zip |
Merge branch 'maint-0.4.2' into release-0.4.2
Diffstat (limited to 'src/lib/crypt_ops/crypto_rsa.h')
-rw-r--r-- | src/lib/crypt_ops/crypto_rsa.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib/crypt_ops/crypto_rsa.h b/src/lib/crypt_ops/crypto_rsa.h index e9bfec2f85..01e6d10906 100644 --- a/src/lib/crypt_ops/crypto_rsa.h +++ b/src/lib/crypt_ops/crypto_rsa.h @@ -61,6 +61,8 @@ int crypto_pk_read_public_key_from_string(crypto_pk_t *env, const char *src, size_t len); int crypto_pk_read_private_key_from_string(crypto_pk_t *env, const char *s, ssize_t len); +int crypto_pk_read_private_key1024_from_string(crypto_pk_t *env, + const char *src, ssize_t len); int crypto_pk_write_private_key_to_filename(crypto_pk_t *env, const char *fname); @@ -95,7 +97,8 @@ int crypto_pk_asn1_encode(const crypto_pk_t *pk, char *dest, size_t dest_len); crypto_pk_t *crypto_pk_asn1_decode(const char *str, size_t len); int crypto_pk_asn1_encode_private(const crypto_pk_t *pk, char *dest, size_t dest_len); -crypto_pk_t *crypto_pk_asn1_decode_private(const char *str, size_t len); +crypto_pk_t *crypto_pk_asn1_decode_private(const char *str, size_t len, + int max_bits); int crypto_pk_get_fingerprint(crypto_pk_t *pk, char *fp_out,int add_space); int crypto_pk_get_hashed_fingerprint(crypto_pk_t *pk, char *fp_out); void crypto_add_spaces_to_fp(char *out, size_t outlen, const char *in); |