xref: /freebsd/crypto/openssl/providers/common/provider_err.c (revision b077aed33b7b6aefca7b17ddb250cf521f938613)
1*b077aed3SPierre Pronchery /*
2*b077aed3SPierre Pronchery  * Generated by util/mkerr.pl DO NOT EDIT
3*b077aed3SPierre Pronchery  * Copyright 1995-2021 The OpenSSL Project Authors. All Rights Reserved.
4*b077aed3SPierre Pronchery  *
5*b077aed3SPierre Pronchery  * Licensed under the Apache License 2.0 (the "License").  You may not use
6*b077aed3SPierre Pronchery  * this file except in compliance with the License.  You can obtain a copy
7*b077aed3SPierre Pronchery  * in the file LICENSE in the source distribution or at
8*b077aed3SPierre Pronchery  * https://www.openssl.org/source/license.html
9*b077aed3SPierre Pronchery  */
10*b077aed3SPierre Pronchery 
11*b077aed3SPierre Pronchery #include <openssl/err.h>
12*b077aed3SPierre Pronchery #include <openssl/proverr.h>
13*b077aed3SPierre Pronchery #include "include/prov/proverr.h"
14*b077aed3SPierre Pronchery 
15*b077aed3SPierre Pronchery #ifndef OPENSSL_NO_ERR
16*b077aed3SPierre Pronchery 
17*b077aed3SPierre Pronchery static const ERR_STRING_DATA PROV_str_reasons[] = {
18*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_ADDITIONAL_INPUT_TOO_LONG),
19*b077aed3SPierre Pronchery     "additional input too long"},
20*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_ALGORITHM_MISMATCH),
21*b077aed3SPierre Pronchery     "algorithm mismatch"},
22*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_ALREADY_INSTANTIATED),
23*b077aed3SPierre Pronchery     "already instantiated"},
24*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_BAD_DECRYPT), "bad decrypt"},
25*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_BAD_ENCODING), "bad encoding"},
26*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_BAD_LENGTH), "bad length"},
27*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_BAD_TLS_CLIENT_VERSION),
28*b077aed3SPierre Pronchery     "bad tls client version"},
29*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_BN_ERROR), "bn error"},
30*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_CIPHER_OPERATION_FAILED),
31*b077aed3SPierre Pronchery     "cipher operation failed"},
32*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_DERIVATION_FUNCTION_INIT_FAILED),
33*b077aed3SPierre Pronchery     "derivation function init failed"},
34*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_DIGEST_NOT_ALLOWED),
35*b077aed3SPierre Pronchery     "digest not allowed"},
36*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_ENTROPY_SOURCE_STRENGTH_TOO_WEAK),
37*b077aed3SPierre Pronchery     "entropy source strength too weak"},
38*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_ERROR_INSTANTIATING_DRBG),
39*b077aed3SPierre Pronchery     "error instantiating drbg"},
40*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_ERROR_RETRIEVING_ENTROPY),
41*b077aed3SPierre Pronchery     "error retrieving entropy"},
42*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_ERROR_RETRIEVING_NONCE),
43*b077aed3SPierre Pronchery     "error retrieving nonce"},
44*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_FAILED_DURING_DERIVATION),
45*b077aed3SPierre Pronchery     "failed during derivation"},
46*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_FAILED_TO_CREATE_LOCK),
47*b077aed3SPierre Pronchery     "failed to create lock"},
48*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_FAILED_TO_DECRYPT), "failed to decrypt"},
49*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_FAILED_TO_GENERATE_KEY),
50*b077aed3SPierre Pronchery     "failed to generate key"},
51*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_FAILED_TO_GET_PARAMETER),
52*b077aed3SPierre Pronchery     "failed to get parameter"},
53*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_FAILED_TO_SET_PARAMETER),
54*b077aed3SPierre Pronchery     "failed to set parameter"},
55*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_FAILED_TO_SIGN), "failed to sign"},
56*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_FIPS_MODULE_CONDITIONAL_ERROR),
57*b077aed3SPierre Pronchery     "fips module conditional error"},
58*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_FIPS_MODULE_ENTERING_ERROR_STATE),
59*b077aed3SPierre Pronchery     "fips module entering error state"},
60*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_FIPS_MODULE_IN_ERROR_STATE),
61*b077aed3SPierre Pronchery     "fips module in error state"},
62*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_GENERATE_ERROR), "generate error"},
63*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_ILLEGAL_OR_UNSUPPORTED_PADDING_MODE),
64*b077aed3SPierre Pronchery     "illegal or unsupported padding mode"},
65*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_INDICATOR_INTEGRITY_FAILURE),
66*b077aed3SPierre Pronchery     "indicator integrity failure"},
67*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_INSUFFICIENT_DRBG_STRENGTH),
68*b077aed3SPierre Pronchery     "insufficient drbg strength"},
69*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_INVALID_AAD), "invalid aad"},
70*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_INVALID_CONFIG_DATA),
71*b077aed3SPierre Pronchery     "invalid config data"},
72*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_INVALID_CONSTANT_LENGTH),
73*b077aed3SPierre Pronchery     "invalid constant length"},
74*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_INVALID_CURVE), "invalid curve"},
75*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_INVALID_CUSTOM_LENGTH),
76*b077aed3SPierre Pronchery     "invalid custom length"},
77*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_INVALID_DATA), "invalid data"},
78*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_INVALID_DIGEST), "invalid digest"},
79*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_INVALID_DIGEST_LENGTH),
80*b077aed3SPierre Pronchery     "invalid digest length"},
81*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_INVALID_DIGEST_SIZE),
82*b077aed3SPierre Pronchery     "invalid digest size"},
83*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_INVALID_INPUT_LENGTH),
84*b077aed3SPierre Pronchery     "invalid input length"},
85*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_INVALID_ITERATION_COUNT),
86*b077aed3SPierre Pronchery     "invalid iteration count"},
87*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_INVALID_IV_LENGTH), "invalid iv length"},
88*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_INVALID_KEY), "invalid key"},
89*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_INVALID_KEY_LENGTH),
90*b077aed3SPierre Pronchery     "invalid key length"},
91*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_INVALID_MAC), "invalid mac"},
92*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_INVALID_MGF1_MD), "invalid mgf1 md"},
93*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_INVALID_MODE), "invalid mode"},
94*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_INVALID_OUTPUT_LENGTH),
95*b077aed3SPierre Pronchery     "invalid output length"},
96*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_INVALID_PADDING_MODE),
97*b077aed3SPierre Pronchery     "invalid padding mode"},
98*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_INVALID_PUBINFO), "invalid pubinfo"},
99*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_INVALID_SALT_LENGTH),
100*b077aed3SPierre Pronchery     "invalid salt length"},
101*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_INVALID_SEED_LENGTH),
102*b077aed3SPierre Pronchery     "invalid seed length"},
103*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_INVALID_SIGNATURE_SIZE),
104*b077aed3SPierre Pronchery     "invalid signature size"},
105*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_INVALID_STATE), "invalid state"},
106*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_INVALID_TAG), "invalid tag"},
107*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_INVALID_TAG_LENGTH),
108*b077aed3SPierre Pronchery     "invalid tag length"},
109*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_INVALID_UKM_LENGTH),
110*b077aed3SPierre Pronchery     "invalid ukm length"},
111*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_INVALID_X931_DIGEST),
112*b077aed3SPierre Pronchery     "invalid x931 digest"},
113*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_IN_ERROR_STATE), "in error state"},
114*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_KEY_SETUP_FAILED), "key setup failed"},
115*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_KEY_SIZE_TOO_SMALL),
116*b077aed3SPierre Pronchery     "key size too small"},
117*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_LENGTH_TOO_LARGE), "length too large"},
118*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_MISMATCHING_DOMAIN_PARAMETERS),
119*b077aed3SPierre Pronchery     "mismatching domain parameters"},
120*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_MISSING_CEK_ALG), "missing cek alg"},
121*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_MISSING_CIPHER), "missing cipher"},
122*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_MISSING_CONFIG_DATA),
123*b077aed3SPierre Pronchery     "missing config data"},
124*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_MISSING_CONSTANT), "missing constant"},
125*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_MISSING_KEY), "missing key"},
126*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_MISSING_MAC), "missing mac"},
127*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_MISSING_MESSAGE_DIGEST),
128*b077aed3SPierre Pronchery     "missing message digest"},
129*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_MISSING_OID), "missing OID"},
130*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_MISSING_PASS), "missing pass"},
131*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_MISSING_SALT), "missing salt"},
132*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_MISSING_SECRET), "missing secret"},
133*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_MISSING_SEED), "missing seed"},
134*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_MISSING_SESSION_ID),
135*b077aed3SPierre Pronchery     "missing session id"},
136*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_MISSING_TYPE), "missing type"},
137*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_MISSING_XCGHASH), "missing xcghash"},
138*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_MODULE_INTEGRITY_FAILURE),
139*b077aed3SPierre Pronchery     "module integrity failure"},
140*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_NOT_A_PRIVATE_KEY), "not a private key"},
141*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_NOT_A_PUBLIC_KEY), "not a public key"},
142*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_NOT_INSTANTIATED), "not instantiated"},
143*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_NOT_PARAMETERS), "not parameters"},
144*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_NOT_SUPPORTED), "not supported"},
145*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_NOT_XOF_OR_INVALID_LENGTH),
146*b077aed3SPierre Pronchery     "not xof or invalid length"},
147*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_NO_KEY_SET), "no key set"},
148*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_NO_PARAMETERS_SET), "no parameters set"},
149*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_OPERATION_NOT_SUPPORTED_FOR_THIS_KEYTYPE),
150*b077aed3SPierre Pronchery     "operation not supported for this keytype"},
151*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_OUTPUT_BUFFER_TOO_SMALL),
152*b077aed3SPierre Pronchery     "output buffer too small"},
153*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_PARENT_CANNOT_GENERATE_RANDOM_NUMBERS),
154*b077aed3SPierre Pronchery     "parent cannot generate random numbers"},
155*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_PARENT_CANNOT_SUPPLY_ENTROPY_SEED),
156*b077aed3SPierre Pronchery     "parent cannot supply entropy seed"},
157*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_PARENT_LOCKING_NOT_ENABLED),
158*b077aed3SPierre Pronchery     "parent locking not enabled"},
159*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_PARENT_STRENGTH_TOO_WEAK),
160*b077aed3SPierre Pronchery     "parent strength too weak"},
161*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_PATH_MUST_BE_ABSOLUTE),
162*b077aed3SPierre Pronchery     "path must be absolute"},
163*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_PERSONALISATION_STRING_TOO_LONG),
164*b077aed3SPierre Pronchery     "personalisation string too long"},
165*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_PSS_SALTLEN_TOO_SMALL),
166*b077aed3SPierre Pronchery     "pss saltlen too small"},
167*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_REQUEST_TOO_LARGE_FOR_DRBG),
168*b077aed3SPierre Pronchery     "request too large for drbg"},
169*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_REQUIRE_CTR_MODE_CIPHER),
170*b077aed3SPierre Pronchery     "require ctr mode cipher"},
171*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_RESEED_ERROR), "reseed error"},
172*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_SEARCH_ONLY_SUPPORTED_FOR_DIRECTORIES),
173*b077aed3SPierre Pronchery     "search only supported for directories"},
174*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_SEED_SOURCES_MUST_NOT_HAVE_A_PARENT),
175*b077aed3SPierre Pronchery     "seed sources must not have a parent"},
176*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_SELF_TEST_KAT_FAILURE),
177*b077aed3SPierre Pronchery     "self test kat failure"},
178*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_SELF_TEST_POST_FAILURE),
179*b077aed3SPierre Pronchery     "self test post failure"},
180*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_TAG_NOT_NEEDED), "tag not needed"},
181*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_TAG_NOT_SET), "tag not set"},
182*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_TOO_MANY_RECORDS), "too many records"},
183*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_UNABLE_TO_FIND_CIPHERS),
184*b077aed3SPierre Pronchery     "unable to find ciphers"},
185*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_UNABLE_TO_GET_PARENT_STRENGTH),
186*b077aed3SPierre Pronchery     "unable to get parent strength"},
187*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_UNABLE_TO_GET_PASSPHRASE),
188*b077aed3SPierre Pronchery     "unable to get passphrase"},
189*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_UNABLE_TO_INITIALISE_CIPHERS),
190*b077aed3SPierre Pronchery     "unable to initialise ciphers"},
191*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_UNABLE_TO_LOAD_SHA256),
192*b077aed3SPierre Pronchery     "unable to load sha256"},
193*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_UNABLE_TO_LOCK_PARENT),
194*b077aed3SPierre Pronchery     "unable to lock parent"},
195*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_UNABLE_TO_RESEED), "unable to reseed"},
196*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_UNSUPPORTED_CEK_ALG),
197*b077aed3SPierre Pronchery     "unsupported cek alg"},
198*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_UNSUPPORTED_KEY_SIZE),
199*b077aed3SPierre Pronchery     "unsupported key size"},
200*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_UNSUPPORTED_MAC_TYPE),
201*b077aed3SPierre Pronchery     "unsupported mac type"},
202*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_UNSUPPORTED_NUMBER_OF_ROUNDS),
203*b077aed3SPierre Pronchery     "unsupported number of rounds"},
204*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_URI_AUTHORITY_UNSUPPORTED),
205*b077aed3SPierre Pronchery     "uri authority unsupported"},
206*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_VALUE_ERROR), "value error"},
207*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_WRONG_FINAL_BLOCK_LENGTH),
208*b077aed3SPierre Pronchery     "wrong final block length"},
209*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_WRONG_OUTPUT_BUFFER_SIZE),
210*b077aed3SPierre Pronchery     "wrong output buffer size"},
211*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_XOF_DIGESTS_NOT_ALLOWED),
212*b077aed3SPierre Pronchery     "xof digests not allowed"},
213*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_XTS_DATA_UNIT_IS_TOO_LARGE),
214*b077aed3SPierre Pronchery     "xts data unit is too large"},
215*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_XTS_DUPLICATED_KEYS),
216*b077aed3SPierre Pronchery     "xts duplicated keys"},
217*b077aed3SPierre Pronchery     {0, NULL}
218*b077aed3SPierre Pronchery };
219*b077aed3SPierre Pronchery 
220*b077aed3SPierre Pronchery #endif
221*b077aed3SPierre Pronchery 
ossl_err_load_PROV_strings(void)222*b077aed3SPierre Pronchery int ossl_err_load_PROV_strings(void)
223*b077aed3SPierre Pronchery {
224*b077aed3SPierre Pronchery #ifndef OPENSSL_NO_ERR
225*b077aed3SPierre Pronchery     if (ERR_reason_error_string(PROV_str_reasons[0].error) == NULL)
226*b077aed3SPierre Pronchery         ERR_load_strings_const(PROV_str_reasons);
227*b077aed3SPierre Pronchery #endif
228*b077aed3SPierre Pronchery     return 1;
229*b077aed3SPierre Pronchery }
230