]> www.infradead.org Git - users/jedix/linux-maple.git/commit
crypto: api - Add support for duplicating algorithms before registration
authorHerbert Xu <herbert@gondor.apana.org.au>
Sat, 12 Apr 2025 05:16:43 +0000 (13:16 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Wed, 16 Apr 2025 07:36:24 +0000 (15:36 +0800)
commitf1440a90465bea1993f937ac7add592ce1e4ff44
treea1000e8fd4220a04b318b7fabc191a2b7fb22818
parent66fecd9d94034b6193636fe3bc01f089439f5413
crypto: api - Add support for duplicating algorithms before registration

If the bit CRYPTO_ALG_DUP_FIRST is set, an algorithm will be
duplicated by kmemdup before registration.  This is inteded for
hardware-based algorithms that may be unplugged at will.

Do not use this if the algorithm data structure is embedded in a
bigger data structure.  Perform the duplication in the driver
instead.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
15 files changed:
crypto/acompress.c
crypto/aead.c
crypto/ahash.c
crypto/akcipher.c
crypto/algapi.c
crypto/api.c
crypto/internal.h
crypto/kpp.c
crypto/lskcipher.c
crypto/rng.c
crypto/scompress.c
crypto/shash.c
crypto/sig.c
crypto/skcipher.c
include/linux/crypto.h