mirror of
https://github.com/qpdf/qpdf.git
synced 2024-10-31 19:02:30 +00:00
12f1eb15ca
Run this: for i in **/*.cc **/*.c **/*.h **/*.hh; do clang-format < $i >| $i.new && mv $i.new $i done
18 lines
371 B
C++
18 lines
371 B
C++
#include <qpdf/RC4.hh>
|
|
|
|
#include <qpdf/QPDFCryptoProvider.hh>
|
|
|
|
#include <string.h>
|
|
|
|
RC4::RC4(unsigned char const* key_data, int key_len) :
|
|
crypto(QPDFCryptoProvider::getImpl())
|
|
{
|
|
this->crypto->RC4_init(key_data, key_len);
|
|
}
|
|
|
|
void
|
|
RC4::process(unsigned char* in_data, size_t len, unsigned char* out_data)
|
|
{
|
|
this->crypto->RC4_process(in_data, len, out_data);
|
|
}
|