]> git.ipfire.org Git - thirdparty/openssl.git/blame - providers/common/provider_err.c
KEYMGMT: Add functions to get param/key generation parameters
[thirdparty/openssl.git] / providers / common / provider_err.c
CommitLineData
6caf7f3a
MC
1/*
2 * Generated by util/mkerr.pl DO NOT EDIT
31a796d1 3 * Copyright 1995-2020 The OpenSSL Project Authors. All Rights Reserved.
6caf7f3a
MC
4 *
5 * Licensed under the Apache License 2.0 (the "License"). You may not use
6 * this file except in compliance with the License. You can obtain a copy
7 * in the file LICENSE in the source distribution or at
8 * https://www.openssl.org/source/license.html
9 */
10
11#include <openssl/err.h>
ddd21319 12#include "prov/providercommonerr.h"
6caf7f3a
MC
13
14#ifndef OPENSSL_NO_ERR
15
6caf7f3a
MC
16static const ERR_STRING_DATA PROV_str_reasons[] = {
17 {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_AES_KEY_SETUP_FAILED),
18 "aes key setup failed"},
6f4b7663
RL
19 {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_ALGORITHM_MISMATCH),
20 "algorithm mismatch"},
6caf7f3a 21 {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_BAD_DECRYPT), "bad decrypt"},
59cba5ac
P
22 {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_BAD_ENCODING), "bad encoding"},
23 {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_BAD_LENGTH), "bad length"},
d9a75107
MC
24 {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_BAD_TLS_CLIENT_VERSION),
25 "bad tls client version"},
045e51cb 26 {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_BN_ERROR), "bn error"},
59cba5ac
P
27 {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_BOTH_MODE_AND_MODE_INT),
28 "both mode and mode int"},
6caf7f3a
MC
29 {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_CIPHER_OPERATION_FAILED),
30 "cipher operation failed"},
6f4b7663
RL
31 {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_DIGEST_NOT_ALLOWED),
32 "digest not allowed"},
6f7d2135
MC
33 {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_FAILED_DURING_DERIVATION),
34 "failed during derivation"},
d9a75107 35 {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_FAILED_TO_DECRYPT), "failed to decrypt"},
4a42e264
SL
36 {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_FAILED_TO_GENERATE_KEY),
37 "failed to generate key"},
6caf7f3a
MC
38 {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_FAILED_TO_GET_PARAMETER),
39 "failed to get parameter"},
40 {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_FAILED_TO_SET_PARAMETER),
41 "failed to set parameter"},
3965480c 42 {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_FAILED_TO_SIGN), "failed to sign"},
6f4b7663
RL
43 {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_ILLEGAL_OR_UNSUPPORTED_PADDING_MODE),
44 "illegal or unsupported padding mode"},
59cba5ac
P
45 {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_INAVLID_UKM_LENGTH),
46 "inavlid ukm length"},
a672a02a 47 {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_INVALID_AAD), "invalid aad"},
33f54da3
SS
48 {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_INVALID_CONSTANT_LENGTH),
49 "invalid constant length"},
55a0a117 50 {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_INVALID_CUSTOM_LENGTH),
f73eb733 51 "invalid custom length"},
3bfe9005 52 {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_INVALID_DATA), "invalid data"},
59cba5ac 53 {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_INVALID_DIGEST), "invalid digest"},
6f4b7663
RL
54 {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_INVALID_DIGEST_LENGTH),
55 "invalid digest length"},
59cba5ac
P
56 {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_INVALID_ITERATION_COUNT),
57 "invalid iteration count"},
3bfe9005 58 {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_INVALID_IVLEN), "invalid ivlen"},
f73eb733 59 {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_INVALID_IV_LENGTH), "invalid iv length"},
2c938e2e 60 {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_INVALID_KEY), "invalid key"},
3bfe9005 61 {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_INVALID_KEYLEN), "invalid keylen"},
59cba5ac 62 {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_INVALID_KEY_LEN), "invalid key len"},
3bfe9005
SL
63 {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_INVALID_KEY_LENGTH),
64 "invalid key length"},
6a41156c 65 {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_INVALID_MAC), "invalid mac"},
6f4b7663 66 {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_INVALID_MGF1_MD), "invalid mgf1 md"},
59cba5ac
P
67 {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_INVALID_MODE), "invalid mode"},
68 {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_INVALID_MODE_INT), "invalid mode int"},
6f4b7663
RL
69 {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_INVALID_PADDING_MODE),
70 "invalid padding mode"},
71 {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_INVALID_PSS_SALTLEN),
72 "invalid pss saltlen"},
55a0a117
RL
73 {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_INVALID_SALT_LENGTH),
74 "invalid salt length"},
f6dead1b
RH
75 {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_INVALID_SEED_LENGTH),
76 "invalid seed length"},
a672a02a 77 {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_INVALID_TAG), "invalid tag"},
3bfe9005 78 {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_INVALID_TAGLEN), "invalid taglen"},
6f4b7663
RL
79 {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_INVALID_X931_DIGEST),
80 "invalid x931 digest"},
81 {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_KEY_SIZE_TOO_SMALL),
82 "key size too small"},
59cba5ac 83 {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_MISSING_CEK_ALG), "missing cek alg"},
33f54da3
SS
84 {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_MISSING_CIPHER), "missing cipher"},
85 {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_MISSING_CONSTANT), "missing constant"},
59cba5ac 86 {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_MISSING_KEY), "missing key"},
6a41156c 87 {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_MISSING_MAC), "missing mac"},
59cba5ac
P
88 {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_MISSING_MESSAGE_DIGEST),
89 "missing message digest"},
90 {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_MISSING_PASS), "missing pass"},
91 {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_MISSING_SALT), "missing salt"},
92 {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_MISSING_SECRET), "missing secret"},
93 {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_MISSING_SEED), "missing seed"},
94 {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_MISSING_SESSION_ID),
95 "missing session id"},
96 {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_MISSING_TYPE), "missing type"},
97 {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_MISSING_XCGHASH), "missing xcghash"},
98 {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_NOT_SUPPORTED), "not supported"},
55a0a117
RL
99 {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_NOT_XOF_OR_INVALID_LENGTH),
100 "not xof or invalid length"},
101 {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_NO_KEY_SET), "no key set"},
6caf7f3a
MC
102 {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_OUTPUT_BUFFER_TOO_SMALL),
103 "output buffer too small"},
6f4b7663
RL
104 {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_PSS_SALTLEN_TOO_SMALL),
105 "pss saltlen too small"},
cb58d81e 106 {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_READ_KEY), "read key"},
3bfe9005
SL
107 {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_TAG_NOTSET), "tag notset"},
108 {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_TAG_NOT_NEEDED), "tag not needed"},
59cba5ac
P
109 {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_UNABLE_TO_LOAD_SHA1),
110 "unable to load sha1"},
111 {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_UNABLE_TO_LOAD_SHA256),
112 "unable to load sha256"},
31a796d1
RL
113 {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_UNKNOWN_PADDING_TYPE),
114 "unknown padding type"},
59cba5ac
P
115 {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_UNSUPPORTED_CEK_ALG),
116 "unsupported cek alg"},
f816aa47
SL
117 {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_UNSUPPORTED_KEY_SIZE),
118 "unsupported key size"},
59cba5ac
P
119 {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_UNSUPPORTED_MAC_TYPE),
120 "unsupported mac type"},
6a41156c
SL
121 {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_UNSUPPORTED_NUMBER_OF_ROUNDS),
122 "unsupported number of rounds"},
59cba5ac 123 {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_VALUE_ERROR), "value error"},
6caf7f3a
MC
124 {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_WRONG_FINAL_BLOCK_LENGTH),
125 "wrong final block length"},
59cba5ac
P
126 {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_WRONG_OUTPUT_BUFFER_SIZE),
127 "wrong output buffer size"},
3a9f26f3
SL
128 {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_XTS_DATA_UNIT_IS_TOO_LARGE),
129 "xts data unit is too large"},
130 {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_XTS_DUPLICATED_KEYS),
131 "xts duplicated keys"},
6caf7f3a
MC
132 {0, NULL}
133};
134
135#endif
136
137int ERR_load_PROV_strings(void)
138{
139#ifndef OPENSSL_NO_ERR
0cd1b144 140 if (ERR_reason_error_string(PROV_str_reasons[0].error) == NULL)
6caf7f3a 141 ERR_load_strings_const(PROV_str_reasons);
6caf7f3a
MC
142#endif
143 return 1;
144}