summaryrefslogtreecommitdiff
path: root/crypto/async_tx
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2009-02-18 20:33:55 +0800
committerHerbert Xu <herbert@gondor.apana.org.au>2009-02-18 21:20:06 +0800
commitb28cd7c35768ed71f5d8f8745e8962d28141f71e (patch)
treede014028f59a8c8e1d1869da28537662d2f7e035 /crypto/async_tx
parenta08f92d7feeb80a38872ed80b935a95a1b6aa2eb (diff)
downloadlinux-crypto-b28cd7c35768ed71f5d8f8745e8962d28141f71e.tar.gz
linux-crypto-b28cd7c35768ed71f5d8f8745e8962d28141f71e.zip
crypto: skcipher - Avoid infinite loop when cipher fails selftest
When an skcipher constructed through crypto_givcipher_default fails its selftest, we'll loop forever trying to construct new skcipher objects but failing because it already exists. The crux of the issue is that once a givcipher fails the selftest, we'll ignore it on the next run through crypto_skcipher_lookup and attempt to construct a new givcipher. We should instead return an error to the caller if we find a givcipher that has failed the test. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/async_tx')
0 files changed, 0 insertions, 0 deletions