Support for ECDH P-192 and P-256

2014-02-17 Thread Marcel Holtmann
Hello, we are looking at adding support for Bluetooth Secure Connections to the Security Manager of the Bluetooth subsystem. For that we would need support for ECDH P-256 and eventually also P-192. Right now we are bit lost on how this could be achieved best. I saw that the symmetric_keys feat

Re: [PATCH] crypto: Add soft module dependency to load HW accelerated crypto modules

2014-02-17 Thread Neil Horman
On Sun, Feb 16, 2014 at 07:41:23AM +0800, Herbert Xu wrote: > On Fri, Feb 14, 2014 at 06:01:06PM -0800, Tim Chen wrote: > > > > Module A selects CRYPTO_ALG_B in config, which causes the generic > > ALG_B to get built and a module dependency to the generic > > ALG_B to be established. Then when mo

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

2014-02-17 Thread Naveen Krishna Chatradhi
This patch adds code to validate "iv" buffer before trying to memcpy the contents Signed-off-by: Naveen Krishna Chatradhi Reviewed-by: Tomasz Figa CC: David S. Miller CC: Herbert Xu CC: Vladimir Zapolskiy TO: CC: --- Changes since v6: None drivers/crypto/s5p-sss.c |3 ++- 1 file chang

[PATCH 6/9 v7] ARM: dts: exynos5250/5420: add dt node for sss module

2014-02-17 Thread Naveen Krishna Chatradhi
This patch adds the device tree node for SSS module found on Exynos5420 and Exynos5250 Signed-off-by: Naveen Krishna Chatradhi Reviewed-by: Tomasz Figa TO: CC: David S. Miller CC: Kukjin Kim CC: --- Changes since v6: None arch/arm/boot/dts/exynos5250.dtsi |8 arch/arm/boot/dts

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

2014-02-17 Thread Naveen Krishna Chatradhi
This patch adds device tree support to the s5p-sss.c crypto driver. Signed-off-by: Naveen Krishna Ch CC: Herbert Xu CC: David S. Miller CC: Vladimir Zapolskiy TO: CC: --- Changes since v6: None Changes since v5: Rewritten the interrupt definition in the documentation .../devicetree/binding

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

2014-02-17 Thread Naveen Krishna Chatradhi
From: Naveen Krishna Ch 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 Exynos4 and 5 SoCs

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

2014-02-17 Thread Naveen Krishna Chatradhi
From: Naveen Krishna Ch 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 Reviewed-by: Tomasz Figa CC: Herbert Xu CC: David S. Miller CC: Vladi

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

2014-02-17 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 Reviewed-by: Tomasz Figa CC: Herber

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

2014-02-17 Thread Naveen Krishna Chatradhi
From: Naveen Krishna Ch 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 irrespective of the system condit

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

2014-02-17 Thread Naveen Krishna Chatradhi
From: Naveen Krishna Ch 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 irrespective of the system condit

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

2014-02-17 Thread Naveen Krishna Chatradhi
This patch adds gating clock for SSS(Security SubSystem) module on Exynos5250/5420. Signed-off-by: Naveen Krishna Chatradhi Reviewed-by: Tomasz Figa TO: TO: Tomasz Figa CC: David S. Miller CC: Kukjin Kim CC: --- changes since v6: None changes since v5: 1. Added Reviewed-by: Tomasz Figa .

[PATCH 0/9 v7] crypto:s5p-sss: Add DT and Exynos support

2014-02-17 Thread Naveen Krishna Chatradhi
SSS module on Exynos4210, Exynos5250 and Exynos5420 SoCs has added features to the one on S5PV210. However with minor changes the s5p-sss.c driver can be reused to support SSS modules on Exynos4 and 5 SoCs. This patch set 1. Adds device tree support to the s5p-sss.c driver and Documentation 2. Add

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

2014-02-17 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 Reviewed-by: Tomasz Figa CC: David S. Miller CC: Herbert Xu CC: Vladimir Zapolskiy TO: CC: --- Changes since v6: None drivers/crypto/s5p-sss.c | 10 ++

Re: [PATCH 6/9 v6] ARM: dts: exynos5250/5420: add dt node for sss module

2014-02-17 Thread Naveen Krishna Ch
Hello Tomasz, On 14 February 2014 16:24, Tomasz Figa wrote: > Hi Kukjin, > > > On 14.02.2014 00:28, Kukjin Kim wrote: >> >> On 02/07/14 14:24, Naveen Krishna Chatradhi wrote: >>> >>> This patch adds the device tree node for SSS module >>> found on Exynos5420 and Exynos5250 >>> >>> Signed-off-by: