[PATCH 0/4] crypto: caam - add ecb mode support

From: Iuliana Prodan
Date: Fri Feb 08 2019 - 08:51:20 EST


This patch set adds ecb mode support for aes, des, 3des and arc4 ciphers.
skcipher implementation is reused, making sure to handle the no IV case.

While here:
-fix a DMA API issue where initial src/dst_nents are used instead of nents
returned by dma_map_sg()
-export arc4 defines in a common header
-update cbc des and 3des to check for weak keys

Iuliana Prodan (4):
crypto: caam - use mapped_{src,dst}_nents for job descriptor
crypto: export arc4 defines
crypto: caam - add ecb(*) support
crypto: caam - weak key checking for cbc des, 3des

crypto/arc4.c | 5 +-
drivers/crypto/bcm/cipher.h | 4 +-
drivers/crypto/caam/Kconfig | 1 +
drivers/crypto/caam/caamalg.c | 215 ++++++++++++++++++++++++++++---------
drivers/crypto/caam/caamalg_desc.c | 18 ++--
drivers/crypto/caam/compat.h | 1 +
include/crypto/arc4.h | 13 +++
7 files changed, 195 insertions(+), 62 deletions(-)
create mode 100644 include/crypto/arc4.h

--
2.1.0