fips_names.h 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. /*
  2. * Copyright 2019-2024 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. * All parameters are of type: OSSL_PARAM_UTF8_STRING
  18. */
  19. /* The following 4 Parameters are used for FIPS Self Testing */
  20. /* The calculated MAC of the module file */
  21. #define OSSL_PROV_FIPS_PARAM_MODULE_MAC "module-mac"
  22. /* The Version number for the fips install process */
  23. #define OSSL_PROV_FIPS_PARAM_INSTALL_VERSION "install-version"
  24. /* The calculated MAC of the install status indicator */
  25. #define OSSL_PROV_FIPS_PARAM_INSTALL_MAC "install-mac"
  26. /* The install status indicator */
  27. #define OSSL_PROV_FIPS_PARAM_INSTALL_STATUS "install-status"
  28. /*
  29. * A boolean that determines if the FIPS conditional test errors result in
  30. * the module entering an error state.
  31. * Type: OSSL_PARAM_UTF8_STRING
  32. */
  33. #define OSSL_PROV_FIPS_PARAM_CONDITIONAL_ERRORS "conditional-errors"
  34. /* The following are provided for backwards compatibility */
  35. #define OSSL_PROV_FIPS_PARAM_SECURITY_CHECKS OSSL_PROV_PARAM_SECURITY_CHECKS
  36. #define OSSL_PROV_FIPS_PARAM_TLS1_PRF_EMS_CHECK OSSL_PROV_PARAM_TLS1_PRF_EMS_CHECK
  37. #define OSSL_PROV_FIPS_PARAM_DRBG_TRUNC_DIGEST OSSL_PROV_PARAM_DRBG_TRUNC_DIGEST
  38. #ifdef __cplusplus
  39. }
  40. #endif
  41. #endif /* OPENSSL_FIPS_NAMES_H */