fips_names.h 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. /*
  2. * Copyright 2019-2023 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. * This is enabled by default.
  47. * Type: OSSL_PARAM_UTF8_STRING
  48. */
  49. # define OSSL_PROV_FIPS_PARAM_SECURITY_CHECKS "security-checks"
  50. /*
  51. * A boolean that determines if the runtime FIPS check for TLS1_PRF EMS is performed.
  52. * This is disabled by default.
  53. * Type: OSSL_PARAM_UTF8_STRING
  54. */
  55. # define OSSL_PROV_FIPS_PARAM_TLS1_PRF_EMS_CHECK "tls1-prf-ems-check"
  56. /*
  57. * A boolean that determines if truncated digests can be used with Hash and HMAC
  58. * DRBGs. FIPS 140-3 IG D.R disallows such use for efficiency rather than
  59. * security reasons.
  60. * This is disabled by default.
  61. * Type: OSSL_PARAM_UTF8_STRING
  62. */
  63. # define OSSL_PROV_FIPS_PARAM_DRBG_TRUNC_DIGEST "drbg-no-trunc-md"
  64. # ifdef __cplusplus
  65. }
  66. # endif
  67. #endif /* OPENSSL_FIPS_NAMES_H */