diff options
| author | 2023-04-13 14:24:17 +0800 | |
|---|---|---|
| committer | 2023-04-20 18:20:04 +0800 | |
| commit | 3c3a24cb0ae46c9c45e4ce2272f84f0504831f59 (patch) | |
| tree | eea759615e4d97e662e0fa76f60b7eb786891e8b /include/uapi/linux/android/ssh:/git@git.zx2c4.com | |
| parent | crypto: api - Add crypto_tfm_get (diff) | |
crypto: api - Add crypto_clone_tfm
This patch adds the helper crypto_clone_tfm. The purpose is to
allocate a tfm object with GFP_ATOMIC. As we cannot sleep, the
object has to be cloned from an existing tfm object.
This allows code paths that cannot otherwise allocate a crypto_tfm
object to do so. Once a new tfm has been obtained its key could
then be changed without impacting other users.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'include/uapi/linux/android/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
