[PATCH] crypto: caam - fix ERA retrieval function

2014-02-06 Thread Alex Porosanu
SEC ERA has to be retrieved by reading the fsl,sec-era property from the device tree. This property is updated/filled in by u-boot. Change-Id: Ie1620354a0cf2cac5cd2c72bd5f2449f55858378 Signed-off-by: Alex Porosanu alexandru.poros...@freescale.com --- drivers/crypto/caam/ctrl.c | 36

Re: [PATCH] crypto: caam - fix ERA retrieval function

2014-02-06 Thread Horia Geantă
On 2/6/2014 10:27 AM, Alex Porosanu wrote: SEC ERA has to be retrieved by reading the fsl,sec-era property from the device tree. This property is updated/filled in by u-boot. Change-Id: Ie1620354a0cf2cac5cd2c72bd5f2449f55858378 Change-Id should be dropped. Signed-off-by: Alex Porosanu

[RFC PATCH 3/3] arm64: add Crypto Extensions based core AES cipher

2014-02-06 Thread Ard Biesheuvel
Signed-off-by: Ard Biesheuvel ard.biesheu...@linaro.org --- arch/arm64/Makefile | 1 + arch/arm64/crypto/Makefile| 13 ++ arch/arm64/crypto/aes-ce-cipher.c | 257 ++ crypto/Kconfig| 6 + 4 files changed, 277

[RFC PATCH 1/3] crypto: add interleave option to cipher_alg

2014-02-06 Thread Ard Biesheuvel
Many ciphers perform better when allowed to operate on data sizes that are larger than the natural block size of the algorithm. This patch adds a struct member .cia_interleave which holds the preferred number of blocks processed in a single invocation. The invocations themselves should occur

[RFC PATCH 0/3] support for interleaving in generic chaining modes

2014-02-06 Thread Ard Biesheuvel
My apologies if this has been discussed/debated before on linux-crypto. When working on accelerated crypto for ARM and arm64, I noticed that many of the existing accelerated implementations for other architectures duplicate much of the chaining modes, not because they can be accelerated

[RFC PATCH 2/3] crypto: take interleave into account for CBC decryption

2014-02-06 Thread Ard Biesheuvel
As CBC decryption can be executed in parallel, take the cipher alg's preferred interleave into account when decrypting data. Signed-off-by: Ard Biesheuvel ard.biesheu...@linaro.org --- crypto/cbc.c | 109 --- 1 file changed, 82

Re: [PATCH 2/9 v5] crypto:s5p-sss: Add device tree support

2014-02-06 Thread Tomasz Figa
Hi Naveen, On 29.01.2014 10:20, Naveen Krishna Chatradhi wrote: This patch adds device tree support to the s5p-sss.c crypto driver. Also, Documentation under devicetree/bindings added. Signed-off-by: Naveen Krishna Ch ch.nav...@samsung.com CC: Herbert Xu herb...@gondor.apana.org.au CC: David

Re: [PATCH 3/9 v5] crypto:s5p-sss: Add support for SSS module on Exynos

2014-02-06 Thread Tomasz Figa
Hi Naveen, On 29.01.2014 10:21, Naveen Krishna Chatradhi wrote: This patch adds new compatible and variant struct to support the SSS module on Exynos4 (Exynos4210), Exynos5 (Exynos5420 and Exynos5250) for which 1. AES register are at an offset of 0x200 and 2. hash interrupt is not available

Re: [PATCH 4/9 v5] crypto:s5p-sss: Kconfig: Let Exynos SoCs select SSS driver

2014-02-06 Thread Tomasz Figa
Hi Naveen, On 29.01.2014 10:22, Naveen Krishna Chatradhi wrote: From: Naveen Krishna Ch ch.nav...@samsung.com This patch modifies Kconfig such that ARCH_EXYNOS SoCs which includes (Exynos4210, Exynos5250 and Exynos5420) can also select Samsung SSS(Security SubSystem) driver. Signed-off-by:

Re: [PATCH 5/9 v5] clk: samsung exynos5250/5420: Add gate clock for SSS module

2014-02-06 Thread Tomasz Figa
Hi Naveen, On 29.01.2014 10:24, Naveen Krishna Chatradhi wrote: This patch adds gating clock for SSS(Security SubSystem) module on Exynos5250/5420. Signed-off-by: Naveen Krishna Chatradhi ch.nav...@samsung.com TO: linux-samsung-...@vger.kernel.org TO: Tomasz Figa t.f...@samsung.com CC: Kukjin

Re: [RFC PATCH 0/3] support for interleaving in generic chaining modes

2014-02-06 Thread Herbert Xu
On Thu, Feb 06, 2014 at 01:25:01PM +0100, Ard Biesheuvel wrote: My apologies if this has been discussed/debated before on linux-crypto. When working on accelerated crypto for ARM and arm64, I noticed that many of the existing accelerated implementations for other architectures duplicate

[PATCH 1/9 v6] crypto:s5p-sss: Use platform_get_irq() instead of _byname()

2014-02-06 Thread Naveen Krishna Chatradhi
From: Naveen Krishna Ch ch.nav...@samsung.com This patch uses the platform_get_irq() instead of the platform_get_irq_byname(). Making feeder control interrupt as resource 0 and hash interrupt as 1. reasons for this change. 1. Cannot find any Arch which is currently using this driver 2. Samsung

[PATCH 3/9 v6] crypto:s5p-sss: Add support for SSS module on Exynos

2014-02-06 Thread Naveen Krishna Chatradhi
This patch adds new compatible and variant struct to support the SSS module on Exynos4 (Exynos4210), Exynos5 (Exynos5420 and Exynos5250) for which 1. AES register are at an offset of 0x200 and 2. hash interrupt is not available Signed-off-by: Naveen Krishna Ch ch.nav...@samsung.com Reviewed-by:

[PATCH 4/9 v6] crypto:s5p-sss: Kconfig: Let Exynos SoCs select SSS driver

2014-02-06 Thread Naveen Krishna Chatradhi
From: Naveen Krishna Ch ch.nav...@samsung.com This patch modifies Kconfig such that ARCH_EXYNOS SoCs which includes (Exynos4210, Exynos5250 and Exynos5420) can also select Samsung SSS(Security SubSystem) driver. Signed-off-by: Naveen Krishna Ch ch.nav...@samsung.com Reviewed-by: Tomasz Figa

[PATCH 5/9 v6] clk: samsung exynos5250/5420: Add gate clock for SSS module

2014-02-06 Thread Naveen Krishna Chatradhi
This patch adds gating clock for SSS(Security SubSystem) module on Exynos5250/5420. Signed-off-by: Naveen Krishna Chatradhi ch.nav...@samsung.com Reviewed-by: Tomasz Figa t.f...@samsung.com TO: linux-samsung-...@vger.kernel.org CC: Kukjin Kim kgene@samsung.com CC: linux-crypto@vger.kernel.org

[PATCH 7/9 v6] crypto:s5p-sss: validate iv before memcpy

2014-02-06 Thread Naveen Krishna Chatradhi
This patch adds code to validate iv buffer before trying to memcpy the contents Signed-off-by: Naveen Krishna Chatradhi ch.nav...@samsung.com Reviewed-by: Tomasz Figa t.f...@samsung.com --- changes since v5: None drivers/crypto/s5p-sss.c |3 ++- 1 file changed, 2 insertions(+), 1

[PATCH 8/9 v6] crypto:s5p-sss: Use clk_prepare/clk_unprepare

2014-02-06 Thread Naveen Krishna Chatradhi
This patch set adds use of clk_prepare/clk_unprepare as required by generic clock framework. Signed-off-by: Naveen Krishna Chatradhi ch.nav...@samsung.com Reviewed-by: Tomasz Figa t.f...@samsung.com --- changes since v5: None drivers/crypto/s5p-sss.c | 10 +++--- 1 file changed, 7

[PATCH 9/9 v6] crypto:s5p-sss: Look for the next request in the queue

2014-02-06 Thread Naveen Krishna Chatradhi
From: Naveen Krishna Ch ch.nav...@samsung.com Currently, the driver enqueues a request only if the busy bit is false. And every request initiates a dequeue. If 2 requests arrive simultaneously, only one of them will be dequeued. To avoid this senario, we will enqueue the next request

Re: [RFC PATCH 0/3] support for interleaving in generic chaining modes

2014-02-06 Thread Ard Biesheuvel
On 7 February 2014 03:23, Herbert Xu herb...@gondor.apana.org.au wrote: On Thu, Feb 06, 2014 at 01:25:01PM +0100, Ard Biesheuvel wrote: My apologies if this has been discussed/debated before on linux-crypto. When working on accelerated crypto for ARM and arm64, I noticed that many of the