diff options
author | Nick Mathewson <nickm@torproject.org> | 2020-02-05 12:06:24 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2020-02-05 12:06:24 -0500 |
commit | 1a375c3b193f73e73e7c9c640dccdf1eb027234b (patch) | |
tree | 3444722df1410fda8a33c3aa6f553a69833b93f7 /src/lib/crypt_ops/crypto_rsa.h | |
parent | 7afb95d3e3021b78619e76a13ea261e68ecd3162 (diff) | |
parent | d0bce65ce2426793a975e691204c3fb2ac667f66 (diff) | |
download | tor-1a375c3b193f73e73e7c9c640dccdf1eb027234b.tar.gz tor-1a375c3b193f73e73e7c9c640dccdf1eb027234b.zip |
Merge branch 'trove_2020_002_035' into trove_2020_002_041
Resolved Conflicts:
src/feature/dirparse/parsecommon.c
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); |