[PATCH] crypto: qat - enable legacy VFs

2015-08-24 Thread Tadeusz Struk
We need to support legacy VFs as well as VFs running on different OSes. To do so the compatibility check need needs to be relaxed. This patch moves the logic responsible for VF to PF version and compatibility checking from adfsriov.c to adf_pf2vf_msg.c, where it belongs, and changes the logic enabl

Re: [PATCH 1/2] crypto: KEYS: convert public key to the akcipher API

2015-08-24 Thread Tadeusz Struk
Hi Stephan, On 08/15/2015 11:08 AM, Stephan Mueller wrote: > Am Mittwoch, 12. August 2015, 20:54:39 schrieb Tadeusz Struk: > > Hi Tadeusz, > >> @@ -41,7 +41,7 @@ struct pkcs7_parse_context { >> static void pkcs7_free_signed_info(struct pkcs7_signed_info *sinfo) >> { >> if (sinfo) { >> -

[PATCH] MPI: Fix mpi_read_buffer

2015-08-24 Thread Tadeusz Struk
Change mpi_read_buffer to return a number without leading zeros so that mpi_read_buffer and mpi_get_buffer return the same thing. Signed-off-by: Tadeusz Struk --- lib/mpi/mpicoder.c | 38 +- 1 file changed, 25 insertions(+), 13 deletions(-) diff --git a/lib

Re: [patch] crypto: qat - silence a static checker warning

2015-08-24 Thread Herbert Xu
On Sat, Aug 22, 2015 at 08:29:30AM -0700, Tadeusz Struk wrote: > > Add range check for ring number. > > Reported-by: Dan Carpenter > Signed-off-by: Tadeusz Struk Applied. -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.t

Re: [PATCH] crypto: caam - fix writing to JQCR_MS when using service interface

2015-08-24 Thread Herbert Xu
On Fri, Aug 21, 2015 at 06:53:20PM +0300, Horia Geantă wrote: > Most significant part of JQCR (Job Queue Control Register) contains > bits that control endianness: ILE - Immediate Little Endian, > DWS - Double Word Swap. > The bits are automatically set by the Job Queue Controller HW. > > Unfortun

Re: [PATCH v3 1/3] crypto: caam: ctrl: Fix the error handling

2015-08-24 Thread Herbert Xu
On Fri, Aug 21, 2015 at 01:51:58PM -0300, Fabio Estevam wrote: > From: Fabio Estevam > > In the error path we should disable the resources that were previously > acquired, so fix the error handling accordingly. > > Signed-off-by: Fabio Estevam All applied. -- Email: Herbert Xu Home Page: htt

Re: [PATCH] Fixing opcode issue on vmx-crypto

2015-08-24 Thread Herbert Xu
On Fri, Aug 21, 2015 at 05:27:43PM -0300, Leonidas S Barbosa wrote: > > In build time vadduqm opcode is not being mapped > correctly. > > Adding a new map in ppc-xlate to do this. > > Signed-off-by: Leonidas S Barbosa Applied. -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herb

Re: [PATCH] doc: crypto: warning cleanup

2015-08-24 Thread Stephan Mueller
Am Montag, 24. August 2015, 02:03:42 schrieb Jonathan Corbet: Hi Jonathan, > >> >+ * @base: Common crypto API algorithm data structure >> >> I am wondering: does this really fix the issue? I tried it and it failed >> (i.e. still produced errors by the parser) due to the exotic definition in >> o

Re: aead_alg request size (request context size)

2015-08-24 Thread Stephan Mueller
Am Montag, 24. August 2015, 15:52:49 schrieb Vasile Catalin-B50542: Hi Vasile, >How can I make aead transformations on the new API allocate some context >space inside >the aead_request? >Description/comments of aead_alg->init() and crypto_alg->cra_init() >suggest that they are >triggered after th

aead_alg request size (request context size)

2015-08-24 Thread Vasile Catalin-B50542
How can I make aead transformations on the new API allocate some context space inside the aead_request? Description/comments of aead_alg->init() and crypto_alg->cra_init() suggest that they are triggered after the tfm object has already been allocated, so setting crypto_aead->reqsize has no ef

[GIT PULL] Move cert handling to certs/ directory

2015-08-24 Thread David Howells
Hi James, Sorry for the late request, but can you pull this please? It's a set of commits that puts a bit of polish on the previous module signing patches. It moves the certificate handling to its own directory rather than sharing in the kernel/ directory. It then moves key generation into the c

Re: [PATCH] doc: crypto: warning cleanup

2015-08-24 Thread Jonathan Corbet
On Mon, 24 Aug 2015 06:51:35 +0200 Stephan Mueller wrote: > This one is already in the cryptodev-2.6 kernel. > > From now on, I will always CC the linux-doc mailing list on patches > pertaining > the crypto documentation so that you can see the patches too. Ah, OK, I should have peeked at lin