summaryrefslogtreecommitdiffstats
path: root/libqpdf/qpdf/RC4_native.hh
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2019-11-04 15:04:25 +0100
committerJay Berkenbilt <ejb@ql.org>2019-11-09 14:18:02 +0100
commit4287fcc002488327ddea203365410a2361ae1e0b (patch)
tree45009d3f5aad477c582c9fcecde3a126bf2eb8c4 /libqpdf/qpdf/RC4_native.hh
parent0cdcd10228b1845a1c66ba97527e612eed1f5e2f (diff)
downloadqpdf-4287fcc002488327ddea203365410a2361ae1e0b.tar.zst
RC4: switch to pluggable crypto
Diffstat (limited to 'libqpdf/qpdf/RC4_native.hh')
-rw-r--r--libqpdf/qpdf/RC4_native.hh12
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