Re: Linux 2.6.28 and AEAD initialization

2009-01-27 Thread Herbert Xu
On Wed, Jan 28, 2009 at 01:18:57AM +0100, Andreas Steffen wrote: > Hi Herbert, > > your patch fixes the initialization problem! Thanks for testing! I'll push this fix out. -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmV>HI~} Home Page: http://gondor.apana.org.au/~herbert/

Re: Linux 2.6.28 and AEAD initialization

2009-01-27 Thread Andreas Steffen
Hi Herbert, your patch fixes the initialization problem! Thanks Andreas Herbert Xu wrote: > On Wed, Jan 21, 2009 at 02:29:48AM +, Andreas Steffen wrote: >> Because of type=nivaead >> >> if (alg->cra_type == &crypto_aead_type) >> return alg; >> >> crypto_lookup_aead() does not re

Re: Linux 2.6.28 and AEAD initialization

2009-01-26 Thread Herbert Xu
On Wed, Jan 21, 2009 at 02:29:48AM +, Andreas Steffen wrote: > > Because of type=nivaead > > if (alg->cra_type == &crypto_aead_type) > return alg; > > crypto_lookup_aead() does not return the algorithm and falls through > to the statement > > return ERR_PTR(crypto_nivaead_de

Linux 2.6.28 and AEAD initialization

2009-01-20 Thread Andreas Steffen
Hi, with the Linux 2.6.28 kernel the first time xfrm_user.c:xfrm_add_sa() is called with either "rfc4106(gcm(aes))" or "rfc4309(ccm(aes))", an EEXIST error is returned and the installation of the IPsec SA fails. A detailed analysis of the function calls (see trace added below) shows that aead.c:cr