1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 2 /* Helper function for self-testing PKCS#7 signature verification. 3 * 4 * Copyright (C) 2024 Joachim Vandersmissen <git@jvdsn.com> 5 */ 6 7 void fips_signature_selftest(const char *name, 8 const u8 *keys, size_t keys_len, 9 const u8 *data, size_t data_len, 10 const u8 *sig, size_t sig_len); 11 12 #ifdef CONFIG_FIPS_SIGNATURE_SELFTEST_RSA 13 void __init fips_signature_selftest_rsa(void); 14 #else 15 static inline void __init fips_signature_selftest_rsa(void) { } 16 #endif 17 18 #ifdef CONFIG_FIPS_SIGNATURE_SELFTEST_ECDSA 19 void __init fips_signature_selftest_ecdsa(void); 20 #else 21 static inline void __init fips_signature_selftest_ecdsa(void) { } 22 #endif 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.