aboutsummaryrefslogtreecommitdiffstats
path: root/libqpdf/QPDFCrypto_openssl.cc
diff options
context:
space:
mode:
Diffstat (limited to 'libqpdf/QPDFCrypto_openssl.cc')
-rw-r--r--libqpdf/QPDFCrypto_openssl.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/libqpdf/QPDFCrypto_openssl.cc b/libqpdf/QPDFCrypto_openssl.cc
index c226fc9c..b1866b5d 100644
--- a/libqpdf/QPDFCrypto_openssl.cc
+++ b/libqpdf/QPDFCrypto_openssl.cc
@@ -39,6 +39,12 @@ QPDFCrypto_openssl::~QPDFCrypto_openssl()
}
void
+QPDFCrypto_openssl::provideRandomData(unsigned char* data, size_t len)
+{
+ check_openssl(RAND_bytes(data, QIntC::to_int(len)));
+}
+
+void
QPDFCrypto_openssl::MD5_init()
{
check_openssl(EVP_MD_CTX_reset(md_ctx));