diff options
author | Shane Lontis <shane.lontis@oracle.com> | 2020-09-16 11:07:02 +1000 |
---|---|---|
committer | Shane Lontis <shane.lontis@oracle.com> | 2020-09-18 06:15:50 +1000 |
commit | 4b51903d8681c7fd429c566548529d5753e24f47 (patch) | |
tree | 2cfe736fe1a3db33c1f0f65d6eecf5430c54d87c /include | |
parent | f80d0d2fd6d1e05ba59eab78ed950a140d092831 (diff) |
Fix AES_XTS on x86-64 platforms with BSAES and VPAES support.
Fixes #11622
Fixes #12378
Due to a missing else it was setting up the stream for BSAES and then using this incorrect stream with VPAES.
The correct behaviour is not to use VPAES at all in this case.
Also note that the original code in e_aes could set up VPAES and then would overwrite it with the generic implementation.
On a machine that supported both BSAES and VPAES the code was changed locally to force it to run both cases to verify
both paths produce the correct known answers.
Debugged using mageia 7.1, but is also highly likely to fix FreeBSD also.
Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org>
(Merged from https://github.com/openssl/openssl/pull/12887)
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions