Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
crypto: vmx - fix copy-paste error in CTR mode
The original assembly imported from OpenSSL has 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 leads to corruption of the IV, which leads to subsequent blocks being corrupted. This can be detected with libkcapi test suite, which is available at https://github.com/smuellerDD/libkcapi Reported-by: Ondrej Mosnáček <[email protected]> Fixes: 5c380d6 ("crypto: vmx - Add support for VMS instructions by ASM") Cc: [email protected] Signed-off-by: Daniel Axtens <[email protected]> Tested-by: Michael Ellerman <[email protected]> Tested-by: Ondrej Mosnacek <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
- Loading branch information