diff options
author | Jay Berkenbilt <ejb@ql.org> | 2019-11-04 15:04:25 +0100 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2019-11-09 14:18:02 +0100 |
commit | 4287fcc002488327ddea203365410a2361ae1e0b (patch) | |
tree | 45009d3f5aad477c582c9fcecde3a126bf2eb8c4 /libqpdf/qpdf/RC4_native.hh | |
parent | 0cdcd10228b1845a1c66ba97527e612eed1f5e2f (diff) | |
download | qpdf-4287fcc002488327ddea203365410a2361ae1e0b.tar.zst |
RC4: switch to pluggable crypto
Diffstat (limited to 'libqpdf/qpdf/RC4_native.hh')
-rw-r--r-- | libqpdf/qpdf/RC4_native.hh | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/libqpdf/qpdf/RC4_native.hh b/libqpdf/qpdf/RC4_native.hh index a2aa5dce..08b3fc68 100644 --- a/libqpdf/qpdf/RC4_native.hh +++ b/libqpdf/qpdf/RC4_native.hh @@ -1,13 +1,13 @@ -#ifndef RC4_HH -#define RC4_HH +#ifndef RC4_NATIVE_HH +#define RC4_NATIVE_HH -#include <stddef.h> +#include <cstring> -class RC4 +class RC4_native { public: // key_len of -1 means treat key_data as a null-terminated string - RC4(unsigned char const* key_data, int key_len = -1); + RC4_native(unsigned char const* key_data, int key_len = -1); // out_data = 0 means to encrypt/decrypt in place void process(unsigned char* in_data, size_t len, @@ -25,4 +25,4 @@ class RC4 RC4Key key; }; -#endif // RC4_HH +#endif // RC4_NATIVE_HH |