summaryrefslogtreecommitdiffstats
path: root/drivers/crypto/Kconfig
diff options
context:
space:
mode:
authorChristian Lamparter <chunkeey@gmail.com>2018-04-19 18:41:54 +0200
committerHerbert Xu <herbert@gondor.apana.org.au>2018-04-28 16:09:43 +0800
commit98e87e3d933b8e504ea41b8857c038d2cd06cddc (patch)
tree49f9dea288fa426f43118b11da4b1beee71bdcca /drivers/crypto/Kconfig
parentc4e90650ff0cbf123ec9cfc32026fa0fb2931658 (diff)
downloadtalos-obmc-linux-98e87e3d933b8e504ea41b8857c038d2cd06cddc.tar.gz
talos-obmc-linux-98e87e3d933b8e504ea41b8857c038d2cd06cddc.zip
crypto: crypto4xx - add aes-ctr support
This patch adds support for the aes-ctr skcipher. name : ctr(aes) driver : ctr-aes-ppc4xx module : crypto4xx priority : 300 refcnt : 1 selftest : passed internal : no type : skcipher async : yes blocksize : 16 min keysize : 16 max keysize : 32 ivsize : 16 chunksize : 16 walksize : 16 The hardware uses only the last 32-bits as the counter while the kernel tests (aes_ctr_enc_tv_template[4] for example) expect that the whole IV is a counter. To make this work, the driver will fallback if the counter is going to overlow. The aead's crypto4xx_setup_fallback() function is renamed to crypto4xx_aead_setup_fallback. Signed-off-by: Christian Lamparter <chunkeey@gmail.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/Kconfig')
-rw-r--r--drivers/crypto/Kconfig1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/crypto/Kconfig b/drivers/crypto/Kconfig
index 3dbc47528667..1fa263adbcc6 100644
--- a/drivers/crypto/Kconfig
+++ b/drivers/crypto/Kconfig
@@ -302,6 +302,7 @@ config CRYPTO_DEV_PPC4XX
select CRYPTO_AEAD
select CRYPTO_AES
select CRYPTO_CCM
+ select CRYPTO_CTR
select CRYPTO_GCM
select CRYPTO_BLKCIPHER
help
OpenPOWER on IntegriCloud