xref: /freebsd/crypto/openssl/include/openssl/fips_names.h (revision e7be843b4a162e68651d3911f0357ed464915629)
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 
10 #ifndef OPENSSL_FIPS_NAMES_H
11 # define OPENSSL_FIPS_NAMES_H
12 # pragma once
13 
14 # ifdef __cplusplus
15 extern "C" {
16 # endif
17 
18 /*
19  * Parameter names that the FIPS Provider defines
20  * All parameters are of type: OSSL_PARAM_UTF8_STRING
21  */
22 
23 /* The following 4 Parameters are used for FIPS Self Testing */
24 
25 /* The calculated MAC of the module file */
26 # define OSSL_PROV_FIPS_PARAM_MODULE_MAC      "module-mac"
27 /* The Version number for the fips install process */
28 # define OSSL_PROV_FIPS_PARAM_INSTALL_VERSION "install-version"
29 /* The calculated MAC of the install status indicator */
30 # define OSSL_PROV_FIPS_PARAM_INSTALL_MAC     "install-mac"
31 /* The install status indicator */
32 # define OSSL_PROV_FIPS_PARAM_INSTALL_STATUS  "install-status"
33 
34 /*
35  * A boolean that determines if the FIPS conditional test errors result in
36  * the module entering an error state.
37  * Type: OSSL_PARAM_UTF8_STRING
38  */
39 # define OSSL_PROV_FIPS_PARAM_CONDITIONAL_ERRORS "conditional-errors"
40 
41 /* The following are provided for backwards compatibility */
42 # define OSSL_PROV_FIPS_PARAM_SECURITY_CHECKS OSSL_PROV_PARAM_SECURITY_CHECKS
43 # define OSSL_PROV_FIPS_PARAM_TLS1_PRF_EMS_CHECK OSSL_PROV_PARAM_TLS1_PRF_EMS_CHECK
44 # define OSSL_PROV_FIPS_PARAM_DRBG_TRUNC_DIGEST OSSL_PROV_PARAM_DRBG_TRUNC_DIGEST
45 
46 # ifdef __cplusplus
47 }
48 # endif
49 
50 #endif /* OPENSSL_FIPS_NAMES_H */
51