2019-11-04 14:04:25 +00:00
|
|
|
#include <qpdf/RC4.hh>
|
2022-02-04 21:31:31 +00:00
|
|
|
|
2019-11-04 14:04:25 +00:00
|
|
|
#include <qpdf/QPDFCryptoProvider.hh>
|
|
|
|
|
|
|
|
RC4::RC4(unsigned char const* key_data, int key_len) :
|
|
|
|
crypto(QPDFCryptoProvider::getImpl())
|
|
|
|
{
|
|
|
|
this->crypto->RC4_init(key_data, key_len);
|
|
|
|
}
|
|
|
|
|
|
|
|
void
|
2022-05-03 21:43:07 +00:00
|
|
|
RC4::process(unsigned char const* in_data, size_t len, unsigned char* out_data)
|
2019-11-04 14:04:25 +00:00
|
|
|
{
|
|
|
|
this->crypto->RC4_process(in_data, len, out_data);
|
|
|
|
}
|