crypto: vmx - convert to skcipher API

Convert the VMX implementations of AES-CBC, AES-CTR, and AES-XTS from
the deprecated "blkcipher" API to the "skcipher" API.

As part of this, I moved the skcipher_request for the fallback algorithm
off the stack and into the request context of the parent algorithm.

I tested this in a PowerPC VM with CONFIG_CRYPTO_MANAGER_EXTRA_TESTS=y.

Signed-off-by: Eric Biggers <ebiggers@google.com>
Tested-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:
Eric Biggers
2019-05-20 09:44:48 -07:00
committed by Herbert Xu
parent 1fa0a7dcf7
commit 2621a8699e
5 changed files with 251 additions and 344 deletions

View File

@@ -2,8 +2,6 @@
#include <linux/types.h>
#include <crypto/aes.h>
#define AES_BLOCK_MASK (~(AES_BLOCK_SIZE-1))
struct aes_key {
u8 key[AES_MAX_KEYLENGTH];
int rounds;