blob: 7daf27ba3e936a1c36d6a6563ec728f0b9918c1f [file] [log] [blame]
Zhen Kong0e63d132017-03-07 19:01:55 -08001#ifndef _UAPI_FIPS_STATUS__H
2#define _UAPI_FIPS_STATUS__H
3
4#include <linux/types.h>
5#include <linux/ioctl.h>
6
7/**
AnilKumar Chimatae78789a2017-04-07 12:18:46 -07008* 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*/
Zhen Kong0e63d132017-03-07 19:01:55 -080026enum 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 */