On Mon, Mar 14, 2011 at 09:37:41AM +0100, Steffen Klassert wrote: > On Sun, Mar 13, 2011 at 02:30:17PM +0800, Herbert Xu wrote: > > On Tue, Mar 08, 2011 at 11:04:58AM +0100, Steffen Klassert wrote: > > > > > > + return crypto_authenc_esn_genicv(req, iv, CRYPTO_TFM_REQ_MAY_SLEEP); > > > > BTW, we should get rid of these MAY_SLEEP flags. Originally I > > included them for the IPsec encryption path because that happens > > to be sleepable. We should instead be getting it from the request > > itself. > > > > Not sure if I get you right, but we do not set this flag here. > We use it to mask the flags we got from the request, so we pass > this flag to the ahash algorithm just if it was set by the > original aead request. Indeed you are right. As long as it is only a mask and only used on the sync path it should be OK. Thanks, -- Email: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt -- To unsubscribe from this list: send the line "unsubscribe linux-crypto" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html