fips_status.h 842 B

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