fips_names.h 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. /*
  2. * Copyright 2019-2021 The OpenSSL Project Authors. All Rights Reserved.
  3. *
  4. * Licensed under the Apache License 2.0 (the "License"). You may not use
  5. * this file except in compliance with the License. You can obtain a copy
  6. * in the file LICENSE in the source distribution or at
  7. * https://www.openssl.org/source/license.html
  8. */
  9. #ifndef OPENSSL_FIPS_NAMES_H
  10. # define OPENSSL_FIPS_NAMES_H
  11. # pragma once
  12. # ifdef __cplusplus
  13. extern "C" {
  14. # endif
  15. /*
  16. * Parameter names that the FIPS Provider defines
  17. */
  18. /*
  19. * The calculated MAC of the module file (Used for FIPS Self Testing)
  20. * Type: OSSL_PARAM_UTF8_STRING
  21. */
  22. # define OSSL_PROV_FIPS_PARAM_MODULE_MAC "module-mac"
  23. /*
  24. * A version number for the fips install process (Used for FIPS Self Testing)
  25. * Type: OSSL_PARAM_UTF8_STRING
  26. */
  27. # define OSSL_PROV_FIPS_PARAM_INSTALL_VERSION "install-version"
  28. /*
  29. * The calculated MAC of the install status indicator (Used for FIPS Self Testing)
  30. * Type: OSSL_PARAM_UTF8_STRING
  31. */
  32. # define OSSL_PROV_FIPS_PARAM_INSTALL_MAC "install-mac"
  33. /*
  34. * The install status indicator (Used for FIPS Self Testing)
  35. * Type: OSSL_PARAM_UTF8_STRING
  36. */
  37. # define OSSL_PROV_FIPS_PARAM_INSTALL_STATUS "install-status"
  38. /*
  39. * A boolean that determines if the FIPS conditional test errors result in
  40. * the module entering an error state.
  41. * Type: OSSL_PARAM_UTF8_STRING
  42. */
  43. # define OSSL_PROV_FIPS_PARAM_CONDITIONAL_ERRORS "conditional-errors"
  44. /*
  45. * A boolean that determines if the runtime FIPS security checks are performed.
  46. * Type: OSSL_PARAM_UTF8_STRING
  47. */
  48. # define OSSL_PROV_FIPS_PARAM_SECURITY_CHECKS "security-checks"
  49. # ifdef __cplusplus
  50. }
  51. # endif
  52. #endif /* OPENSSL_FIPS_NAMES_H */