diff options
author | Ard Biesheuvel <ardb@kernel.org> | 2023-01-02 11:18:46 +0100 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2023-01-13 12:11:18 +0800 |
commit | d07bd950b91efb4d6a960347c603f8424a1125d1 (patch) | |
tree | 4c76a8ffe571b136e2519e5f64b1b6a3a24e42d9 /certs | |
parent | 0781bbd7eaca70611bc2314001f82e1903aeff48 (diff) | |
download | linux-d07bd950b91efb4d6a960347c603f8424a1125d1.tar.gz linux-d07bd950b91efb4d6a960347c603f8424a1125d1.tar.bz2 linux-d07bd950b91efb4d6a960347c603f8424a1125d1.zip |
crypto: skcipher - Use scatterwalk (un)map interface for dst and src buffers
The skcipher walk API implementation avoids scatterwalk_map() for
mapping the source and destination buffers, and invokes kmap_atomic()
directly if the buffer in question is not in low memory (which can only
happen on 32-bit architectures). This avoids some overhead on 64-bit
architectures, and most notably, permits the skcipher code to run with
preemption enabled.
Now that scatterwalk_map() has been updated to use kmap_local(), none of
this is needed, so we can simply use scatterwalk_map/unmap instead.
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'certs')
0 files changed, 0 insertions, 0 deletions