mirror of
https://github.com/qpdf/qpdf.git
synced 2024-12-23 19:39:04 +00:00
f71eb2af91
git-svn-id: svn+q:///qpdf/trunk@797 71b93d88-0707-0410-a8cf-f5a4172ac649
29 lines
610 B
C++
29 lines
610 B
C++
#ifndef __PL_RC4_HH__
|
|
#define __PL_RC4_HH__
|
|
|
|
#include <qpdf/Pipeline.hh>
|
|
|
|
#include <qpdf/RC4.hh>
|
|
|
|
class DLL_EXPORT Pl_RC4: public Pipeline
|
|
{
|
|
public:
|
|
static int const def_bufsize = 65536;
|
|
|
|
// key_len of -1 means treat key_data as a null-terminated string
|
|
Pl_RC4(char const* identifier, Pipeline* next,
|
|
unsigned char const* key_data, int key_len = -1,
|
|
int out_bufsize = def_bufsize);
|
|
virtual ~Pl_RC4();
|
|
|
|
virtual void write(unsigned char* data, int len);
|
|
virtual void finish();
|
|
|
|
private:
|
|
unsigned char* outbuf;
|
|
int out_bufsize;
|
|
RC4 rc4;
|
|
};
|
|
|
|
#endif // __PL_RC4_HH__
|