summaryrefslogtreecommitdiffstats
path: root/libqpdf/RC4_native.cc
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2023-05-21 19:35:09 +0200
committerJay Berkenbilt <ejb@ql.org>2023-05-21 19:35:09 +0200
commit60965d5f4d608bdccc2ffd4e8753e12cbbbd71d2 (patch)
treea707602da466c02ff1a54b3263c3a881cd7204a4 /libqpdf/RC4_native.cc
parent6b077332d38c093de2618d5e1481b42222106065 (diff)
downloadqpdf-60965d5f4d608bdccc2ffd4e8753e12cbbbd71d2.tar.zst
Rerun clang-format
Diffstat (limited to 'libqpdf/RC4_native.cc')
-rw-r--r--libqpdf/RC4_native.cc6
1 files changed, 2 insertions, 4 deletions
diff --git a/libqpdf/RC4_native.cc b/libqpdf/RC4_native.cc
index a29e78e4..03c25fe2 100644
--- a/libqpdf/RC4_native.cc
+++ b/libqpdf/RC4_native.cc
@@ -17,8 +17,7 @@ swap_byte(unsigned char& a, unsigned char& b)
RC4_native::RC4_native(unsigned char const* key_data, int key_len)
{
if (key_len == -1) {
- key_len =
- QIntC::to_int(strlen(reinterpret_cast<char const*>(key_data)));
+ key_len = QIntC::to_int(strlen(reinterpret_cast<char const*>(key_data)));
}
for (int i = 0; i < 256; ++i) {
@@ -37,8 +36,7 @@ RC4_native::RC4_native(unsigned char const* key_data, int key_len)
}
void
-RC4_native::process(
- unsigned char const* in_data, size_t len, unsigned char* out_data)
+RC4_native::process(unsigned char const* in_data, size_t len, unsigned char* out_data)
{
for (size_t i = 0; i < len; ++i) {
key.x = static_cast<unsigned char>((key.x + 1) % 256);