mirror of
https://github.com/qpdf/qpdf.git
synced 2025-01-24 07:38:28 +00:00
23 lines
488 B
C++
23 lines
488 B
C++
#ifndef CRYPTORANDOMDATAPROVIDER_HH
|
|
#define CRYPTORANDOMDATAPROVIDER_HH
|
|
|
|
#include <qpdf/RandomDataProvider.hh>
|
|
#include <qpdf/DLL.h>
|
|
|
|
class CryptoRandomDataProvider: public RandomDataProvider
|
|
{
|
|
public:
|
|
QPDF_DLL
|
|
CryptoRandomDataProvider();
|
|
QPDF_DLL
|
|
virtual ~CryptoRandomDataProvider();
|
|
|
|
QPDF_DLL
|
|
virtual void provideRandomData(unsigned char* data, size_t len);
|
|
|
|
QPDF_DLL
|
|
static RandomDataProvider* getInstance();
|
|
};
|
|
|
|
#endif // CRYPTORANDOMDATAPROVIDER_HH
|