[PATCH] crypto: testmgr - add aead cbc des, des3_ede tests.

2013-01-08 Thread Vakul Garg
Test vectors were taken from existing test for CBC(DES3_EDE). Associated data has been added to test vectors. HMAC computed with Crypto++ has been used. Following algos have been covered. (a) "authenc(hmac(sha1),cbc(des))" (b) "authenc(hmac(sha1),cbc(des3_ede))" (c) "authen

[PATCH] crypto: s5p-sss - Use devm_clk_get()

2013-01-08 Thread Jingoo Han
The devm_ functions allocate memory that is released when a driver detaches. This patch uses devm_clk_get() for these functions. These make the code smaller and a bit simpler Signed-off-by: Jingoo Han --- drivers/crypto/s5p-sss.c |4 +--- 1 files changed, 1 insertions(+), 3 deletions(-) dif

Re: [PATCH 07/10] crypto: omap-aes - Add Device Tree Support

2013-01-08 Thread Mark A. Greer
On Fri, Dec 28, 2012 at 02:06:02AM -0800, Russ Dill wrote: > On Fri, Dec 21, 2012 at 10:04 AM, Mark A. Greer > wrote: > > From: "Mark A. Greer" > > > > Add Device Tree suport to the omap-aes crypto > > driver. Currently, only support for OMAP2 and > > OMAP3 is being added but support for OMAP4

[PATCH v2 08/10] crypto: omap-aes - Convert to dma_request_slave_channel_compat()

2013-01-08 Thread Mark A. Greer
From: "Mark A. Greer" Use the dma_request_slave_channel_compat() call instead of the dma_request_channel() call to request a DMA channel. This allows the omap-aes driver use different DMA engines. CC: Dmitry Kasatkin Signed-off-by: Mark A. Greer --- drivers/crypto/omap-aes.c | 12

[PATCH v2 05/10] crypto: omap-aes - Add code to use dmaengine API

2013-01-08 Thread Mark A. Greer
From: "Mark A. Greer" Add code to use the new dmaengine API alongside the existing DMA code that uses the private OMAP DMA API. The API to use is chosen by defining or undefining 'OMAP_AES_DMA_PRIVATE'. CC: Russell King CC: Dmitry Kasatkin Signed-off-by: Mark A. Greer --- drivers/crypto/oma

[PATCH v2 09/10] crypto: omap-aes - Add OMAP4/AM33XX AES Support

2013-01-08 Thread Mark A. Greer
From: "Mark A. Greer" Add support for the OMAP4 version of the AES module that is present on OMAP4 and AM33xx SoCs. The modules have several differences including register offsets and how DMA is triggered. To handle these differences, a platform_data structure is defined and contains routine po

[PATCH v2 06/10] crypto: omap-aes - Remove usage of private DMA API

2013-01-08 Thread Mark A. Greer
From: "Mark A. Greer" Remove usage of the private OMAP DMA API. The dmaengine API will be used instead. CC: Russell King CC: Dmitry Kasatkin Signed-off-by: Mark A. Greer --- drivers/crypto/omap-aes.c | 133 -- 1 file changed, 133 deletions(-) diff

[PATCH v2 10/10] crypto: omap-aes - Add CTR algorithm Support

2013-01-08 Thread Mark A. Greer
From: "Mark A. Greer" The OMAP3 and OMAP4/AM33xx versions of the AES crypto module support the CTR algorithm in addition to ECB and CBC that the OMAP2 version of the module supports. So, OMAP2 and OMAP3 share a common register set but OMAP3 supports CTR while OMAP2 doesn't. OMAP4/AM33XX uses a

[PATCH v2 07/10] crypto: omap-aes - Add Device Tree Support

2013-01-08 Thread Mark A. Greer
From: "Mark A. Greer" Add Device Tree suport to the omap-aes crypto driver. Currently, only support for OMAP2 and OMAP3 is being added but support for OMAP4 will be added in a subsequent patch. CC: Dmitry Kasatkin Signed-off-by: Mark A. Greer --- drivers/crypto/omap-aes.c | 123 +

[PATCH v2 03/10] crypto: omap-aes - Convert to use pm_runtime API

2013-01-08 Thread Mark A. Greer
From: "Mark A. Greer" Convert the omap-aes crypto driver to use the pm_runtime API instead of the clk API. CC: Kevin Hilman CC: Dmitry Kasatkin Signed-off-by: Mark A. Greer --- drivers/crypto/omap-aes.c | 29 +++-- 1 file changed, 11 insertions(+), 18 deletions(-) di

[PATCH v2 04/10] crypto: omap-aes - Add suspend/resume support

2013-01-08 Thread Mark A. Greer
From: "Mark A. Greer" Add suspend/resume support to the OMAP AES driver. CC: Dmitry Kasatkin Signed-off-by: Mark A. Greer --- drivers/crypto/omap-aes.c | 19 +++ 1 file changed, 19 insertions(+) diff --git a/drivers/crypto/omap-aes.c b/drivers/crypto/omap-aes.c index c229852.

[PATCH v2 01/10] crypto: omap-aes - Remmove unnecessary pr_info noise

2013-01-08 Thread Mark A. Greer
From: "Mark A. Greer" Remove the unnecessary pr_info() calls from omap_aes_probe() and omap_aes_mod_init(). CC: Dmitry Kasatkin Signed-off-by: Mark A. Greer --- drivers/crypto/omap-aes.c | 4 1 file changed, 4 deletions(-) diff --git a/drivers/crypto/omap-aes.c b/drivers/crypto/omap-aes

[PATCH v2 00/10] crypto: omap-aes - Updates & New Functionality

2013-01-08 Thread Mark A. Greer
From: "Mark A. Greer" Changes from v1: - Addressed comments by Russ Dill by defining omap_aes_of_match[] to contain an empty entry (end of list indicator) and defining omap_aes_get_res_of() instead of incorrectly defining omap_aes_get_res_dev() when CONFIG_OF is not defined. This patc

[PATCH v2 02/10] crypto: omap-aes - Don't reset controller for every operation

2013-01-08 Thread Mark A. Greer
From: "Mark A. Greer" The AES controller only needs to be reset once and that will be done by the hwmod infrastructure, if possible. Therefore, remove the reset code from the omap-aes driver. CC: Dmitry Kasatkin Signed-off-by: Mark A. Greer --- drivers/crypto/omap-aes.c | 27