summaryrefslogtreecommitdiff
path: root/src/common/crypto_rsa.h
diff options
context:
space:
mode:
authorFernando Fernandez Mancera <ffmancera@riseup.net>2018-02-16 18:23:21 +0100
committerFernando Fernandez Mancera <ffmancera@riseup.net>2018-02-16 18:23:21 +0100
commit0fad49e1c495414cb80994863b616005724da51f (patch)
tree528426b07b2560aa8461fb1a4054e76773fe37f0 /src/common/crypto_rsa.h
parent541b6b2433184ea3e5658d65a3f590e52483699b (diff)
downloadtor-0fad49e1c495414cb80994863b616005724da51f.tar.gz
tor-0fad49e1c495414cb80994863b616005724da51f.zip
Move crypto_pk_obsolete_* functions into RSA module.
We moved the crypto_pk_obselete_* functions into crypto_rsa.[ch] because they fit better with the RSA module. Follows #24658. Signed-off-by: Fernando Fernandez Mancera <ffmancera@riseup.net>
Diffstat (limited to 'src/common/crypto_rsa.h')
-rw-r--r--src/common/crypto_rsa.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/common/crypto_rsa.h b/src/common/crypto_rsa.h
index 615db70945..2f5442a5d2 100644
--- a/src/common/crypto_rsa.h
+++ b/src/common/crypto_rsa.h
@@ -69,6 +69,14 @@ 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_obsolete_public_hybrid_encrypt(crypto_pk_t *env, char *to,
+ size_t tolen,
+ const char *from, size_t fromlen,
+ int padding, int force);
+int crypto_pk_obsolete_private_hybrid_decrypt(crypto_pk_t *env, char *to,
+ size_t tolen,
+ const char *from, size_t fromlen,
+ int padding, int warnOnFailure);
int crypto_pk_public_encrypt(crypto_pk_t *env, char *to, size_t tolen,
const char *from, size_t fromlen, int padding);
int crypto_pk_private_decrypt(crypto_pk_t *env, char *to, size_t tolen,