xref: /linux/include/linux/fips.h (revision 976e3645923bdd2fe7893aae33fd7a21098bfb28)
1b2441318SGreg Kroah-Hartman /* SPDX-License-Identifier: GPL-2.0 */
25b739ef8SNeil Horman #ifndef _FIPS_H
35b739ef8SNeil Horman #define _FIPS_H
45b739ef8SNeil Horman 
55b739ef8SNeil Horman #ifdef CONFIG_CRYPTO_FIPS
65b739ef8SNeil Horman extern int fips_enabled;
7*9552389cSGilad Ben-Yossef extern struct atomic_notifier_head fips_fail_notif_chain;
8*9552389cSGilad Ben-Yossef 
9*9552389cSGilad Ben-Yossef void fips_fail_notify(void);
10*9552389cSGilad Ben-Yossef 
115b739ef8SNeil Horman #else
125b739ef8SNeil Horman #define fips_enabled 0
13*9552389cSGilad Ben-Yossef 
fips_fail_notify(void)14*9552389cSGilad Ben-Yossef static inline void fips_fail_notify(void) {}
15*9552389cSGilad Ben-Yossef 
165b739ef8SNeil Horman #endif
175b739ef8SNeil Horman 
185b739ef8SNeil Horman #endif
19