diff options
author | Nick Mathewson <nickm@torproject.org> | 2016-09-16 11:21:33 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2016-09-16 11:21:33 -0400 |
commit | 6cb9c2cf77cc8375f89cc8d625d0b60e292d8160 (patch) | |
tree | 85dc1028688591761703dd06ee9de7ebc8563649 /src/common/crypto.h | |
parent | 83129031b1a1a3c719810d30df0e3ec6fa320661 (diff) | |
download | tor-6cb9c2cf77cc8375f89cc8d625d0b60e292d8160.tar.gz tor-6cb9c2cf77cc8375f89cc8d625d0b60e292d8160.zip |
Add support for AES256 and AES192
(This will be used by prop224)
Diffstat (limited to 'src/common/crypto.h')
-rw-r--r-- | src/common/crypto.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/common/crypto.h b/src/common/crypto.h index e60cf34343..116e0a62fd 100644 --- a/src/common/crypto.h +++ b/src/common/crypto.h @@ -138,7 +138,11 @@ void crypto_pk_free(crypto_pk_t *env); void crypto_set_tls_dh_prime(void); crypto_cipher_t *crypto_cipher_new(const char *key); +crypto_cipher_t *crypto_cipher_new_with_bits(const char *key, int bits); crypto_cipher_t *crypto_cipher_new_with_iv(const char *key, const char *iv); +crypto_cipher_t *crypto_cipher_new_with_iv_and_bits(const uint8_t *key, + const uint8_t *iv, + int bits); void crypto_cipher_free(crypto_cipher_t *env); /* public key crypto */ |