Eric Biggers
877b5691f2
crypto: shash - remove shash_desc::flags
...
The flags field in 'struct shash_desc' never actually does anything.
The only ostensibly supported flag is CRYPTO_TFM_REQ_MAY_SLEEP.
However, no shash algorithm ever sleeps, making this flag a no-op.
With this being the case, inevitably some users who can't sleep wrongly
pass MAY_SLEEP. These would all need to be fixed if any shash algorithm
actually started sleeping. For example, the shash_ahash_*() functions,
which wrap a shash algorithm with the ahash API, pass through MAY_SLEEP
from the ahash API to the shash API. However, the shash functions are
called under kmap_atomic(), so actually they're assumed to never sleep.
Even if it turns out that some users do need preemption points while
hashing large buffers, we could easily provide a helper function
crypto_shash_update_large() which divides the data into smaller chunks
and calls crypto_shash_update() and cond_resched() for each chunk. It's
not necessary to have a flag in 'struct shash_desc', nor is it necessary
to make individual shash algorithms aware of this at all.
Therefore, remove shash_desc::flags, and document that the
crypto_shash_*() functions can be called from any context.
Signed-off-by: Eric Biggers <ebiggers@google.com >
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au >
2019-04-25 15:38:12 +08:00
..
2019-03-17 09:10:56 -07:00
2018-08-22 10:52:51 -07:00
2018-05-28 12:36:41 +02:00
2019-03-12 14:08:19 -07:00
2019-03-07 18:32:01 -08:00
2018-06-15 18:10:01 -03:00
2019-01-04 13:13:47 -08:00
2019-03-12 14:53:57 -07:00
2018-11-30 16:00:58 +00:00
2019-03-05 18:55:17 +01:00
2019-04-25 15:38:12 +08:00
2018-06-05 16:57:31 -07:00
2018-07-17 06:14:07 -07:00
2018-10-30 12:46:25 -07:00
2019-04-25 15:38:12 +08:00
2019-02-11 09:09:02 +01:00
2019-01-24 13:38:30 -05:00
2019-02-03 11:17:31 -08:00
2019-04-25 15:38:12 +08:00
2018-07-22 14:13:44 +02:00
2017-11-27 13:05:09 -08:00
2018-11-23 09:08:17 -05:00
2019-03-07 09:01:33 -08:00
2019-04-25 15:38:12 +08:00
2019-04-25 15:38:12 +08:00
2019-03-07 18:32:01 -08:00
2018-05-22 14:27:51 -04:00
2018-11-30 15:57:31 +00:00
2019-03-12 14:46:26 -07:00
2019-03-09 11:52:11 -08:00
2018-11-30 14:56:14 -08:00
2019-01-04 13:13:47 -08:00
2018-08-17 16:20:28 -07:00
2019-03-12 09:58:03 -07:00
2019-03-12 14:08:19 -07:00
2018-09-29 22:47:48 -04:00
2019-03-01 00:36:57 -05:00
2018-12-02 09:20:34 +01:00
2018-09-20 09:28:49 -05:00
2019-03-12 14:08:19 -07:00
2019-02-13 11:53:45 -05:00
2018-05-22 14:27:52 -04:00
2019-03-12 16:04:51 -04:00
2017-11-27 16:45:11 -05:00
2019-04-25 15:38:12 +08:00
2019-02-06 13:12:15 -05:00
2017-11-02 11:10:55 +01:00
2019-02-21 11:47:23 +01:00
2018-12-28 12:11:47 -08:00
2019-03-05 21:07:13 -08:00
2018-05-22 14:27:58 -04:00
2018-11-18 13:35:19 -08:00
2019-03-12 13:27:20 -07:00
2019-02-13 11:14:46 +01:00
2019-03-16 13:47:14 -07:00
2019-02-12 13:45:53 -08:00
2018-05-22 14:27:52 -04:00
2018-05-22 14:27:54 -04:00
2018-12-18 18:29:15 +01:00
2017-09-06 17:27:26 -07:00
2018-10-31 08:54:14 -07:00
2018-05-22 14:27:55 -04:00
2018-08-02 09:34:02 -07:00
2019-03-16 10:31:02 -07:00
2018-11-10 08:02:40 -05:00
2018-07-31 11:32:44 -04:00
2019-04-25 15:38:12 +08:00
2019-02-21 19:25:36 +01:00
2018-08-17 16:20:27 -07:00
2019-03-15 13:55:30 -07:00
2019-03-05 14:08:26 -08:00
2018-07-12 10:04:27 -04:00
2018-07-03 16:44:45 -04:00
2018-07-12 10:04:20 -04:00
2019-03-05 10:00:35 -08:00
2018-06-12 16:19:22 -07:00
2019-03-07 18:32:01 -08:00
2016-08-02 19:35:15 -04:00
2018-04-11 10:28:37 -07:00
2018-07-10 23:29:03 -04:00
2019-02-18 16:49:36 -08:00
2019-02-24 08:20:17 -07:00
2019-02-28 13:59:41 -07:00
2018-03-15 17:59:24 +01:00
2018-08-27 14:48:48 +02:00
2018-10-29 14:29:58 -07:00
2018-06-05 19:23:26 +02:00
2018-10-03 16:47:43 +02:00
2018-03-29 15:07:46 -04:00
2019-03-01 17:24:48 -08:00
2019-01-30 11:02:11 -08:00
2018-04-02 20:15:39 +02:00
2019-02-15 08:40:11 -07:00
2019-02-01 15:46:24 -08:00
2018-06-28 10:40:47 -07:00
2019-03-07 18:32:01 -08:00
2019-03-07 18:32:01 -08:00
2018-10-03 16:47:43 +02:00
2018-01-15 12:07:51 -08:00
2019-02-28 08:24:23 -07:00
2019-03-08 14:48:40 -08:00
2019-02-28 03:29:26 -05:00
2019-02-28 03:29:37 -05:00
2019-02-28 03:28:53 -05:00
2017-11-07 10:32:44 +01:00
2017-03-02 08:42:35 +01:00
2019-01-21 17:48:13 +01:00
2019-01-22 14:39:38 -07:00
2019-03-05 21:07:13 -08:00
2019-02-28 03:28:53 -05:00
2019-03-12 10:04:01 -07:00
2019-01-03 18:57:57 -08:00
2019-02-24 08:20:17 -07:00
2019-03-12 14:08:19 -07:00
2018-08-02 08:06:55 +09:00
2018-03-30 11:34:55 -07:00
2019-02-28 07:55:37 +01:00
2019-03-12 14:08:19 -07:00
2018-06-12 16:19:22 -07:00
2019-01-30 17:44:07 -05:00
2019-02-15 08:40:11 -07:00
2019-03-12 14:08:19 -07:00
2019-03-12 14:08:19 -07:00
2010-10-15 15:53:27 +02:00
2018-02-15 15:34:42 -05:00
2018-08-21 18:19:09 -07:00
2019-03-12 13:27:20 -07:00
2019-01-30 17:14:50 -05:00
2019-01-30 17:14:50 -05:00
2018-01-02 19:27:28 -08:00
2018-02-11 14:34:03 -08:00
2019-03-12 13:27:20 -07:00
2019-01-03 18:57:57 -08:00
2019-02-07 00:13:27 +01:00
2018-08-17 16:20:28 -07:00
2018-10-03 16:47:43 +02:00
2019-03-12 13:27:20 -07:00
2014-08-26 09:35:56 +02:00
2019-02-01 01:55:45 -05:00
2019-02-07 16:38:35 +01:00
2019-02-28 03:29:38 -05:00
2018-04-04 12:44:02 -07:00
2019-02-07 00:13:27 +01:00
2018-12-28 12:11:51 -08:00
2019-02-07 00:13:27 +01:00
2018-09-18 07:30:48 -04:00