aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/crypto/vmx/aesp8-ppc.h
diff options
context:
space:
mode:
authorEric Biggers <ebiggers@google.com>2019-05-20 09:44:48 -0700
committerHerbert Xu <herbert@gondor.apana.org.au>2019-05-30 15:28:40 +0800
commit2621a8699e81c0a4f17d7b98ef22f1f89975a7b5 (patch)
treeb0fdfeea8fc24554caf48d43d27ee2e199b377b5 /drivers/crypto/vmx/aesp8-ppc.h
parentcrypto: vmx - convert to SPDX license identifiers (diff)
downloadlinux-dev-2621a8699e81c0a4f17d7b98ef22f1f89975a7b5.tar.xz
linux-dev-2621a8699e81c0a4f17d7b98ef22f1f89975a7b5.zip
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>
Diffstat (limited to 'drivers/crypto/vmx/aesp8-ppc.h')
-rw-r--r--drivers/crypto/vmx/aesp8-ppc.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/crypto/vmx/aesp8-ppc.h b/drivers/crypto/vmx/aesp8-ppc.h
index 349646b73754..01774a4d26a2 100644
--- a/drivers/crypto/vmx/aesp8-ppc.h
+++ b/drivers/crypto/vmx/aesp8-ppc.h
@@ -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;