2
1
mirror of https://github.com/qpdf/qpdf.git synced 2024-12-22 19:08:59 +00:00

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.
This commit is contained in:
Zdenek Dohnal 2021-04-29 11:50:42 +02:00 committed by Jay Berkenbilt
parent 36c7c20819
commit 16c19e9424

View File

@ -209,14 +209,7 @@ Pl_AES_PDF::flush(bool strip_padding)
} }
} }
if (this->encrypt) this->crypto->rijndael_process(this->inbuf, this->outbuf);
{
this->crypto->rijndael_process(this->inbuf, this->outbuf);
}
else
{
this->crypto->rijndael_process(this->inbuf, this->outbuf);
}
unsigned int bytes = this->buf_size; unsigned int bytes = this->buf_size;
if (strip_padding) if (strip_padding)
{ {