5dcfd6c50a
There are two copy-paste errors in handling CTR mode. When dealing
with a 2 or 3 block tail, the code branches to the CBC decryption exit
path, rather than to the CTR exit path.
This can lead to data corruption: in the Linux kernel we have a copy
of this file, and the bug leads to corruption of the IV, which leads
to data corruption when we call the encryption function again later to
encrypt subsequent blocks.
Originally reported to the Linux kernel by Ondrej Mosnáček <omosnacek@gmail.com>
CLA: trivial
Reviewed-by: Tim Hudson <tjh@openssl.org>
Reviewed-by: Paul Dale <paul.dale@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/8510)
(cherry picked from commit
|
||
---|---|---|
.. | ||
aes-586.pl | ||
aes-armv4.pl | ||
aes-c64xplus.pl | ||
aes-ia64.S | ||
aes-mips.pl | ||
aes-parisc.pl | ||
aes-ppc.pl | ||
aes-s390x.pl | ||
aes-sparcv9.pl | ||
aes-x86_64.pl | ||
aesfx-sparcv9.pl | ||
aesni-mb-x86_64.pl | ||
aesni-sha1-x86_64.pl | ||
aesni-sha256-x86_64.pl | ||
aesni-x86.pl | ||
aesni-x86_64.pl | ||
aesp8-ppc.pl | ||
aest4-sparcv9.pl | ||
aesv8-armx.pl | ||
bsaes-armv7.pl | ||
bsaes-x86_64.pl | ||
vpaes-armv8.pl | ||
vpaes-ppc.pl | ||
vpaes-x86.pl | ||
vpaes-x86_64.pl |