2018-08-12 18:07:22 +00:00
|
|
|
#ifndef SECURERANDOMDATAPROVIDER_HH
|
|
|
|
#define SECURERANDOMDATAPROVIDER_HH
|
2013-11-30 17:02:56 +00:00
|
|
|
|
|
|
|
#include <qpdf/RandomDataProvider.hh>
|
|
|
|
|
|
|
|
class SecureRandomDataProvider: public RandomDataProvider
|
|
|
|
{
|
|
|
|
public:
|
2022-04-15 23:44:07 +00:00
|
|
|
SecureRandomDataProvider() = default;
|
|
|
|
virtual ~SecureRandomDataProvider() = default;
|
2013-11-30 17:02:56 +00:00
|
|
|
virtual void provideRandomData(unsigned char* data, size_t len);
|
|
|
|
static RandomDataProvider* getInstance();
|
|
|
|
};
|
|
|
|
|
2018-08-12 18:07:22 +00:00
|
|
|
#endif // SECURERANDOMDATAPROVIDER_HH
|