Clear up condition in AesPatternCryptor
The condition was the same in meaning, but a bit confusing in syntax.
This commit is contained in:
parent
31e5f129b5
commit
ea548b1e8e
|
@ -54,9 +54,8 @@ bool AesPatternCryptor::CryptInternal(const uint8_t* text,
|
||||||
|
|
||||||
if (text_size <= crypt_byte_size) {
|
if (text_size <= crypt_byte_size) {
|
||||||
const bool need_encrypt =
|
const bool need_encrypt =
|
||||||
encryption_mode_ == kSkipIfCryptByteBlockRemaining
|
encryption_mode_ != kSkipIfCryptByteBlockRemaining
|
||||||
? (text_size > crypt_byte_size)
|
&& (text_size >= AES_BLOCK_SIZE);
|
||||||
: (text_size >= AES_BLOCK_SIZE);
|
|
||||||
if (need_encrypt) {
|
if (need_encrypt) {
|
||||||
// The partial pattern SHALL be followed with the partial 16-byte block
|
// The partial pattern SHALL be followed with the partial 16-byte block
|
||||||
// remains unencrypted.
|
// remains unencrypted.
|
||||||
|
|
Loading…
Reference in New Issue