blob: c6961e932fef3437f3a25b2853c9a4fa61fdd179 [file] [log] [blame]
Andrew Scullb4b6d4a2019-01-02 15:54:55 +00001/* SPDX-License-Identifier: GPL-2.0 */
2#ifndef _FIPS_H
3#define _FIPS_H
4
5#ifdef CONFIG_CRYPTO_FIPS
6extern int fips_enabled;
David Brazdil0f672f62019-12-10 10:32:29 +00007extern struct atomic_notifier_head fips_fail_notif_chain;
8
9void fips_fail_notify(void);
10
Andrew Scullb4b6d4a2019-01-02 15:54:55 +000011#else
12#define fips_enabled 0
David Brazdil0f672f62019-12-10 10:32:29 +000013
14static inline void fips_fail_notify(void) {}
15
Andrew Scullb4b6d4a2019-01-02 15:54:55 +000016#endif
17
18#endif