Re: make sure swap arguments are the same type? (was: Re: [PATCH] crypto: rmd320 - use swap macro in rmd320_transform)

2018-07-20 Thread Joe Perches
On Fri, 2018-07-20 at 10:43 -0500, Gustavo A. R. Silva wrote: > Hi Joe, > > I like the idea. I'll take a look at the cases you mention and see > if I can make them work with your version of swap. > > BTW, I wonder if it would be more convenient to trigger a build warning > instead of an error. >

Re: [PATCH] random: add a config option to trust the CPU's hwrng

2018-07-20 Thread Laura Abbott
On 07/17/2018 06:43 PM, Theodore Ts'o wrote: This gives the user building their own kernel (or a Linux distribution) the option of deciding whether or not to trust the CPU's hardware random number generator (e.g., RDRAND for x86 CPU's) as being correctly implemented and not having a back door int

[PATCH] crypto: CTR DRBG - in-place cipher operation

2018-07-20 Thread Stephan Müller
The cipher implementations of the kernel crypto API favor in-place cipher operations. Thus, switch the CTR cipher operation in the DRBG to perform in-place operations. This is implemented by using the output buffer as input buffer and zeroizing it before the cipher operation to implement a CTR encr

Re: [PATCH 1/3] dt-bindings: Add bindings for Hisilicon SEC crypto accelerators.

2018-07-20 Thread Jonathan Cameron
On Fri, 20 Jul 2018 10:30:10 -0600 Rob Herring wrote: > On Mon, Jul 16, 2018 at 11:43:40AM +0100, Jonathan Cameron wrote: > > The hip06 and hip07 SoCs contain a number of these crypto units which > > accelerate AES and DES operations. > > > > Signed-off-by: Jonathan Cameron > > --- > > .../bin

Re: [PATCH 1/3] dt-bindings: Add bindings for Hisilicon SEC crypto accelerators.

2018-07-20 Thread Rob Herring
On Mon, Jul 16, 2018 at 11:43:40AM +0100, Jonathan Cameron wrote: > The hip06 and hip07 SoCs contain a number of these crypto units which > accelerate AES and DES operations. > > Signed-off-by: Jonathan Cameron > --- > .../bindings/crypto/hisilicon,hip07-sec.txt| 69 > ++

Re: make sure swap arguments are the same type? (was: Re: [PATCH] crypto: rmd320 - use swap macro in rmd320_transform)

2018-07-20 Thread Gustavo A. R. Silva
Hi Joe, I like the idea. I'll take a look at the cases you mention and see if I can make them work with your version of swap. BTW, I wonder if it would be more convenient to trigger a build warning instead of an error. What do you think? Thanks -- Gustavo On 07/18/2018 01:31 PM, Joe Perches wr

Re: [PATCH 0/4][RFC v2] Introduce the in-kernel hibernation encryption

2018-07-20 Thread Pavel Machek
Hi! > > > > > As security becomes more and more important, we add the in-kernel > > > > > encryption support for hibernation. > > > > > > > > Sorry, this does not really explain what security benefit it is > > > > supposed have to against what attack scenarios. > > > > > > > > Which unfortunatel