aboutsummaryrefslogtreecommitdiffstats
path: root/libqpdf/AES_PDF_native.cc
diff options
context:
space:
mode:
Diffstat (limited to 'libqpdf/AES_PDF_native.cc')
-rw-r--r--libqpdf/AES_PDF_native.cc9
1 files changed, 3 insertions, 6 deletions
diff --git a/libqpdf/AES_PDF_native.cc b/libqpdf/AES_PDF_native.cc
index 1316a643..42f1cda7 100644
--- a/libqpdf/AES_PDF_native.cc
+++ b/libqpdf/AES_PDF_native.cc
@@ -27,11 +27,9 @@ AES_PDF_native::AES_PDF_native(
std::memcpy(this->key.get(), key, key_bytes);
std::memset(this->rk.get(), 0, rk_bytes);
if (encrypt) {
- this->nrounds =
- rijndaelSetupEncrypt(this->rk.get(), this->key.get(), keybits);
+ this->nrounds = rijndaelSetupEncrypt(this->rk.get(), this->key.get(), keybits);
} else {
- this->nrounds =
- rijndaelSetupDecrypt(this->rk.get(), this->key.get(), keybits);
+ this->nrounds = rijndaelSetupDecrypt(this->rk.get(), this->key.get(), keybits);
}
}
@@ -46,8 +44,7 @@ AES_PDF_native::update(unsigned char* in_data, unsigned char* out_data)
}
rijndaelEncrypt(this->rk.get(), this->nrounds, in_data, out_data);
if (this->cbc_mode) {
- memcpy(
- this->cbc_block, out_data, QPDFCryptoImpl::rijndael_buf_size);
+ memcpy(this->cbc_block, out_data, QPDFCryptoImpl::rijndael_buf_size);
}
} else {
rijndaelDecrypt(this->rk.get(), this->nrounds, in_data, out_data);