summaryrefslogtreecommitdiff
path: root/crypto/dh.c
diff options
context:
space:
mode:
authorArd Biesheuvel <ardb@kernel.org>2023-01-02 11:18:46 +0100
committerHerbert Xu <herbert@gondor.apana.org.au>2023-01-13 12:11:18 +0800
commitd07bd950b91efb4d6a960347c603f8424a1125d1 (patch)
tree4c76a8ffe571b136e2519e5f64b1b6a3a24e42d9 /crypto/dh.c
parent0781bbd7eaca70611bc2314001f82e1903aeff48 (diff)
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 'crypto/dh.c')
0 files changed, 0 insertions, 0 deletions