mirror of
https://github.com/qpdf/qpdf.git
synced 2024-11-15 17:17:08 +00:00
16 lines
434 B
C++
16 lines
434 B
C++
#ifndef CRYPTORANDOMDATAPROVIDER_HH
|
|
#define CRYPTORANDOMDATAPROVIDER_HH
|
|
|
|
#include <qpdf/RandomDataProvider.hh>
|
|
|
|
class CryptoRandomDataProvider: public RandomDataProvider
|
|
{
|
|
public:
|
|
CryptoRandomDataProvider() = default;
|
|
~CryptoRandomDataProvider() override = default;
|
|
void provideRandomData(unsigned char* data, size_t len) override;
|
|
static RandomDataProvider* getInstance();
|
|
};
|
|
|
|
#endif // CRYPTORANDOMDATAPROVIDER_HH
|