]>
Commit | Line | Data |
---|---|---|
b6cff313 | 1 | /* |
0cd0a820 | 2 | * Generated by util/mkerr.pl DO NOT EDIT |
5a285add | 3 | * Copyright 1995-2019 The OpenSSL Project Authors. All Rights Reserved. |
6d311938 | 4 | * |
4a8b0c55 | 5 | * Licensed under the Apache License 2.0 (the "License"). You may not use |
b6cff313 RS |
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 | |
d02b48c6 | 9 | */ |
6d311938 | 10 | |
ec577822 | 11 | #include <openssl/err.h> |
52df25cf | 12 | #include <openssl/evperr.h> |
d02b48c6 | 13 | |
cf1b7d96 | 14 | #ifndef OPENSSL_NO_ERR |
29dc3508 | 15 | |
52df25cf RS |
16 | static const ERR_STRING_DATA EVP_str_reasons[] = { |
17 | {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_AES_KEY_SETUP_FAILED), | |
18 | "aes key setup failed"}, | |
19 | {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_ARIA_KEY_SETUP_FAILED), | |
20 | "aria key setup failed"}, | |
21 | {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_BAD_DECRYPT), "bad decrypt"}, | |
792cb4ee | 22 | {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_BAD_KEY_LENGTH), "bad key length"}, |
52df25cf RS |
23 | {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_BUFFER_TOO_SMALL), "buffer too small"}, |
24 | {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_CAMELLIA_KEY_SETUP_FAILED), | |
25 | "camellia key setup failed"}, | |
e870791a SL |
26 | {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_CANNOT_GET_PARAMETERS), |
27 | "cannot get parameters"}, | |
28 | {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_CANNOT_SET_PARAMETERS), | |
29 | "cannot set parameters"}, | |
afc580b9 P |
30 | {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_CIPHER_NOT_GCM_MODE), |
31 | "cipher not gcm mode"}, | |
52df25cf RS |
32 | {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_CIPHER_PARAMETER_ERROR), |
33 | "cipher parameter error"}, | |
34 | {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_COMMAND_NOT_SUPPORTED), | |
35 | "command not supported"}, | |
36 | {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_COPY_ERROR), "copy error"}, | |
37 | {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_CTRL_NOT_IMPLEMENTED), | |
38 | "ctrl not implemented"}, | |
39 | {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_CTRL_OPERATION_NOT_IMPLEMENTED), | |
40 | "ctrl operation not implemented"}, | |
41 | {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_DATA_NOT_MULTIPLE_OF_BLOCK_LENGTH), | |
42 | "data not multiple of block length"}, | |
43 | {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_DECODE_ERROR), "decode error"}, | |
44 | {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_DIFFERENT_KEY_TYPES), | |
45 | "different key types"}, | |
46 | {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_DIFFERENT_PARAMETERS), | |
47 | "different parameters"}, | |
48 | {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_ERROR_LOADING_SECTION), | |
49 | "error loading section"}, | |
50 | {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_ERROR_SETTING_FIPS_MODE), | |
51 | "error setting fips mode"}, | |
52 | {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_EXPECTING_AN_HMAC_KEY), | |
53 | "expecting an hmac key"}, | |
54 | {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_EXPECTING_AN_RSA_KEY), | |
55 | "expecting an rsa key"}, | |
56 | {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_EXPECTING_A_DH_KEY), "expecting a dh key"}, | |
57 | {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_EXPECTING_A_DSA_KEY), | |
58 | "expecting a dsa key"}, | |
59 | {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_EXPECTING_A_EC_KEY), "expecting a ec key"}, | |
60 | {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_EXPECTING_A_POLY1305_KEY), | |
61 | "expecting a poly1305 key"}, | |
62 | {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_EXPECTING_A_SIPHASH_KEY), | |
63 | "expecting a siphash key"}, | |
8c8cf0d9 | 64 | {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_FINAL_ERROR), "final error"}, |
52df25cf RS |
65 | {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_FIPS_MODE_NOT_SUPPORTED), |
66 | "fips mode not supported"}, | |
0d124b0a | 67 | {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_GET_RAW_KEY_FAILED), "get raw key failed"}, |
52df25cf RS |
68 | {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_ILLEGAL_SCRYPT_PARAMETERS), |
69 | "illegal scrypt parameters"}, | |
70 | {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_INITIALIZATION_ERROR), | |
71 | "initialization error"}, | |
72 | {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_INPUT_NOT_INITIALIZED), | |
73 | "input not initialized"}, | |
6e624a64 SL |
74 | {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_INVALID_CUSTOM_LENGTH), |
75 | "invalid custom length"}, | |
52df25cf RS |
76 | {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_INVALID_DIGEST), "invalid digest"}, |
77 | {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_INVALID_FIPS_MODE), "invalid fips mode"}, | |
a05bf83c | 78 | {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_INVALID_IV_LENGTH), "invalid iv length"}, |
52df25cf RS |
79 | {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_INVALID_KEY), "invalid key"}, |
80 | {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_INVALID_KEY_LENGTH), "invalid key length"}, | |
81 | {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_INVALID_OPERATION), "invalid operation"}, | |
df05f2ce MC |
82 | {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_INVALID_PROVIDER_FUNCTIONS), |
83 | "invalid provider functions"}, | |
c3a261f8 AS |
84 | {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_INVALID_SALT_LENGTH), |
85 | "invalid salt length"}, | |
52df25cf | 86 | {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_KEYGEN_FAILURE), "keygen failure"}, |
b3831fbb | 87 | {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_KEY_SETUP_FAILED), "key setup failed"}, |
52df25cf RS |
88 | {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_MEMORY_LIMIT_EXCEEDED), |
89 | "memory limit exceeded"}, | |
90 | {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_MESSAGE_DIGEST_IS_NULL), | |
91 | "message digest is null"}, | |
92 | {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_METHOD_NOT_SUPPORTED), | |
93 | "method not supported"}, | |
94 | {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_MISSING_PARAMETERS), "missing parameters"}, | |
8c8cf0d9 MC |
95 | {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_NOT_ABLE_TO_COPY_CTX), |
96 | "not able to copy ctx"}, | |
cd8d1456 AP |
97 | {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_NOT_XOF_OR_INVALID_LENGTH), |
98 | "not XOF or invalid length"}, | |
52df25cf RS |
99 | {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_NO_CIPHER_SET), "no cipher set"}, |
100 | {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_NO_DEFAULT_DIGEST), "no default digest"}, | |
101 | {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_NO_DIGEST_SET), "no digest set"}, | |
3ca9d210 RL |
102 | {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_NO_KEYMGMT_AVAILABLE), |
103 | "no keymgmt available"}, | |
8b84b075 | 104 | {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_NO_KEYMGMT_PRESENT), "no keymgmt present"}, |
52df25cf RS |
105 | {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_NO_KEY_SET), "no key set"}, |
106 | {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_NO_OPERATION_SET), "no operation set"}, | |
107 | {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_ONLY_ONESHOT_SUPPORTED), | |
108 | "only oneshot supported"}, | |
109 | {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_OPERATION_NOT_SUPPORTED_FOR_THIS_KEYTYPE), | |
110 | "operation not supported for this keytype"}, | |
111 | {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_OPERATON_NOT_INITIALIZED), | |
c2969ff6 | 112 | "operation not initialized"}, |
5a285add DM |
113 | {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_PARAMETER_TOO_LARGE), |
114 | "parameter too large"}, | |
52df25cf RS |
115 | {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_PARTIALLY_OVERLAPPING), |
116 | "partially overlapping buffers"}, | |
3484236d | 117 | {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_PBKDF2_ERROR), "pbkdf2 error"}, |
3bf0c3fe RL |
118 | {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_PKEY_APPLICATION_ASN1_METHOD_ALREADY_REGISTERED), |
119 | "pkey application asn1 method already registered"}, | |
52df25cf RS |
120 | {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_PRIVATE_KEY_DECODE_ERROR), |
121 | "private key decode error"}, | |
122 | {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_PRIVATE_KEY_ENCODE_ERROR), | |
123 | "private key encode error"}, | |
124 | {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_PUBLIC_KEY_NOT_RSA), "public key not rsa"}, | |
d6b34570 | 125 | {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_TOO_MANY_RECORDS), "too many records"}, |
52df25cf RS |
126 | {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_UNKNOWN_CIPHER), "unknown cipher"}, |
127 | {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_UNKNOWN_DIGEST), "unknown digest"}, | |
128 | {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_UNKNOWN_OPTION), "unknown option"}, | |
129 | {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_UNKNOWN_PBE_ALGORITHM), | |
130 | "unknown pbe algorithm"}, | |
131 | {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_UNSUPPORTED_ALGORITHM), | |
132 | "unsupported algorithm"}, | |
133 | {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_UNSUPPORTED_CIPHER), "unsupported cipher"}, | |
134 | {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_UNSUPPORTED_KEYLENGTH), | |
135 | "unsupported keylength"}, | |
136 | {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_UNSUPPORTED_KEY_DERIVATION_FUNCTION), | |
137 | "unsupported key derivation function"}, | |
138 | {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_UNSUPPORTED_KEY_SIZE), | |
139 | "unsupported key size"}, | |
140 | {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_UNSUPPORTED_NUMBER_OF_ROUNDS), | |
141 | "unsupported number of rounds"}, | |
142 | {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_UNSUPPORTED_PRF), "unsupported prf"}, | |
143 | {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_UNSUPPORTED_PRIVATE_KEY_ALGORITHM), | |
144 | "unsupported private key algorithm"}, | |
145 | {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_UNSUPPORTED_SALT_TYPE), | |
146 | "unsupported salt type"}, | |
8c8cf0d9 | 147 | {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_UPDATE_ERROR), "update error"}, |
52df25cf RS |
148 | {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_WRAP_MODE_NOT_ALLOWED), |
149 | "wrap mode not allowed"}, | |
150 | {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_WRONG_FINAL_BLOCK_LENGTH), | |
151 | "wrong final block length"}, | |
5516c19b P |
152 | {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_XTS_DATA_UNIT_IS_TOO_LARGE), |
153 | "xts data unit is too large"}, | |
3538b0f7 P |
154 | {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_XTS_DUPLICATED_KEYS), |
155 | "xts duplicated keys"}, | |
0f113f3e MC |
156 | {0, NULL} |
157 | }; | |
d02b48c6 | 158 | |
58964a49 RE |
159 | #endif |
160 | ||
69588edb | 161 | int ERR_load_EVP_strings(void) |
0f113f3e | 162 | { |
47a9d527 | 163 | #ifndef OPENSSL_NO_ERR |
cbfa5b03 | 164 | if (ERR_func_error_string(EVP_str_reasons[0].error) == NULL) |
52df25cf | 165 | ERR_load_strings_const(EVP_str_reasons); |
47a9d527 | 166 | #endif |
69588edb | 167 | return 1; |
0f113f3e | 168 | } |