[PATCH] crypto: xcbc - Fix alignment calculation of xcbc_tfm_ctx

2009-08-19 Thread Steffen Klassert
The alignment calculation of xcbc_tfm_ctx uses alg-cra_alignmask and not alg-cra_alignmask + 1 as it should. This led to frequent crashes during the selftest of xcbc(aes-asm) on x86_64 machines. This patch fixes this. Also we use the alignmask of xcbc and not the alignmask of the underlying

Re: [RFC] [PATCH 2/5] aead: Add generic aead wrapper interface

2009-08-19 Thread Steffen Klassert
On Mon, Jun 29, 2009 at 03:52:57PM +0200, Steffen Klassert wrote: On Mon, Jun 29, 2009 at 07:59:50PM +0800, Herbert Xu wrote: OK. Can you send me the patches you used against the current cryptodev tree (I only just pushed so give it an hour or so)? I'll see if I can reproduce it here.

Talitos input data format

2009-08-19 Thread CEVAN Ondrej
Hello everybody, according to the function call in drivers/crypto/talitos.c (Linux version 2.6.29) in function ipsec_esp(): /*hmac data*/ map_single_talitos_ptr(dev, desc-ptr[1], sg_virt(areq-src) - sg_virt(areq-assoc), sg_virt(areq-assoc), 0, DMA_TO_DEVICE); if initialization vector (IV)

Re: Talitos input data format

2009-08-19 Thread Kim Phillips
On Wed, 19 Aug 2009 13:19:54 +0200 CEVAN Ondrej ondrej.ce...@frequentis.com wrote: Hello everybody, according to the function call in drivers/crypto/talitos.c (Linux version 2.6.29) in function ipsec_esp(): /*hmac data*/ map_single_talitos_ptr(dev, desc-ptr[1], sg_virt(areq-src) -