bcachefs: Encryption (Posting for review)

2016-09-01 Thread Kent Overstreet
Encryption in bcachefs is done and working and I just finished documenting the design - so now, it needs more eyeballs and vetting before letting users play with it. I'd appreciate help circulating this around to people who'd be qualified to review it, too. Also, bcachefs development is still mov

Re: CONFIG_FIPS without module loading support?

2016-09-01 Thread NTU
Ok, can we merge that in? Alec Ari -- 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 at http://vger.kernel.org/majordomo-info.html

Re: [PATCH 1/2] crypto: arm/ghash-ce - add missing async import/export

2016-09-01 Thread Ard Biesheuvel
On 1 September 2016 at 14:19, Ard Biesheuvel wrote: > On 31 August 2016 at 15:41, Herbert Xu wrote: >> On Mon, Aug 29, 2016 at 12:19:53PM +0100, Ard Biesheuvel wrote: >>> Since commit 8996eafdcbad ("crypto: ahash - ensure statesize is non-zero"), >>> all ahash drivers are required to implement im

[PATCH v2 3/3] crypto: cryptd - initialize child shash_desc on import

2016-09-01 Thread Ard Biesheuvel
When calling .import() on a cryptd ahash_request, the structure members that describe the child transform in the shash_desc need to be initialized like they are when calling .init() Signed-off-by: Ard Biesheuvel --- crypto/cryptd.c | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-)

[PATCH v2 2/3] crypto: arm/ghash-ce - add missing async import/export

2016-09-01 Thread Ard Biesheuvel
Since commit 8996eafdcbad ("crypto: ahash - ensure statesize is non-zero"), all ahash drivers are required to implement import()/export(), and must have a non-zero statesize. Fix this for the ARM Crypto Extensions GHASH implementation. Fixes: 8996eafdcbad ("crypto: ahash - ensure statesize is non-

[PATCH v2 1/3] crypto: arm/sha1-neon - add support for building in Thumb2 mode

2016-09-01 Thread Ard Biesheuvel
The ARMv7 NEON module is explicitly built in ARM mode, which is not supported by the Thumb2 kernel. So remove the explicit override, and leave it up to the build environment to decide whether the core SHA1 routines are assembled as ARM or as Thumb2 code. Signed-off-by: Ard Biesheuvel --- arch/ar

[PATCH v2 0/3] crypto: arm and cryptd fixes

2016-09-01 Thread Ard Biesheuvel
Patch #1 fixes a trivial code generation issue on ARM. Patch #2 and #3 fix the broken GHASH on ARM using the v8 Crypto Extensions pmull.64 instructions. The problem seems to be that it is allowed to call .import() without .init() (at least, that is what the test cases do), but this means that the

Re: [PATCH 1/2] crypto: arm/ghash-ce - add missing async import/export

2016-09-01 Thread Ard Biesheuvel
On 31 August 2016 at 15:41, Herbert Xu wrote: > On Mon, Aug 29, 2016 at 12:19:53PM +0100, Ard Biesheuvel wrote: >> Since commit 8996eafdcbad ("crypto: ahash - ensure statesize is non-zero"), >> all ahash drivers are required to implement import()/export(), and must have >> a non-zero statesize. Fi

Re: [RFC PATCH] crypto: caam - convert from ablkcipher -> skcipher

2016-09-01 Thread Herbert Xu
On Mon, Aug 29, 2016 at 05:11:24PM +0300, Horia Geantă wrote: > (a)blkcipher is being deprecated in favcur of skcipher. > The main difference is that IV generation is moved out > of crypto algorithms. > > Signed-off-by: Horia Geantă Thanks! Please hold on though because I'm not quite done with t

Re: AF_ALG zero-size hash fails

2016-09-01 Thread Herbert Xu
On Tue, Aug 09, 2016 at 05:45:25PM +0800, Herbert Xu wrote: > > > tested with the Freescale CAAM driver with SHA1 and MD5 hashes, and > > the ARM SHA1 shash implementation. Should there at least be a single > > write to the socket (of zero size) in this case, or should the kernel > > return the co

Re: [PATCHv3 03/11] crypto: omap-sham: implement context export/import APIs

2016-09-01 Thread Tero Kristo
On 01/09/16 10:31, Herbert Xu wrote: On Thu, Sep 01, 2016 at 10:28:47AM +0300, Tero Kristo wrote: Yeah, the flush should do the trick now. Kind of a chicken-egg problem here. :P How do you see the situation with the above explanation? The export function is not allowed to sleep so you must no

Re: [PATCHv3 03/11] crypto: omap-sham: implement context export/import APIs

2016-09-01 Thread Herbert Xu
On Thu, Sep 01, 2016 at 10:28:47AM +0300, Tero Kristo wrote: > > Yeah, the flush should do the trick now. Kind of a chicken-egg > problem here. :P How do you see the situation with the above > explanation? The export function is not allowed to sleep so you must not wait for the hardware to complet

Re: [PATCHv3 03/11] crypto: omap-sham: implement context export/import APIs

2016-09-01 Thread Tero Kristo
On 01/09/16 10:19, Herbert Xu wrote: On Thu, Sep 01, 2016 at 09:56:06AM +0300, Tero Kristo wrote: Hmm, looking at the driver, sham_update returns 0 immediately if it just caches data. In a sense, the update is not completed at this point. Are you saying this is illegal and can't be done? Once

Re: [PATCHv3 03/11] crypto: omap-sham: implement context export/import APIs

2016-09-01 Thread Herbert Xu
On Thu, Sep 01, 2016 at 09:56:06AM +0300, Tero Kristo wrote: > > Hmm, looking at the driver, sham_update returns 0 immediately if it > just caches data. In a sense, the update is not completed at this > point. Are you saying this is illegal and can't be done? Once you call the completion function

Re: hwrng: pasemi_rng.c: Migrate to managed API

2016-09-01 Thread PrasannaKumar Muralidharan
> I didn't explain well, There is a CFE command 'show devtree' here's the > relevant bits (I Hope) This is much simple than I expected. > [CFE ]CFE> show devtree > [/] > | #interrupt-cells val 0x0002 > | #address-cells val 0x0002 > | #size-cells