Re: [PATCH v5 2/7] crypto: SHA1 multibuffer crypto hash infrastructure

2014-07-29 Thread Tim Chen
On Fri, 2014-07-25 at 09:25 -0700, Tim Chen wrote: > On Fri, 2014-07-25 at 09:08 +0200, Peter Zijlstra wrote: > > On Tue, Jul 22, 2014 at 03:09:32PM -0700, Tim Chen wrote: > > > +/* Called in workqueue context, do one real cryption work (via > > > + * req->complete) and reschedule itself if there a

[PATCH] crypto/testmgr: add missing spaces to drbg error strings

2014-07-29 Thread Jarod Wilson
There are a few missing spaces in the error text strings for drbg_cavs_test, trivial fix. CC: Stephan Mueller CC: Herbert Xu CC: "David S. Miller" CC: linux-crypto@vger.kernel.org Signed-off-by: Jarod Wilson --- crypto/testmgr.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) dif

[PATCH] crypto: properly label AF_ALG socket

2014-07-29 Thread Milan Broz
Th AF_ALG socket was missing a security label (e.g. SELinux) which means that socket was in "unlabeled" state. This was recently demonstrated in the cryptsetup package (cryptsetup v1.6.5 and later.) See https://bugzilla.redhat.com/show_bug.cgi?id=1115120 This patch clones the sock's label from th

Re: [PATCH] [v3] crypto: sha512: add ARM NEON implementation

2014-07-29 Thread Jussi Kivilinna
On 29.07.2014 15:35, Ard Biesheuvel wrote: > On 30 June 2014 18:39, Jussi Kivilinna wrote: >> This patch adds ARM NEON assembly implementation of SHA-512 and SHA-384 >> algorithms. >> >> tcrypt benchmark results on Cortex-A8, sha512-generic vs sha512-neon-asm: >> >> block-size bytes/update

Re: [PATCH] [v3] crypto: sha512: add ARM NEON implementation

2014-07-29 Thread Ard Biesheuvel
On 30 June 2014 18:39, Jussi Kivilinna wrote: > This patch adds ARM NEON assembly implementation of SHA-512 and SHA-384 > algorithms. > > tcrypt benchmark results on Cortex-A8, sha512-generic vs sha512-neon-asm: > > block-size bytes/updateold-vs-new > 16 16 2.99x

[PATCH 0/2] Add TLS record layer encryption module

2014-07-29 Thread Cristian Stoica
Hi all, This set of patches introduces support for TLS 1.0 record layer encryption/decryption with a corresponding algorithm called tls10(hmac(),cbc()). Similarly to authenc.c on which it is based, this module mixes the base algorithms in software to produce an algorithm that does record layer en

[PATCH 1/2] crypto: add support for TLS 1.0 record encryption

2014-07-29 Thread Cristian Stoica
This patch adds kernel support for encryption/decryption of TLS 1.0 records using block ciphers. Implementation is similar to authenc in the sense that the base algorithms (AES, SHA1) are combined in a template to produce TLS encapsulation frames. The composite algorithm will be called "tls10(hmac(

[PATCH 2/2] crypto: add TLS 1.0 test vectors for AES-CBC-HMAC-SHA1

2014-07-29 Thread Cristian Stoica
Signed-off-by: Cristian Stoica --- crypto/tcrypt.c | 5 ++ crypto/testmgr.c | 41 --- crypto/testmgr.h | 217 +++ 3 files changed, 253 insertions(+), 10 deletions(-) diff --git a/crypto/tcrypt.c b/crypto/tcrypt.c index c48d078..be92

Re: DMA support for mv_cesa

2014-07-29 Thread Muran Hrun
Ah, thanks for the answer. I can assist with hw (DNS-320 and possibly other) to test on when time comes. The goal would be to have a low cost encrypted NAS as fast as possible. M 2014-07-28 23:05 GMT+02:00 Phil Sutter : > On Mon, Jul 28, 2014 at 03:24:43PM +0200, Muran Hrun wrote: >> Hi, >> >>