2022-03-05 21:17:59 +05:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0 */
|
2021-10-27 18:46:41 +05:00
|
|
|
#ifndef _FIPS_H
|
|
|
|
#define _FIPS_H
|
|
|
|
|
|
|
|
#ifdef CONFIG_CRYPTO_FIPS
|
|
|
|
extern int fips_enabled;
|
2022-03-05 21:17:59 +05:00
|
|
|
extern struct atomic_notifier_head fips_fail_notif_chain;
|
|
|
|
|
|
|
|
void fips_fail_notify(void);
|
|
|
|
|
2021-10-27 18:46:41 +05:00
|
|
|
#else
|
|
|
|
#define fips_enabled 0
|
2022-03-05 21:17:59 +05:00
|
|
|
|
|
|
|
static inline void fips_fail_notify(void) {}
|
|
|
|
|
2021-10-27 18:46:41 +05:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|