1 #ifndef _UAPI_FIPS_STATUS__H
2 #define _UAPI_FIPS_STATUS__H
3 
4 #include <linux/types.h>
5 #include <linux/ioctl.h>
6 
7 /**
8 * fips_status: global FIPS140-2 status
9 * @FIPS140_STATUS_NA:
10 *					Not a FIPS140-2 compliant Build.
11 *					The flag status won't
12 *					change throughout
13 *					the lifetime
14 * @FIPS140_STATUS_PASS_CRYPTO:
15 *					KAT self tests are passed.
16 * @FIPS140_STATUS_QCRYPTO_ALLOWED:
17 *					Integrity test is passed.
18 * @FIPS140_STATUS_PASS:
19 *					All tests are passed and build
20 *					is in FIPS140-2 mode
21 * @FIPS140_STATUS_FAIL:
22 *					One of the test is failed.
23 *					This will block all requests
24 *					to crypto modules
25 */
26 enum fips_status {
27 		FIPS140_STATUS_NA				= 0,
28 		FIPS140_STATUS_PASS_CRYPTO		= 1,
29 		FIPS140_STATUS_QCRYPTO_ALLOWED	= 2,
30 		FIPS140_STATUS_PASS				= 3,
31 		FIPS140_STATUS_FAIL				= 0xFF
32 };
33 #endif /* _UAPI_FIPS_STATUS__H */
34