mirror of
https://github.com/qpdf/qpdf.git
synced 2024-11-04 20:37:50 +00:00
25 lines
510 B
C++
25 lines
510 B
C++
#include <qpdf/CryptoRandomDataProvider.hh>
|
|
#include <qpdf/QPDFCryptoProvider.hh>
|
|
|
|
CryptoRandomDataProvider::CryptoRandomDataProvider()
|
|
{
|
|
}
|
|
|
|
CryptoRandomDataProvider::~CryptoRandomDataProvider()
|
|
{
|
|
}
|
|
|
|
void
|
|
CryptoRandomDataProvider::provideRandomData(unsigned char* data, size_t len)
|
|
{
|
|
auto crypto = QPDFCryptoProvider::getImpl();
|
|
crypto->provideRandomData(data, len);
|
|
}
|
|
|
|
RandomDataProvider*
|
|
CryptoRandomDataProvider::getInstance()
|
|
{
|
|
static CryptoRandomDataProvider instance;
|
|
return &instance;
|
|
}
|