[PATCH 3/3] crypto: caam - add support for xcbc(aes)

2018-12-21 Thread Horia Geantă
From: Iuliana Prodan Add xcbc(aes) offloading support. Due to xcbc algorithm design and HW implementation in CAAM, driver must still have some bytes to send to the crypto engine when ahash_final() is called - such that HW correctly uses either K2 or K3 for the last block. Signed-off-by: Iuliana

[PATCH 1/3] crypto: caam - fix error reporting for caam_hash_alloc

2018-12-21 Thread Horia Geantă
From: Iuliana Prodan Fix error reporting when preparation of an hmac algorithm for registration fails: print the hmac algorithm name, not the unkeyed hash algorithm name. Signed-off-by: Iuliana Prodan Signed-off-by: Horia Geantă --- drivers/crypto/caam/caamhash.c | 3 ++- 1 file changed, 2 in

[PATCH 0/3] crypto: caam - add support for xcbc(aes)

2018-12-21 Thread Horia Geantă
This patch set adds support for xcbc(aes) and improves a few ahash things along the way. It depends on the following patch: [v2] crypto: caam - fix SHA support detection https://patchwork.kernel.org/patch/10740373/ Iuliana Prodan (3): crypto: caam - fix error reporting for caam_hash_alloc cry

[PATCH 2/3] crypto: caam - create ahash shared descriptors only once

2018-12-21 Thread Horia Geantă
From: Iuliana Prodan For keyed hash algorithms, shared descriptors are currently generated twice: -at tfm initialization time, in cra_init() callback -in setkey() callback Since it's mandatory to call setkey() for keyed algorithms, drop the generation in cra_init(). Signed-off-by: Iuliana Proda

[PATCH v2] crypto: caam - fix SHA support detection

2018-12-21 Thread Horia Geantă
The addition of Chacha20 + Poly1305 authenc support inadvertently broke detection of algorithms supported by MDHA (Message Digest Hardware Accelerator), fix it. Cc: Fixes: d6bbd4eea243 ("crypto: caam/jr - add support for Chacha20 + Poly1305") Signed-off-by: Horia Geantă --- v2: fixed include of

[PATCH] crypto: caam - fix SHA support detection

2018-12-21 Thread Horia Geantă
The addition of Chacha20 + Poly1305 authenc support inadvertently broke detection of algorithms supported by MDHA (Message Digest Hardware Accelerator), fix it. Cc: Fixes: d6bbd4eea243 ("crypto: caam/jr - add support for Chacha20 + Poly1305") Signed-off-by: Horia Geantă --- drivers/crypto/caam/

[PATCH v3] crypto: talitos - fix ablkcipher for CONFIG_VMAP_STACK

2018-12-21 Thread Christophe Leroy
[2.364486] WARNING: CPU: 0 PID: 60 at ./arch/powerpc/include/asm/io.h:837 dma_nommu_map_page+0x44/0xd4 [2.373579] CPU: 0 PID: 60 Comm: cryptomgr_test Tainted: GW 4.20.0-rc5-00560-g6bfb52e23a00-dirty #531 [2.384740] NIP: c000c540 LR: c000c584 CTR: [2.38974