Herbert Xu
b170a137f4
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 >
2009-02-18 21:20:06 +08:00
..
2009-01-06 11:38:17 -07:00
2009-02-18 21:20:06 +08:00
2008-01-11 08:16:56 +11:00
2008-12-25 11:05:13 +11:00
2008-12-25 11:02:06 +11:00
2009-01-28 14:09:59 +11:00
2008-08-29 15:49:58 +10:00
2009-02-18 16:48:07 +08:00
2008-04-21 10:19:34 +08:00
2009-02-18 16:56:59 +08:00
2006-09-21 11:41:02 +10:00
2009-01-15 15:33:49 +11:00
2009-02-18 21:20:06 +08:00
2008-04-21 10:19:34 +08:00
2008-12-25 11:01:15 +11:00
2008-04-21 10:19:34 +08:00
2008-04-21 10:19:34 +08:00
2008-02-07 08:42:26 -08:00
2009-01-27 17:11:15 +11:00
2008-08-29 15:50:06 +10:00
2007-10-10 16:55:40 -07:00
2007-11-02 08:47:06 +01:00
2008-12-25 11:01:40 +11:00
2009-02-18 16:48:05 +08:00
2008-12-25 11:02:07 +11:00
2008-01-11 08:16:48 +11:00
2008-06-02 15:46:51 +10:00
2008-04-21 10:19:34 +08:00
2008-12-25 11:02:28 +11:00
2008-08-13 20:08:38 +10:00
2008-02-07 08:42:26 -08:00
2008-08-29 15:50:06 +10:00
2008-12-25 11:02:03 +11:00
2008-08-29 15:50:02 +10:00
2008-01-11 08:16:56 +11:00
2007-10-10 16:55:45 -07:00
2008-07-10 20:35:18 +08:00
2008-12-25 11:01:33 +11:00
2009-02-18 16:56:59 +08:00
2009-02-18 16:48:06 +08:00
2008-04-21 10:19:34 +08:00
2008-08-29 15:50:04 +10:00
2009-02-17 20:00:11 +08:00
2008-04-21 10:19:34 +08:00
2008-12-25 11:01:26 +11:00
2008-12-25 11:02:16 +11:00
2008-12-25 11:02:18 +11:00
2008-12-25 11:02:24 +11:00
2008-02-07 08:42:26 -08:00
2008-12-25 11:01:32 +11:00
2008-07-10 20:35:12 +08:00
2008-12-25 11:02:09 +11:00
2008-12-25 11:02:10 +11:00
2008-12-25 11:02:12 +11:00
2008-12-25 11:02:13 +11:00
2008-08-29 15:50:04 +10:00
2008-12-25 11:02:30 +11:00
2009-02-09 14:30:25 +11:00
2007-10-10 16:55:38 -07:00
2008-08-29 15:50:06 +10:00
2008-04-21 10:19:34 +08:00
2008-12-25 11:02:15 +11:00
2008-12-25 11:02:19 +11:00
2008-12-25 11:02:27 +11:00
2009-02-18 16:56:59 +08:00
2008-08-29 15:49:55 +10:00
2008-08-29 15:49:55 +10:00
2008-04-21 10:19:34 +08:00
2008-12-25 11:02:04 +11:00
2008-12-25 11:02:32 +11:00
2008-12-25 11:02:21 +11:00
2008-01-11 08:16:06 +11:00
2008-04-21 10:19:34 +08:00
2008-12-25 11:02:22 +11:00
2008-04-02 14:36:09 +08:00
2007-07-13 08:06:14 -07:00
2008-03-06 18:56:19 +08:00