[PATCH] Crypto:Add HMAC-SHA3 test modes and test vectors

2016-06-30 Thread Raveendra Padasalagi
This patch adds HMAC-SHA3 test modes in tcrypt module and related test vectors. Signed-off-by: Raveendra Padasalagi --- crypto/tcrypt.c | 16 +++ crypto/testmgr.c | 40 ++ crypto/testmgr.h | 388 +++ 3 files changed, 444 insertions(+) d

[PATCH 1/2] powerpc: define FUNC_START/FUNC_END

2016-06-30 Thread Anton Blanchard
From: Anton Blanchard gcc provides FUNC_START/FUNC_END macros to help with creating assembly functions. Mirror these in the kernel so we can more easily share code between userspace and the kernel. FUNC_END is just a stub since we don't currently annotate the end of kernel functions. It might ma

[PATCH 2/2] crypto: powerpc: Add POWER8 optimised crc32c

2016-06-30 Thread Anton Blanchard
From: Anton Blanchard Use the vector polynomial multiply-sum instructions in POWER8 to speed up crc32c. This is just over 41x faster than the slice-by-8 method that it replaces. Measurements on a 4.1 GHz POWER8 show it sustaining 52 GiB/sec. A simple btrfs write performance test: dd if=/de

Re: [patch] crypto: sha256-mb - cleanup a || vs | typo

2016-06-30 Thread Dan Carpenter
On Thu, Jun 30, 2016 at 01:42:19PM -0700, Tim Chen wrote: > On Wed, 2016-06-29 at 10:05 -0700, H. Peter Anvin wrote: > > On 06/29/16 07:42, Dan Carpenter wrote: > > > > > > > > > > > > > > > > > and | behave basically the same here but || is intended.  It causes a > > > static checker warning to

Re: [patch] crypto: sha256-mb - cleanup a || vs | typo

2016-06-30 Thread Tim Chen
On Wed, 2016-06-29 at 10:05 -0700, H. Peter Anvin wrote: > On 06/29/16 07:42, Dan Carpenter wrote: > > > > > > > > > > > > > and | behave basically the same here but || is intended.  It causes a > > static checker warning to mix up bitwise and logical operations. > > > > Signed-off-by: Dan Carp

[PATCH v2] crypto: omap-sham - increase cra_proirity to 400

2016-06-30 Thread Bin Liu
The arm-neon-sha implementations have cra_priority of 150...300, so increase omap-sham priority to 400 to ensure it is on top of any software alg. Signed-off-by: Bin Liu --- v2: updated commit comments to be more specific. drivers/crypto/omap-sham.c | 24 1 file changed

Re: crypto: tcrypt - Do not bail on EINPROGRESS in multibuffer hash test

2016-06-30 Thread Megha Dey
On Thu, 2016-06-30 at 11:00 +0800, Herbert Xu wrote: > On Wed, Jun 29, 2016 at 10:45:56AM -0700, Megha Dey wrote: > > I tested the latest cryptodev tree on my haswell machine and this is > > what I see: > > [ 40.402834] modprobe tcrypt mode=422 > > [ 40.403105] testing speed of multibuffer sha1

[PATCH] crypto: qat - Switch to new rsa_helper functions

2016-06-30 Thread Salvatore Benedetto
Drop all asn1 related code in qat and use the new rsa_helper functions rsa_parse_[pub|priv]_key for parsing the key Signed-off-by: Salvatore Benedetto --- crypto/testmgr.c | 1 + drivers/crypto/qat/Kconfig| 2 +- drivers/crypto/qat/qat_c

kexec_file_load signature verification failure

2016-06-30 Thread Dave Young
Hi, David kexec_file_load fails with a Bad Message error with recent kernel: kexec_file_load failed: Bad message Debug messages: [ 3463.794391] PEFILE: checksum @ da [ 3463.794395] PEFILE: header size = 200 [ 3463.794397] PEFILE: cert = 898 @4a5370 [97 08 00 00 00 02 02 00 30 82 08 8b 06 09 2a

Re: [patch] crypto: sha256-mb - cleanup a || vs | typo

2016-06-30 Thread Dan Carpenter
The difference between | and || is that || has ordering constraints. It's from the C standard, and not the compiler version. regards, dan carpenter -- To unsubscribe from this list: send the line "unsubscribe linux-crypto" in the body of a message to majord...@vger.kernel.org More majordomo info

Re: [patch] crypto: sha256-mb - cleanup a || vs | typo

2016-06-30 Thread walter harms
Am 30.06.2016 13:16, schrieb Joe Perches: > On Thu, 2016-06-30 at 10:50 +0300, Dan Carpenter wrote: >> On Wed, Jun 29, 2016 at 10:05:53AM -0700, H. Peter Anvin wrote: >>> On 06/29/16 07:42, Dan Carpenter wrote: >> and | behave basically the same here but || is intended. It causes a stat

Re: [patch] crypto: sha256-mb - cleanup a || vs | typo

2016-06-30 Thread Joe Perches
On Thu, 2016-06-30 at 10:50 +0300, Dan Carpenter wrote: > On Wed, Jun 29, 2016 at 10:05:53AM -0700, H. Peter Anvin wrote: > > On 06/29/16 07:42, Dan Carpenter wrote: > > > > > and | behave basically the same here but || is intended.  It causes a > > > static checker warning to mix up bitwise and lo

[PATCH] crypto: qat - make qat_asym_algs.o depend on asn1 headers

2016-06-30 Thread Jan Stancek
Parallel build can sporadically fail because asn1 headers may not be built yet by the time qat_asym_algs.o is compiled: drivers/crypto/qat/qat_common/qat_asym_algs.c:55:32: fatal error: qat_rsapubkey-asn1.h: No such file or directory #include "qat_rsapubkey-asn1.h" Signed-off-by: Jan Stancek

Re: [patch] crypto: sha256-mb - cleanup a || vs | typo

2016-06-30 Thread Dan Carpenter
On Wed, Jun 29, 2016 at 10:05:53AM -0700, H. Peter Anvin wrote: > On 06/29/16 07:42, Dan Carpenter wrote: > > || and | behave basically the same here but || is intended. It causes a > > static checker warning to mix up bitwise and logical operations. > > > > Signed-off-by: Dan Carpenter > > > >

Re: [PATCH] crypto: omap-sham - increase cra_proirity to 400

2016-06-30 Thread Tero Kristo
On 29/06/16 19:11, Bin Liu wrote: Some software alg has cra_priority as higher as 300, so increase omap-sham priority to 400 to ensure it is on top of any software alg. You could mention the case where this is causing issues, namely the arm-neon-sha implementations which currently have priorit