[PATCH 2/2] crypto: mcryptd - use list_first_entry_or_null()

2015-11-16 Thread Geliang Tang
Simplify mcryptd_opportunistic_flush() with list_first_entry_or_null(). Signed-off-by: Geliang Tang --- crypto/mcryptd.c | 8 ++-- 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/crypto/mcryptd.c b/crypto/mcryptd.c index fe5b495a..f78d4fc 100644 ---

[PATCH 1/2] crypto: api - use list_first_entry_or_null and list_next_entry

2015-11-16 Thread Geliang Tang
Simplify crypto_more_spawns() with list_first_entry_or_null() and list_next_entry(). Signed-off-by: Geliang Tang --- crypto/algapi.c | 9 - 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/crypto/algapi.c b/crypto/algapi.c index 59bf491..7be76aa 100644

Re: [PATCH 0/2] Timing leaks in certain HW-crypto drivers

2015-11-16 Thread Herbert Xu
On Sun, Nov 15, 2015 at 05:14:40PM +0100, David Gstir wrote: > [resend to linux-crypto] > > Hi, > > the following patches fix timing leaks which are introduced by using > (non-constant time) memcmp() to verify cryptograhic authentication tags. > Specifically, the AES-GCM and AES-CCM

[PATCH v4 3/4] Crypto: rockchip/crypto - add crypto driver for rk3288

2015-11-16 Thread Zain Wang
Crypto driver support: ecb(aes) cbc(aes) ecb(des) cbc(des) ecb(des3_ede) cbc(des3_ede) You can alloc tags above in your case. And other algorithms and platforms will be added later on. Signed-off-by: Zain Wang Tested-by: Heiko Stuebner ---

[PATCH v4 1/4] crypto: rockchip/crypto - add DT bindings documentation

2015-11-16 Thread Zain Wang
Add DT bindings documentation for the rk3288 crypto drivers. Signed-off-by: Zain Wang Acked-by: Rob Herring Tested-by: Heiko Stuebner --- Changed in v4: - None Changed in v3: - add reset property Changed in v2: - None Changed in

[PATCH v4 2/4] clk: rockchip: set an ID for crypto clk

2015-11-16 Thread Zain Wang
Set an ID for crypto clk, so that it can be called in other part. Signed-off-by: Zain Wang Acked-by: Michael Turquette Tested-by: Heiko Stuebner --- Changed in v4: - None Changed in v3: - None Changed in v2: - None Changed in

[PATCH v4 4/4] ARM: dts: rockchip: Add Crypto node for rk3288

2015-11-16 Thread Zain Wang
Add Crypto node for rk3288 including crypto controller and dma clk. Signed-off-by: Zain Wang Tested-by: Heiko Stuebner --- Changed in v4: - None Changed in v3: - add reset property Changed in v2: - None Changed in v1: - remove the _crypto suffix -

[PATCH v2] crypto: sun4i-ss: add missing statesize

2015-11-16 Thread LABBE Corentin
sun4i-ss implementaton of md5/sha1 is via ahash algorithms. Commit 8996eafdcbad ("crypto: ahash - ensure statesize is non-zero") made impossible to load them without giving statesize. This patch specifiy statesize for sha1 and md5. Fixes: 6298e948215f ("crypto: sunxi-ss - Add Allwinner Security

[PATCH v2] crypto: sun4i-ss: add missing statesize

2015-11-16 Thread LABBE Corentin
Hello The current sun4i-ss cannot be loaded with the error "Failed to load md5". The following patch will fix that. Changes since v1: - Add the correct fixes tag. - Add the correct #version comment for stable. - Be more precise against the commit who made this change necessary. Regards -- To

[PATCH v2 1/3] dmaengine: Add support for new feature CRC32C computations

2015-11-16 Thread rsahu
From: Rameshwar Prasad Sahu This patch adds support for new feature CRC32C computations in dmaengine framework. Signed-of-by: Rameshwar Prasad Sahu --- Documentation/dmaengine/provider.txt |3 +++ drivers/dma/dmaengine.c |2 ++

[PATCH v2 3/3] Crypto: Add support for APM X-Gene SoC CRC32C h/w accelerator driver

2015-11-16 Thread rsahu
From: Rameshwar Prasad Sahu This patch implements support for APM X-Gene SoC CRC32C h/w accelerator. DMA engine in APM X-Gene SoC is capable of doing CRC32C computations. Signed-off-by: Rameshwar Prasad Sahu --- drivers/crypto/Kconfig|8 ++

[PATCH v2 2/3] dmaengine: xgene-dma: Add support for CRC32C computations via DMA engine

2015-11-16 Thread rsahu
From: Rameshwar Prasad Sahu This patch implements CRC32C support to APM X-Gene SoC DMA engine driver. Basically we have DMA engine in SoC capable of doing CRC32C computations. Signed-off-by: Rameshwar Prasad Sahu --- drivers/dma/xgene-dma.c | 314