Re: may_use_simd on aarch64, chacha20

2017-05-26 Thread Dave Martin
On Fri, May 26, 2017 at 07:44:46PM +0200, Ard Biesheuvel wrote: > On 26 May 2017 at 15:28, Dave Martin wrote: > > On Sun, May 21, 2017 at 10:55:20PM +0200, Ard Biesheuvel wrote: > >> (+ Dave) [...] > >> > Lastly, APIs like pcrypts and padata execute with bottom halves > >>

Re: may_use_simd on aarch64, chacha20

2017-05-26 Thread Ard Biesheuvel
On 26 May 2017 at 15:28, Dave Martin wrote: > On Sun, May 21, 2017 at 10:55:20PM +0200, Ard Biesheuvel wrote: >> (+ Dave) > > Apologies for the slow reply -- hopefully this is still useful. > >> > On 21 May 2017, at 19:02, Jason A. Donenfeld wrote: >> > >> >

Re: [PATCH net-next 3/4] tls: kernel TLS support

2017-05-26 Thread Eric Dumazet
On Fri, 2017-05-26 at 11:18 -0400, David Miller wrote: > From: Eric Dumazet > Date: Fri, 26 May 2017 07:16:59 -0700 > > > On Wed, 2017-05-24 at 09:27 -0700, Dave Watson wrote: > >> Software implementation of transport layer security, implemented using ULP > >>

Re: [PATCH net-next 3/4] tls: kernel TLS support

2017-05-26 Thread David Miller
From: Eric Dumazet Date: Fri, 26 May 2017 07:16:59 -0700 > On Wed, 2017-05-24 at 09:27 -0700, Dave Watson wrote: >> Software implementation of transport layer security, implemented using ULP >> infrastructure. tcp proto_ops are replaced with tls equivalents of sendmsg

Re: [PATCH 10/11] crypto: sun4i-ss: fix large block size support

2017-05-26 Thread Corentin Labbe
On Wed, May 24, 2017 at 09:06:51PM +0200, Antoine Tenart wrote: > The run-time self-tests fail quite early, as soon as the input block > size is larger than 64 bytes: > > alg: hash: Test 4 failed for sha1-sun4i-ss > : b9 c9 1e 52 c0 26 d8 39 81 ff f2 3c 99 b1 27 b2 > 0010: 30 d6

Re: [PATCH net-next 3/4] tls: kernel TLS support

2017-05-26 Thread Eric Dumazet
On Wed, 2017-05-24 at 09:27 -0700, Dave Watson wrote: > Software implementation of transport layer security, implemented using ULP > infrastructure. tcp proto_ops are replaced with tls equivalents of sendmsg > and > sendpage. ... > + > +int tls_sw_sendmsg(struct sock *sk, struct msghdr *msg,

Re: [PATCH 2/2] crypto: mediatek - update DT binding documentation

2017-05-26 Thread Matthias Brugger
On 26/05/17 11:43, Ryder Lee wrote: This patch removes unnecessary clock in binding file. Signed-off-by: Ryder Lee --- In the driver clocks are get by name, so this change does not break backwards compatibility. Reviewed-by: Matthias Brugger

Re: [RFC PATCH v2 4/4] crypto: testmgr - add genkey kpp test

2017-05-26 Thread Tudor Ambarus
On 17.05.2017 18:26, Tudor Ambarus wrote: The test considers a party that already has a private-public key pair and a party that provides a NULL key. The kernel will generate the private-public key pair for the latter, computes the shared secret on both ends and verifies it it's the same. The

Re: may_use_simd on aarch64, chacha20

2017-05-26 Thread Dave Martin
On Sun, May 21, 2017 at 10:55:20PM +0200, Ard Biesheuvel wrote: > (+ Dave) Apologies for the slow reply -- hopefully this is still useful. > > On 21 May 2017, at 19:02, Jason A. Donenfeld wrote: > > > > Hi folks, > > > > I noticed that the ARM implementation [1] of chacha20

Re: [PATCH 1/1] crypto:drbg- Fixes panic in wait_for_completion call.

2017-05-26 Thread Harsh Jain
On Fri, May 26, 2017 at 3:42 PM, Stephan Müller wrote: > Am Donnerstag, 25. Mai 2017, 17:23:47 CEST schrieb Harsh Jain: > > Hi Harsh, > >> Initialise ctr_completion variable before use. > > Thank you very much for catching this. > > But I think the chosen function is wrong.

Re: [PATCH 1/1] crypto:drbg- Fixes panic in wait_for_completion call.

2017-05-26 Thread Stephan Müller
Am Donnerstag, 25. Mai 2017, 17:23:47 CEST schrieb Harsh Jain: Hi Harsh, > Initialise ctr_completion variable before use. Thank you very much for catching this. But I think the chosen function is wrong. When we have an HMAC or Hash DRBG, this completion function does not need to be

[PATCH 1/2] crypto: mediatek - remove redundant clock setting

2017-05-26 Thread Ryder Lee
This patch removes redundant clock setting for 'clk_ethif', which is the parent for 'clk_cryp'. Hence, we just need to handle its child. Signed-off-by: Ryder Lee --- drivers/crypto/mediatek/mtk-platform.c | 10 +- drivers/crypto/mediatek/mtk-platform.h | 2 -- 2

[PATCH 2/2] crypto: mediatek - update DT binding documentation

2017-05-26 Thread Ryder Lee
This patch removes unnecessary clock in binding file. Signed-off-by: Ryder Lee --- Documentation/devicetree/bindings/crypto/mediatek-crypto.txt | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git

[PATCH] staging: ccree: fix cc_crypto_ctx.h white spaces

2017-05-26 Thread Gennadii Altukhov
Fix checkpatch.pl reported checks: spaces preferred around '/' and '<<' in cc_crypto_ctx.h Signed-off-by: Gennadii Altukhov --- drivers/staging/ccree/cc_crypto_ctx.h | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git