diff options
author | Jay Berkenbilt <ejb@ql.org> | 2023-05-21 19:35:09 +0200 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2023-05-21 19:35:09 +0200 |
commit | 60965d5f4d608bdccc2ffd4e8753e12cbbbd71d2 (patch) | |
tree | a707602da466c02ff1a54b3263c3a881cd7204a4 /libqpdf/AES_PDF_native.cc | |
parent | 6b077332d38c093de2618d5e1481b42222106065 (diff) | |
download | qpdf-60965d5f4d608bdccc2ffd4e8753e12cbbbd71d2.tar.zst |
Rerun clang-format
Diffstat (limited to 'libqpdf/AES_PDF_native.cc')
-rw-r--r-- | libqpdf/AES_PDF_native.cc | 9 |
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); |