-
- Downloads
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>
Showing
- drivers/crypto/Kconfig 1 addition, 0 deletionsdrivers/crypto/Kconfig
- drivers/crypto/amcc/crypto4xx_alg.c 85 additions, 6 deletionsdrivers/crypto/amcc/crypto4xx_alg.c
- drivers/crypto/amcc/crypto4xx_core.c 37 additions, 0 deletionsdrivers/crypto/amcc/crypto4xx_core.c
- drivers/crypto/amcc/crypto4xx_core.h 5 additions, 0 deletionsdrivers/crypto/amcc/crypto4xx_core.h
Loading
Please register or sign in to comment