diff options
author | Jay Berkenbilt <ejb@ql.org> | 2022-10-08 22:34:12 +0200 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2022-10-08 23:04:59 +0200 |
commit | 2bc9121fa16a274093f6756164a52c30ecb7496c (patch) | |
tree | 00fecb8c3fe5fad5d0d9bed39a02d45b9b542cb6 /libqpdf/qpdf/QPDFCrypto_openssl.hh | |
parent | b745920961bd44cbe3ded956c7b79f47c142b118 (diff) | |
download | qpdf-2bc9121fa16a274093f6756164a52c30ecb7496c.tar.zst |
Fix major performance bug with openssl crypto (fixes #798)
Lazily load MD5 and RC4 once in the life of the program. Only load the
legacy provider if RC4 is actually being used.
Diffstat (limited to 'libqpdf/qpdf/QPDFCrypto_openssl.hh')
-rw-r--r-- | libqpdf/qpdf/QPDFCrypto_openssl.hh | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/libqpdf/qpdf/QPDFCrypto_openssl.hh b/libqpdf/qpdf/QPDFCrypto_openssl.hh index 252bdf6a..eae69ab1 100644 --- a/libqpdf/qpdf/QPDFCrypto_openssl.hh +++ b/libqpdf/qpdf/QPDFCrypto_openssl.hh @@ -58,13 +58,6 @@ class QPDFCrypto_openssl: public QPDFCryptoImpl void rijndael_finalize() override; private: -#ifdef QPDF_OPENSSL_1 - EVP_CIPHER const* rc4; -#else - OSSL_LIB_CTX* libctx; - OSSL_PROVIDER* legacy; - EVP_CIPHER* rc4; -#endif EVP_MD_CTX* const md_ctx; EVP_CIPHER_CTX* const cipher_ctx; uint8_t md_out[EVP_MAX_MD_SIZE]; |