Define fips_/nonfips_ variants of public_key_subtype when the kernel is configured to use a standalone FIPS module. Signed-off-by: Vegard Nossum <vegard.nossum@xxxxxxxxxx> --- include/crypto/public_key.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/include/crypto/public_key.h b/include/crypto/public_key.h index c8f30adbd655..b995644b0c92 100644 --- a/include/crypto/public_key.h +++ b/include/crypto/public_key.h @@ -58,6 +58,14 @@ DECLARE_CRYPTO_API(public_key_signature_free, void, (struct public_key_signature *sig), (sig)); +#ifdef CONFIG_CRYPTO_FIPS140_EXTMOD +#ifdef FIPS_MODULE +#define public_key_subtype fips_public_key_subtype +#else +#define public_key_subtype nonfips_public_key_subtype +#endif +#endif + extern struct asymmetric_key_subtype public_key_subtype; struct key; -- 2.39.3