Commit 16c19e94244a7677890b8d7bd36eed09fe20fb0f
Committed by
Jay Berkenbilt
1 parent
36c7c208
libqpdf/Pl_AES_PDF.cc: remove duplicated if branch
Check for this->encrypt seems to be moved to plugged crypto implementations, so it can be removed from Pl_AES_PDF.cc.
Showing
1 changed file
with
1 additions
and
8 deletions
libqpdf/Pl_AES_PDF.cc
| @@ -209,14 +209,7 @@ Pl_AES_PDF::flush(bool strip_padding) | @@ -209,14 +209,7 @@ Pl_AES_PDF::flush(bool strip_padding) | ||
| 209 | } | 209 | } |
| 210 | } | 210 | } |
| 211 | 211 | ||
| 212 | - if (this->encrypt) | ||
| 213 | - { | ||
| 214 | - this->crypto->rijndael_process(this->inbuf, this->outbuf); | ||
| 215 | - } | ||
| 216 | - else | ||
| 217 | - { | ||
| 218 | - this->crypto->rijndael_process(this->inbuf, this->outbuf); | ||
| 219 | - } | 212 | + this->crypto->rijndael_process(this->inbuf, this->outbuf); |
| 220 | unsigned int bytes = this->buf_size; | 213 | unsigned int bytes = this->buf_size; |
| 221 | if (strip_padding) | 214 | if (strip_padding) |
| 222 | { | 215 | { |