crypto: vmx - convert to skcipher API
authorEric Biggers <ebiggers@google.com>
Mon, 20 May 2019 16:44:48 +0000 (09:44 -0700)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 30 May 2019 07:28:40 +0000 (15:28 +0800)
commit2621a8699e81c0a4f17d7b98ef22f1f89975a7b5
treeb0fdfeea8fc24554caf48d43d27ee2e199b377b5
parent1fa0a7dcf7599f318e10e42ae66a0fe670fdc7bd
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>
drivers/crypto/vmx/aes_cbc.c
drivers/crypto/vmx/aes_ctr.c
drivers/crypto/vmx/aes_xts.c
drivers/crypto/vmx/aesp8-ppc.h
drivers/crypto/vmx/vmx.c