diff options
author | Nick Mathewson <nickm@torproject.org> | 2011-11-20 21:20:31 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2011-11-25 10:32:00 -0500 |
commit | 8143074b3f110a41cc83335b70eb19dfe2b749b0 (patch) | |
tree | 1e77da38d9883817489fe1cbe3609a631f9917a4 /src/common/crypto.c | |
parent | 3e9c86a8f964e8c6f11c57663bd4dc8998827eb5 (diff) | |
download | tor-8143074b3f110a41cc83335b70eb19dfe2b749b0.tar.gz tor-8143074b3f110a41cc83335b70eb19dfe2b749b0.zip |
Use EVP for AES only when hardware accel is present
Fixes bug 4525, fix on 0.2.3.8-alpha.
Diffstat (limited to 'src/common/crypto.c')
-rw-r--r-- | src/common/crypto.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/common/crypto.c b/src/common/crypto.c index f2ef833522..55ad5fd23f 100644 --- a/src/common/crypto.c +++ b/src/common/crypto.c @@ -276,6 +276,9 @@ crypto_global_init(int useAccel, const char *accelName, const char *accelDir) } else { log_info(LD_CRYPTO, "NOT using OpenSSL engine support."); } + + evaluate_evp_for_aes(-1); + return crypto_seed_rng(1); } return 0; |