crypto: vmx - return correct error code on failed setkey
In the VMX implementations of AES and AES modes, return -EINVAL when an invalid key length is provided, rather than some unusual error code determined via a series of additions. This makes the behavior match the other AES implementations in the kernel's crypto API. Cc: Daniel Axtens <dja@axtens.net> Signed-off-by:Eric Biggers <ebiggers@google.com> Signed-off-by:
Herbert Xu <herbert@gondor.apana.org.au>
Showing
- drivers/crypto/vmx/aes.c 4 additions, 3 deletionsdrivers/crypto/vmx/aes.c
- drivers/crypto/vmx/aes_cbc.c 4 additions, 3 deletionsdrivers/crypto/vmx/aes_cbc.c
- drivers/crypto/vmx/aes_ctr.c 3 additions, 2 deletionsdrivers/crypto/vmx/aes_ctr.c
- drivers/crypto/vmx/aes_xts.c 5 additions, 4 deletionsdrivers/crypto/vmx/aes_xts.c
Loading
Please register or sign in to comment