tcrypt failing on hmac(crc32)

2016-05-25 Thread Marcus Meissner
Hi, when enabling the testmgr framework and FIPS in 4.6 and 4.4 and running "modprobe tcrypt" [ 1153.298266] alg: hash: Failed to load transform for hmac(crc32): -2 [ 1153.340636] tcrypt: one or more tests failed! I spent some hours making sense of what is missing, but I got lost in the maze of

Re: tcrypt failing on hmac(crc32)

2016-05-25 Thread Stephan Mueller
Am Mittwoch, 25. Mai 2016, 09:07:52 schrieb Marcus Meissner: Hi Marcus, > Hi, > > when enabling the testmgr framework and FIPS in 4.6 and 4.4 and running > "modprobe tcrypt" }, { .alg = "hmac(crc32)", .test = alg_test_hash, ... fips_allowed = 1 missing?

Re: [RFC 1/3] block: Introduce blk_bio_map_sg() to map one bio

2016-05-25 Thread Ming Lei
On Wed, May 25, 2016 at 2:12 PM, Baolin Wang wrote: > In dm-crypt, it need to map one bio to scatterlist for improving the > hardware engine encryption efficiency. Thus this patch introduces the > blk_bio_map_sg() function to map one bio with scatterlists. > > Signed-off-by: Baolin Wang > --- >

Re: [RFC 1/3] block: Introduce blk_bio_map_sg() to map one bio

2016-05-25 Thread Baolin Wang
On 25 May 2016 at 16:52, Ming Lei wrote: >> /* >> + * map a bio to scatterlist, return number of sg entries setup. >> + */ >> +int blk_bio_map_sg(struct request_queue *q, struct bio *bio, >> + struct scatterlist *sglist, >> + struct scatterlist **sg) >> +{ >> +

Re: [PATCH] hwrng: stm32 - fix build warning

2016-05-25 Thread Arnd Bergmann
On Wednesday, May 25, 2016 7:35:17 AM CEST Sudip Mukherjee wrote: > On Tuesday 24 May 2016 02:05 AM, Arnd Bergmann wrote: > > On Monday, May 23, 2016 6:14:08 PM CEST Sudip Mukherjee wrote: > >> We have been getting build warning about: > >> drivers/char/hw_random/stm32-rng.c: In function 'stm32_rng

Re: key retention service: DH support

2016-05-25 Thread Herbert Xu
On Tue, May 24, 2016 at 06:45:09PM +0200, Stephan Mueller wrote: > Am Dienstag, 24. Mai 2016, 09:22:22 schrieb Mat Martineau: > > Hi Mat, Herbert > > > > KDF transformations would be extremely useful, but transforming the DH > > output using a KDF needs to be configurable. There are enough differ

Re: key retention service: DH support

2016-05-25 Thread David Howells
Mat Martineau wrote: > Since the KDF patches are not yet merged, I'm not sure of the best way to > accomodate the future feature. We could future-proof KEYCTL_DH_COMPUTE by > adding a 5th arg, an optional pointer to KDF configuration (NAME and > LABEL). If we want to do this, it needs to be done

Re: tcrypt failing on hmac(crc32)

2016-05-25 Thread Marcus Meissner
Hi, On Wed, May 25, 2016 at 09:10:31AM +0200, Stephan Mueller wrote: > Am Mittwoch, 25. Mai 2016, 09:07:52 schrieb Marcus Meissner: > > Hi Marcus, > > > Hi, > > > > when enabling the testmgr framework and FIPS in 4.6 and 4.4 and running > > "modprobe tcrypt" > > }, { >

Re: tcrypt failing on hmac(crc32)

2016-05-25 Thread Stephan Mueller
Am Mittwoch, 25. Mai 2016, 13:36:10 schrieb Marcus Meissner: Hi Marcus, > Hi, > > On Wed, May 25, 2016 at 09:10:31AM +0200, Stephan Mueller wrote: > > Am Mittwoch, 25. Mai 2016, 09:07:52 schrieb Marcus Meissner: > > > > Hi Marcus, > > > > > Hi, > > > > > > when enabling the testmgr framework

Re: tcrypt failing on hmac(crc32)

2016-05-25 Thread Marcus Meissner
On Wed, May 25, 2016 at 01:39:46PM +0200, Stephan Mueller wrote: > Am Mittwoch, 25. Mai 2016, 13:36:10 schrieb Marcus Meissner: > > Hi Marcus, > > > Hi, > > > > On Wed, May 25, 2016 at 09:10:31AM +0200, Stephan Mueller wrote: > > > Am Mittwoch, 25. Mai 2016, 09:07:52 schrieb Marcus Meissner: > >

Re: booting sun sparc T5120 with "nosmp" kernel causes OOPS in n2_crypto module

2016-05-25 Thread Anatoly Pugachev
tried to boot git kernel ( 4.6.0+ , git commit ecc5fbd5ef472a4c659dc56a5739b3f041c0530c ) with "nosmp" , got n2_crypto OOPS as well ext4 OOPS (unable to finish boot , mount / fs) , boot log : SPARC Enterprise T5120, No Keyboard Copyright (c) 1998, 2016, Oracle and/or its affiliates. All rights

Re: [PATCH v6 6/6] crypto: AF_ALG - add support for key_id

2016-05-25 Thread Mat Martineau
On Sat, 14 May 2016, Tadeusz Struk wrote: diff --git a/crypto/algif_akcipher.c b/crypto/algif_akcipher.c index e00793d..6733df1 100644 --- a/crypto/algif_akcipher.c +++ b/crypto/algif_akcipher.c +static int asym_key_verify(const struct key *key, struct akcipher_request *req) +{ + struct p