1 /* SPDX-License-Identifier: GPL-2.0-or-later * 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 2 /* Helper function for self-testing PKCS#7 sig 2 /* Helper function for self-testing PKCS#7 signature verification. 3 * 3 * 4 * Copyright (C) 2024 Joachim Vandersmissen <g 4 * Copyright (C) 2024 Joachim Vandersmissen <git@jvdsn.com> 5 */ 5 */ 6 6 7 void fips_signature_selftest(const char *name, 7 void fips_signature_selftest(const char *name, 8 const u8 *keys, s 8 const u8 *keys, size_t keys_len, 9 const u8 *data, s 9 const u8 *data, size_t data_len, 10 const u8 *sig, si 10 const u8 *sig, size_t sig_len); 11 11 12 #ifdef CONFIG_FIPS_SIGNATURE_SELFTEST_RSA 12 #ifdef CONFIG_FIPS_SIGNATURE_SELFTEST_RSA 13 void __init fips_signature_selftest_rsa(void); 13 void __init fips_signature_selftest_rsa(void); 14 #else 14 #else 15 static inline void __init fips_signature_selft 15 static inline void __init fips_signature_selftest_rsa(void) { } 16 #endif 16 #endif 17 17 18 #ifdef CONFIG_FIPS_SIGNATURE_SELFTEST_ECDSA 18 #ifdef CONFIG_FIPS_SIGNATURE_SELFTEST_ECDSA 19 void __init fips_signature_selftest_ecdsa(void 19 void __init fips_signature_selftest_ecdsa(void); 20 #else 20 #else 21 static inline void __init fips_signature_selft 21 static inline void __init fips_signature_selftest_ecdsa(void) { } 22 #endif 22 #endif 23 23
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.