summaryrefslogtreecommitdiff
path: root/src/lib/crypt_ops/crypto_rsa.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2018-07-19 08:56:51 -0400
committerNick Mathewson <nickm@torproject.org>2018-08-21 12:24:08 -0400
commit0f971d7c915e45556c582b8e02017927bf196f7e (patch)
tree65dafe1f54701d5092d4e68edeb73b177465ee69 /src/lib/crypt_ops/crypto_rsa.h
parent752ffa21973c67a789c34511e13d079d8bec3858 (diff)
downloadtor-0f971d7c915e45556c582b8e02017927bf196f7e.tar.gz
tor-0f971d7c915e45556c582b8e02017927bf196f7e.zip
Rename functions that encode/decode private keys
It is not nice to expose a private key's contents without having the function name advertise the fact. Fortunately, we weren't misusing these yet.
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 45412d21ec..d1f9d57aa0 100644
--- a/src/lib/crypt_ops/crypto_rsa.h
+++ b/src/lib/crypt_ops/crypto_rsa.h
@@ -101,8 +101,8 @@ int crypto_pk_private_sign_digest(crypto_pk_t *env, char *to, size_t tolen,
int crypto_pk_get_digest(const crypto_pk_t *pk, char *digest_out);
int crypto_pk_get_common_digests(crypto_pk_t *pk,
common_digests_t *digests_out);
-int crypto_pk_base64_encode(const crypto_pk_t *pk, char **priv_out);
-crypto_pk_t *crypto_pk_base64_decode(const char *str, size_t len);
+int crypto_pk_base64_encode_private(const crypto_pk_t *pk, char **priv_out);
+crypto_pk_t *crypto_pk_base64_decode_private(const char *str, size_t len);
/* Prototypes for private functions only used by tortls.c, crypto.c, and the
* unit tests. */