Line | Count | Source |
1 | #include <qpdf/RC4.hh> | |
2 | ||
3 | #include <qpdf/QPDFCryptoProvider.hh> | |
4 | ||
5 | RC4::RC4(unsigned char const* key_data, int key_len) : | |
6 | 24.7k | crypto(QPDFCryptoProvider::getImpl()) |
7 | 24.7k | { |
8 | 24.7k | this->crypto->RC4_init(key_data, key_len); |
9 | 24.7k | } |
10 | ||
11 | void | |
12 | RC4::process(unsigned char const* in_data, size_t len, unsigned char* out_data) | |
13 | 24.9k | { |
14 | 24.9k | this->crypto->RC4_process(in_data, len, out_data); |
15 | 24.9k | } |