Re: [PATCH v5 1/6] SP800-90A Deterministic Random Bit Generator

2014-04-14 Thread Stephan Mueller
Am Montag, 14. April 2014, 22:51:05 schrieb Joe Perches: Hi Joe, > On Tue, 2014-04-15 at 07:35 +0200, Stephan Mueller wrote: > > diff --git a/crypto/drbg.c b/crypto/drbg.c > > [] > > > @@ -0,0 +1,1997 @@ > > [] > > > +/*** > > + * Ba

Re: [PATCH v5 1/6] SP800-90A Deterministic Random Bit Generator

2014-04-14 Thread Joe Perches
On Tue, 2014-04-15 at 07:35 +0200, Stephan Mueller wrote: > diff --git a/crypto/drbg.c b/crypto/drbg.c [] > @@ -0,0 +1,1997 @@ [] > +/*** > + * Backend cipher definitions available to DRBG > + **

[RFC PATCH v2 8/9] crypto: qce: Build Qualcomm qce driver

2014-04-14 Thread Stanimir Varbanov
Modify crypto Kconfig and Makefile in order to build the qce driver. Signed-off-by: Stanimir Varbanov --- drivers/crypto/Kconfig | 10 ++ drivers/crypto/Makefile | 1 + 2 files changed, 11 insertions(+) diff --git a/drivers/crypto/Kconfig b/drivers/crypto/Kconfig index 03ccdb0ccf9e..0

[RFC PATCH v2 7/9] crypto: qce: Adds Makefile to build the driver

2014-04-14 Thread Stanimir Varbanov
Adds Makefile needed to build the driver. Signed-off-by: Stanimir Varbanov --- drivers/crypto/qce/Makefile | 6 ++ 1 file changed, 6 insertions(+) create mode 100644 drivers/crypto/qce/Makefile diff --git a/drivers/crypto/qce/Makefile b/drivers/crypto/qce/Makefile new file mode 100644 inde

[RFC PATCH v2 6/9] crypto: qce: Adds infrastructure to setup the crypto block

2014-04-14 Thread Stanimir Varbanov
Here are functions used to setup/prepare hardware registers for all algorithms supported by the crypto block. It also exports few helper functions needed by algorithms: - to check hardware status - to start crypto hardware - to translate data stream to big endian form Signe

[RFC PATCH v2 5/9] crypto: qce: Adds sha and hmac transforms

2014-04-14 Thread Stanimir Varbanov
Here is the implementation and registration of ahash crypto type. It includes sha1, sha256, hmac(sha1) and hmac(sha256). Signed-off-by: Stanimir Varbanov --- drivers/crypto/qce/sha.c | 591 +++ drivers/crypto/qce/sha.h | 81 +++ 2 files changed, 6

[RFC PATCH v2 4/9] crypto: qce: Add ablkcipher algorithms

2014-04-14 Thread Stanimir Varbanov
Here is the implementation of AES, DES and 3DES crypto API callbacks, the crypto register alg function, the async request handler and its dma done callback function. Signed-off-by: Stanimir Varbanov --- drivers/crypto/qce/ablkcipher.c | 403 drivers/crypt

[RFC PATCH v2 3/9] crypto: qce: Add dma and sg helpers

2014-04-14 Thread Stanimir Varbanov
This adds dmaengine and sg-list helper functions used by other parts of the crypto driver. Signed-off-by: Stanimir Varbanov --- drivers/crypto/qce/dma.c | 188 +++ drivers/crypto/qce/dma.h | 58 +++ 2 files changed, 246 insertions(+) crea

[RFC PATCH v2 2/9] crypto: qce: Add register defines

2014-04-14 Thread Stanimir Varbanov
Here are all register addresses and bit/masks used by the driver. Signed-off-by: Stanimir Varbanov --- drivers/crypto/qce/regs-v5.h | 331 +++ 1 file changed, 331 insertions(+) create mode 100644 drivers/crypto/qce/regs-v5.h diff --git a/drivers/crypto/q

[RFC PATCH v2 1/9] crypto: qce: Add core driver implementation

2014-04-14 Thread Stanimir Varbanov
This adds core driver files. The core part is implementing a platform driver probe and remove callbaks, the probe enables clocks, checks crypto version, initialize and request dma channels, create done tasklet and work queue and finally register the algorithms into crypto subsystem. Signed-off-by:

[RFC PATCH v2 0/9] Add Qualcomm crypto driver

2014-04-14 Thread Stanimir Varbanov
Hi, Here is the second version of the patch set. This time tagged as an RFC to avoid confusions. The driver is splitted by files and is buildable at the last patch. When the review has finished 1/9 to 7/9 could be squashed in one patch. Any comments appreciated! Changes since v1: core - added

Re: Question about Talitos Linux driver for MPC885

2014-04-14 Thread leroy christophe
Le 28/11/2012 00:11, Kim Phillips a écrit : On Fri, 23 Nov 2012 14:51:08 +0100 leroy christophe wrote: Le 26/09/2012 02:47, Kim Phillips a écrit : On Tue, 25 Sep 2012 10:45:17 +0200 leroy christophe wrote: I'm trying to use the Talitos crypto driver with the MPC885 microcontroller. For th

Re: [PATCH 5/9] crypto: qce: Adds sha and hmac transforms

2014-04-14 Thread Stanimir Varbanov
Hi Stephen, On 04/11/2014 11:12 PM, Stephen Boyd wrote: > On 04/10, Stanimir Varbanov wrote: >> On 04/09/2014 03:09 AM, Stephen Boyd wrote: >>> On 04/03, Stanimir Varbanov wrote: >>> + + return 0; +} + +static int qce_ahash_import(struct ahash_request *req, const void *in

Re: [PATCH 1/9] crypto: qce: Add core driver implementation

2014-04-14 Thread Stanimir Varbanov
Hi Courtney, On 04/09/2014 01:00 AM, Courtney Cavin wrote: > On Tue, Apr 08, 2014 at 06:26:44PM +0200, Stanimir Varbanov wrote: >> On 04/04/2014 02:38 AM, Courtney Cavin wrote: >>> On Thu, Apr 03, 2014 at 06:17:58PM +0200, Stanimir Varbanov wrote: This adds core driver files. The core part is