]> bbs.cooldavid.org Git - net-next-2.6.git/commit - crypto/ablkcipher.c
crypto: skcipher - Fix request for sync algorithms
authorHerbert Xu <herbert@gondor.apana.org.au>
Thu, 25 Jun 2009 06:46:31 +0000 (14:46 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 25 Jun 2009 06:46:31 +0000 (14:46 +0800)
commit435578aeaad5859dda8657e3ed2c1a5bc1e524ec
tree546a3a613f4656b66d217e49a238961f7e3b2c28
parent409a736336b560798f84d71ad6477c8fad20b523
crypto: skcipher - Fix request for sync algorithms

When a sync givcipher algorithm is requested, if an async version
of the same algorithm already exists, then we will loop forever
without ever constructing the sync version based on a blkcipher.

This is because we did not include the requested type/mask when
getting a larval for the geniv algorithm that is to be constructed.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/ablkcipher.c