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