Re: [PATCH] crypto: ccp - Fix return value check in ccp_dmaengine_register()

2016-09-19 Thread Gary R Hook
On 09/17/2016 11:01 AM, Wei Yongjun wrote: From: Wei Yongjun Fix the retrn value check which testing the wrong variable in ccp_dmaengine_register(). Fixes: 58ea8abf4904 ("crypto: ccp - Register the CCP as a DMA resource") Signed-off-by: Wei Yongjun

Re: [PATCH -next] crypto: ccp - use kmem_cache_zalloc instead of kmem_cache_alloc/memset

2016-09-19 Thread Gary R Hook
On 09/14/2016 10:28 PM, Wei Yongjun wrote: From: Wei Yongjun Using kmem_cache_zalloc() instead of kmem_cache_alloc() and memset(). Signed-off-by: Wei Yongjun --- drivers/crypto/ccp/ccp-dmaengine.c | 4 +--- 1 file changed, 1 insertion(+), 3

[PATCH 2/8] crypto: omap-sham: align algorithms on word offset

2016-09-19 Thread Tero Kristo
OMAP HW generally expects data for DMA to be on word boundary, so make the SHA driver inform crypto framework of the same preference. Signed-off-by: Tero Kristo --- drivers/crypto/omap-sham.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git

[PATCH 0/8] crypto: omap-sham: convert to sg based data engine

2016-09-19 Thread Tero Kristo
Hi, This series converts the omap-sham buffer handling towards a scatterlist approach. This avoids the need to have a huge internal buffer within the driver, and also allows us to properly implement export/import for the driver. I tried splitting up the changes to some sane patches, but this was

[PATCH 7/8] crypto: omap-sham: add support for export/import

2016-09-19 Thread Tero Kristo
Now that the driver has been converted to use scatterlists for data handling, add proper implementation for the export/import stubs also. Signed-off-by: Tero Kristo --- drivers/crypto/omap-sham.c | 16 +--- 1 file changed, 13 insertions(+), 3 deletions(-) diff

[PATCH 8/8] crypto: omap-sham: shrink the internal buffer size

2016-09-19 Thread Tero Kristo
The current internal buffer size is way too large for crypto core, so shrink it to be smaller. This makes the buffer to fit into the space reserved for the export/import buffers also. Signed-off-by: Tero Kristo --- drivers/crypto/omap-sham.c | 2 +- 1 file changed, 1

[PATCH 6/8] crypto: omap-sham: convert driver logic to use sgs for data xmit

2016-09-19 Thread Tero Kristo
Currently, the internal buffer has been used for data transmission. Change this so that scatterlists are used instead, and change the driver to actually use the previously introduced helper functions for scatterlist preparation. This patch also removes the old buffer handling code which is no

[PATCH 3/8] crypto: omap-sham: rename sgl to sgl_tmp for deprecation

2016-09-19 Thread Tero Kristo
The current usage of sgl will be deprecated, and will be replaced by an array required by the sg based driver implementation. Rename the existing variable as sgl_tmp so that it can be removed from the driver easily later. Signed-off-by: Tero Kristo ---

Crypto Fixes for 4.8

2016-09-19 Thread Herbert Xu
Hi Linus: This push fixes a potential weakness in IPsec CBC IV generation, as well as a number of issues that arose out of an OOM crash on ARM with CTR-mode AES. Please pull from git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6.git linus Ard Biesheuvel (2): crypto: