2017-11-01 15:07:57 +01:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0 */
|
2009-06-18 19:50:21 +08:00
|
|
|
#ifndef _FIPS_H
|
|
|
|
|
#define _FIPS_H
|
|
|
|
|
|
|
|
|
|
#ifdef CONFIG_CRYPTO_FIPS
|
|
|
|
|
extern int fips_enabled;
|
2019-07-02 14:39:20 +03:00
|
|
|
extern struct atomic_notifier_head fips_fail_notif_chain;
|
|
|
|
|
|
|
|
|
|
void fips_fail_notify(void);
|
|
|
|
|
|
2009-06-18 19:50:21 +08:00
|
|
|
#else
|
|
|
|
|
#define fips_enabled 0
|
2019-07-02 14:39:20 +03:00
|
|
|
|
|
|
|
|
static inline void fips_fail_notify(void) {}
|
|
|
|
|
|
2009-06-18 19:50:21 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#endif
|