| 
									
										
										
										
											2016-05-18 05:38:18 +08:00
										 |  |  | /*
 | 
					
						
							| 
									
										
										
										
											2016-05-24 03:02:34 +08:00
										 |  |  |  * Generated by util/mkerr.pl DO NOT EDIT | 
					
						
							| 
									
										
										
										
											2021-01-28 20:54:57 +08:00
										 |  |  |  * Copyright 1995-2021 The OpenSSL Project Authors. All Rights Reserved. | 
					
						
							| 
									
										
										
										
											1999-04-24 08:15:18 +08:00
										 |  |  |  * | 
					
						
							| 
									
										
										
										
											2018-12-06 20:40:06 +08:00
										 |  |  |  * Licensed under the Apache License 2.0 (the "License").  You may not use | 
					
						
							| 
									
										
										
										
											2016-05-18 05:38:18 +08:00
										 |  |  |  * this file except in compliance with the License.  You can obtain a copy | 
					
						
							|  |  |  |  * in the file LICENSE in the source distribution or at | 
					
						
							|  |  |  |  * https://www.openssl.org/source/license.html
 | 
					
						
							| 
									
										
										
										
											1998-12-21 18:52:47 +08:00
										 |  |  |  */ | 
					
						
							| 
									
										
										
										
											1999-04-24 08:15:18 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											1999-04-24 06:13:45 +08:00
										 |  |  | #include <openssl/err.h>
 | 
					
						
							| 
									
										
										
										
											2017-06-08 03:12:03 +08:00
										 |  |  | #include <openssl/evperr.h>
 | 
					
						
							| 
									
										
										
										
											2020-11-12 17:36:47 +08:00
										 |  |  | #include "crypto/evperr.h"
 | 
					
						
							| 
									
										
										
										
											1998-12-21 18:52:47 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2001-02-20 00:06:34 +08:00
										 |  |  | #ifndef OPENSSL_NO_ERR
 | 
					
						
							| 
									
										
										
										
											2005-04-13 00:15:22 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-06-08 03:12:03 +08:00
										 |  |  | static const ERR_STRING_DATA EVP_str_reasons[] = { | 
					
						
							|  |  |  |     {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_AES_KEY_SETUP_FAILED), | 
					
						
							|  |  |  |     "aes key setup failed"}, | 
					
						
							|  |  |  |     {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_ARIA_KEY_SETUP_FAILED), | 
					
						
							|  |  |  |     "aria key setup failed"}, | 
					
						
							| 
									
										
										
										
											2019-05-23 09:36:21 +08:00
										 |  |  |     {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_BAD_ALGORITHM_NAME), "bad algorithm name"}, | 
					
						
							| 
									
										
										
										
											2017-06-08 03:12:03 +08:00
										 |  |  |     {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_BAD_DECRYPT), "bad decrypt"}, | 
					
						
							| 
									
										
										
										
											2019-04-26 19:11:13 +08:00
										 |  |  |     {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_BAD_KEY_LENGTH), "bad key length"}, | 
					
						
							| 
									
										
										
										
											2017-06-08 03:12:03 +08:00
										 |  |  |     {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_BUFFER_TOO_SMALL), "buffer too small"}, | 
					
						
							| 
									
										
										
										
											2020-12-22 19:54:16 +08:00
										 |  |  |     {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_CACHE_CONSTANTS_FAILED), | 
					
						
							|  |  |  |     "cache constants failed"}, | 
					
						
							| 
									
										
										
										
											2017-06-08 03:12:03 +08:00
										 |  |  |     {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_CAMELLIA_KEY_SETUP_FAILED), | 
					
						
							|  |  |  |     "camellia key setup failed"}, | 
					
						
							| 
									
										
										
										
											2019-07-31 18:34:26 +08:00
										 |  |  |     {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_CANNOT_GET_PARAMETERS), | 
					
						
							|  |  |  |     "cannot get parameters"}, | 
					
						
							|  |  |  |     {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_CANNOT_SET_PARAMETERS), | 
					
						
							|  |  |  |     "cannot set parameters"}, | 
					
						
							| 
									
										
										
										
											2018-11-05 06:09:41 +08:00
										 |  |  |     {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_CIPHER_NOT_GCM_MODE), | 
					
						
							|  |  |  |     "cipher not gcm mode"}, | 
					
						
							| 
									
										
										
										
											2017-06-08 03:12:03 +08:00
										 |  |  |     {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_CIPHER_PARAMETER_ERROR), | 
					
						
							|  |  |  |     "cipher parameter error"}, | 
					
						
							|  |  |  |     {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_COMMAND_NOT_SUPPORTED), | 
					
						
							|  |  |  |     "command not supported"}, | 
					
						
							| 
									
										
										
										
											2019-05-23 09:36:21 +08:00
										 |  |  |     {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_CONFLICTING_ALGORITHM_NAME), | 
					
						
							|  |  |  |     "conflicting algorithm name"}, | 
					
						
							| 
									
										
										
										
											2017-06-08 03:12:03 +08:00
										 |  |  |     {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_COPY_ERROR), "copy error"}, | 
					
						
							|  |  |  |     {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_CTRL_NOT_IMPLEMENTED), | 
					
						
							|  |  |  |     "ctrl not implemented"}, | 
					
						
							|  |  |  |     {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_CTRL_OPERATION_NOT_IMPLEMENTED), | 
					
						
							|  |  |  |     "ctrl operation not implemented"}, | 
					
						
							|  |  |  |     {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_DATA_NOT_MULTIPLE_OF_BLOCK_LENGTH), | 
					
						
							|  |  |  |     "data not multiple of block length"}, | 
					
						
							|  |  |  |     {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_DECODE_ERROR), "decode error"}, | 
					
						
							| 
									
										
										
										
											2020-06-12 08:34:46 +08:00
										 |  |  |     {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_DEFAULT_QUERY_PARSE_ERROR), | 
					
						
							|  |  |  |     "default query parse error"}, | 
					
						
							| 
									
										
										
										
											2017-06-08 03:12:03 +08:00
										 |  |  |     {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_DIFFERENT_KEY_TYPES), | 
					
						
							|  |  |  |     "different key types"}, | 
					
						
							|  |  |  |     {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_DIFFERENT_PARAMETERS), | 
					
						
							|  |  |  |     "different parameters"}, | 
					
						
							|  |  |  |     {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_ERROR_LOADING_SECTION), | 
					
						
							|  |  |  |     "error loading section"}, | 
					
						
							|  |  |  |     {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_EXPECTING_AN_HMAC_KEY), | 
					
						
							|  |  |  |     "expecting an hmac key"}, | 
					
						
							|  |  |  |     {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_EXPECTING_AN_RSA_KEY), | 
					
						
							|  |  |  |     "expecting an rsa key"}, | 
					
						
							|  |  |  |     {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_EXPECTING_A_DH_KEY), "expecting a dh key"}, | 
					
						
							|  |  |  |     {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_EXPECTING_A_DSA_KEY), | 
					
						
							|  |  |  |     "expecting a dsa key"}, | 
					
						
							| 
									
										
										
										
											2020-07-28 00:40:05 +08:00
										 |  |  |     {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_EXPECTING_A_ECX_KEY), | 
					
						
							| 
									
										
										
										
											2021-04-15 05:45:05 +08:00
										 |  |  |     "expecting an ecx key"}, | 
					
						
							|  |  |  |     {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_EXPECTING_A_EC_KEY), "expecting an ec key"}, | 
					
						
							| 
									
										
										
										
											2017-06-08 03:12:03 +08:00
										 |  |  |     {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_EXPECTING_A_POLY1305_KEY), | 
					
						
							|  |  |  |     "expecting a poly1305 key"}, | 
					
						
							|  |  |  |     {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_EXPECTING_A_SIPHASH_KEY), | 
					
						
							|  |  |  |     "expecting a siphash key"}, | 
					
						
							| 
									
										
										
										
											2019-03-14 00:17:17 +08:00
										 |  |  |     {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_FINAL_ERROR), "final error"}, | 
					
						
							| 
									
										
										
										
											2020-04-30 12:46:12 +08:00
										 |  |  |     {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_GENERATE_ERROR), "generate error"}, | 
					
						
							| 
									
										
										
										
											2018-06-01 19:22:28 +08:00
										 |  |  |     {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_GET_RAW_KEY_FAILED), "get raw key failed"}, | 
					
						
							| 
									
										
										
										
											2017-06-08 03:12:03 +08:00
										 |  |  |     {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_ILLEGAL_SCRYPT_PARAMETERS), | 
					
						
							|  |  |  |     "illegal scrypt parameters"}, | 
					
						
							| 
									
										
										
										
											2020-03-21 13:21:26 +08:00
										 |  |  |     {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_INACCESSIBLE_DOMAIN_PARAMETERS), | 
					
						
							|  |  |  |     "inaccessible domain parameters"}, | 
					
						
							|  |  |  |     {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_INACCESSIBLE_KEY), "inaccessible key"}, | 
					
						
							| 
									
										
										
										
											2017-06-08 03:12:03 +08:00
										 |  |  |     {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_INITIALIZATION_ERROR), | 
					
						
							|  |  |  |     "initialization error"}, | 
					
						
							|  |  |  |     {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_INPUT_NOT_INITIALIZED), | 
					
						
							|  |  |  |     "input not initialized"}, | 
					
						
							| 
									
										
										
										
											2018-11-09 12:00:05 +08:00
										 |  |  |     {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_INVALID_CUSTOM_LENGTH), | 
					
						
							|  |  |  |     "invalid custom length"}, | 
					
						
							| 
									
										
										
										
											2017-06-08 03:12:03 +08:00
										 |  |  |     {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_INVALID_DIGEST), "invalid digest"}, | 
					
						
							| 
									
										
										
										
											2019-05-07 08:42:58 +08:00
										 |  |  |     {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_INVALID_IV_LENGTH), "invalid iv length"}, | 
					
						
							| 
									
										
										
										
											2017-06-08 03:12:03 +08:00
										 |  |  |     {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_INVALID_KEY), "invalid key"}, | 
					
						
							|  |  |  |     {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_INVALID_KEY_LENGTH), "invalid key length"}, | 
					
						
							| 
									
										
										
										
											2020-07-21 01:06:55 +08:00
										 |  |  |     {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_INVALID_LENGTH), "invalid length"}, | 
					
						
							| 
									
										
										
										
											2020-04-30 12:46:12 +08:00
										 |  |  |     {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_INVALID_NULL_ALGORITHM), | 
					
						
							|  |  |  |     "invalid null algorithm"}, | 
					
						
							| 
									
										
										
										
											2017-06-08 03:12:03 +08:00
										 |  |  |     {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_INVALID_OPERATION), "invalid operation"}, | 
					
						
							| 
									
										
										
										
											2019-04-03 22:38:07 +08:00
										 |  |  |     {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_INVALID_PROVIDER_FUNCTIONS), | 
					
						
							|  |  |  |     "invalid provider functions"}, | 
					
						
							| 
									
										
										
										
											2018-12-21 07:28:10 +08:00
										 |  |  |     {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_INVALID_SALT_LENGTH), | 
					
						
							|  |  |  |     "invalid salt length"}, | 
					
						
							| 
									
										
										
										
											2020-07-03 23:18:03 +08:00
										 |  |  |     {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_INVALID_SECRET_LENGTH), | 
					
						
							|  |  |  |     "invalid secret length"}, | 
					
						
							|  |  |  |     {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_INVALID_SEED_LENGTH), | 
					
						
							|  |  |  |     "invalid seed length"}, | 
					
						
							| 
									
										
										
										
											2020-07-21 01:06:55 +08:00
										 |  |  |     {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_INVALID_VALUE), "invalid value"}, | 
					
						
							| 
									
										
										
										
											2020-03-21 13:21:26 +08:00
										 |  |  |     {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_KEYMGMT_EXPORT_FAILURE), | 
					
						
							|  |  |  |     "keymgmt export failure"}, | 
					
						
							| 
									
										
										
										
											2018-03-06 01:23:57 +08:00
										 |  |  |     {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_KEY_SETUP_FAILED), "key setup failed"}, | 
					
						
							| 
									
										
										
										
											2020-04-30 12:46:12 +08:00
										 |  |  |     {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_LOCKING_NOT_SUPPORTED), | 
					
						
							|  |  |  |     "locking not supported"}, | 
					
						
							| 
									
										
										
										
											2017-06-08 03:12:03 +08:00
										 |  |  |     {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_MEMORY_LIMIT_EXCEEDED), | 
					
						
							|  |  |  |     "memory limit exceeded"}, | 
					
						
							|  |  |  |     {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_MESSAGE_DIGEST_IS_NULL), | 
					
						
							|  |  |  |     "message digest is null"}, | 
					
						
							|  |  |  |     {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_METHOD_NOT_SUPPORTED), | 
					
						
							|  |  |  |     "method not supported"}, | 
					
						
							|  |  |  |     {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_MISSING_PARAMETERS), "missing parameters"}, | 
					
						
							| 
									
										
										
										
											2019-03-14 00:17:17 +08:00
										 |  |  |     {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_NOT_ABLE_TO_COPY_CTX), | 
					
						
							|  |  |  |     "not able to copy ctx"}, | 
					
						
							| 
									
										
										
										
											2017-08-11 04:39:40 +08:00
										 |  |  |     {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_NOT_XOF_OR_INVALID_LENGTH), | 
					
						
							|  |  |  |     "not XOF or invalid length"}, | 
					
						
							| 
									
										
										
										
											2017-06-08 03:12:03 +08:00
										 |  |  |     {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_NO_CIPHER_SET), "no cipher set"}, | 
					
						
							|  |  |  |     {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_NO_DEFAULT_DIGEST), "no default digest"}, | 
					
						
							|  |  |  |     {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_NO_DIGEST_SET), "no digest set"}, | 
					
						
							| 
									
										
										
										
											2020-03-21 13:21:26 +08:00
										 |  |  |     {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_NO_IMPORT_FUNCTION), "no import function"}, | 
					
						
							| 
									
										
										
										
											2019-08-23 20:03:28 +08:00
										 |  |  |     {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_NO_KEYMGMT_AVAILABLE), | 
					
						
							|  |  |  |     "no keymgmt available"}, | 
					
						
							| 
									
										
										
										
											2019-07-07 16:56:46 +08:00
										 |  |  |     {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_NO_KEYMGMT_PRESENT), "no keymgmt present"}, | 
					
						
							| 
									
										
										
										
											2017-06-08 03:12:03 +08:00
										 |  |  |     {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_NO_KEY_SET), "no key set"}, | 
					
						
							|  |  |  |     {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_NO_OPERATION_SET), "no operation set"}, | 
					
						
							| 
									
										
										
										
											2020-04-27 06:33:27 +08:00
										 |  |  |     {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_NULL_MAC_PKEY_CTX), "null mac pkey ctx"}, | 
					
						
							| 
									
										
										
										
											2017-06-08 03:12:03 +08:00
										 |  |  |     {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_ONLY_ONESHOT_SUPPORTED), | 
					
						
							|  |  |  |     "only oneshot supported"}, | 
					
						
							| 
									
										
										
										
											2021-03-05 00:01:50 +08:00
										 |  |  |     {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_OPERATION_NOT_INITIALIZED), | 
					
						
							| 
									
										
										
										
											2019-07-02 16:04:04 +08:00
										 |  |  |     "operation not initialized"}, | 
					
						
							| 
									
										
										
										
											2021-04-28 10:58:35 +08:00
										 |  |  |     {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_OPERATION_NOT_SUPPORTED_FOR_THIS_KEYTYPE), | 
					
						
							|  |  |  |     "operation not supported for this keytype"}, | 
					
						
							| 
									
										
										
										
											2021-02-03 01:17:23 +08:00
										 |  |  |     {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_OUTPUT_WOULD_OVERFLOW), | 
					
						
							|  |  |  |     "output would overflow"}, | 
					
						
							| 
									
										
										
										
											2018-06-22 05:16:18 +08:00
										 |  |  |     {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_PARAMETER_TOO_LARGE), | 
					
						
							|  |  |  |     "parameter too large"}, | 
					
						
							| 
									
										
										
										
											2017-06-08 03:12:03 +08:00
										 |  |  |     {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_PARTIALLY_OVERLAPPING), | 
					
						
							|  |  |  |     "partially overlapping buffers"}, | 
					
						
							| 
									
										
										
										
											2018-03-30 02:59:58 +08:00
										 |  |  |     {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_PBKDF2_ERROR), "pbkdf2 error"}, | 
					
						
							| 
									
										
										
										
											2018-01-23 02:03:37 +08:00
										 |  |  |     {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_PKEY_APPLICATION_ASN1_METHOD_ALREADY_REGISTERED), | 
					
						
							|  |  |  |     "pkey application asn1 method already registered"}, | 
					
						
							| 
									
										
										
										
											2017-06-08 03:12:03 +08:00
										 |  |  |     {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_PRIVATE_KEY_DECODE_ERROR), | 
					
						
							|  |  |  |     "private key decode error"}, | 
					
						
							|  |  |  |     {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_PRIVATE_KEY_ENCODE_ERROR), | 
					
						
							|  |  |  |     "private key encode error"}, | 
					
						
							|  |  |  |     {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_PUBLIC_KEY_NOT_RSA), "public key not rsa"}, | 
					
						
							| 
									
										
										
										
											2021-04-28 10:58:35 +08:00
										 |  |  |     {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_SETTING_XOF_FAILED), "setting xof failed"}, | 
					
						
							| 
									
										
										
										
											2020-05-02 12:17:54 +08:00
										 |  |  |     {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_SET_DEFAULT_PROPERTY_FAILURE), | 
					
						
							|  |  |  |     "set default property failure"}, | 
					
						
							| 
									
										
										
										
											2018-09-12 07:25:20 +08:00
										 |  |  |     {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_TOO_MANY_RECORDS), "too many records"}, | 
					
						
							| 
									
										
										
										
											2021-01-08 21:48:13 +08:00
										 |  |  |     {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_UNABLE_TO_ENABLE_LOCKING), | 
					
						
							| 
									
										
										
										
											2021-02-03 01:17:23 +08:00
										 |  |  |     "unable to enable locking"}, | 
					
						
							| 
									
										
										
										
											2020-04-30 12:46:12 +08:00
										 |  |  |     {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_UNABLE_TO_GET_MAXIMUM_REQUEST_SIZE), | 
					
						
							|  |  |  |     "unable to get maximum request size"}, | 
					
						
							|  |  |  |     {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_UNABLE_TO_GET_RANDOM_STRENGTH), | 
					
						
							|  |  |  |     "unable to get random strength"}, | 
					
						
							|  |  |  |     {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_UNABLE_TO_LOCK_CONTEXT), | 
					
						
							|  |  |  |     "unable to lock context"}, | 
					
						
							|  |  |  |     {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_UNABLE_TO_SET_CALLBACKS), | 
					
						
							|  |  |  |     "unable to set callbacks"}, | 
					
						
							| 
									
										
										
										
											2017-06-08 03:12:03 +08:00
										 |  |  |     {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_UNKNOWN_CIPHER), "unknown cipher"}, | 
					
						
							|  |  |  |     {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_UNKNOWN_DIGEST), "unknown digest"}, | 
					
						
							| 
									
										
										
										
											2020-03-21 13:21:26 +08:00
										 |  |  |     {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_UNKNOWN_KEY_TYPE), "unknown key type"}, | 
					
						
							| 
									
										
										
										
											2017-06-08 03:12:03 +08:00
										 |  |  |     {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_UNKNOWN_OPTION), "unknown option"}, | 
					
						
							|  |  |  |     {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_UNKNOWN_PBE_ALGORITHM), | 
					
						
							|  |  |  |     "unknown pbe algorithm"}, | 
					
						
							|  |  |  |     {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_UNSUPPORTED_ALGORITHM), | 
					
						
							|  |  |  |     "unsupported algorithm"}, | 
					
						
							|  |  |  |     {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_UNSUPPORTED_CIPHER), "unsupported cipher"}, | 
					
						
							|  |  |  |     {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_UNSUPPORTED_KEYLENGTH), | 
					
						
							|  |  |  |     "unsupported keylength"}, | 
					
						
							|  |  |  |     {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_UNSUPPORTED_KEY_DERIVATION_FUNCTION), | 
					
						
							|  |  |  |     "unsupported key derivation function"}, | 
					
						
							|  |  |  |     {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_UNSUPPORTED_KEY_SIZE), | 
					
						
							|  |  |  |     "unsupported key size"}, | 
					
						
							| 
									
										
										
										
											2020-12-04 13:32:24 +08:00
										 |  |  |     {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_UNSUPPORTED_KEY_TYPE), | 
					
						
							|  |  |  |     "unsupported key type"}, | 
					
						
							| 
									
										
										
										
											2017-06-08 03:12:03 +08:00
										 |  |  |     {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_UNSUPPORTED_NUMBER_OF_ROUNDS), | 
					
						
							|  |  |  |     "unsupported number of rounds"}, | 
					
						
							|  |  |  |     {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_UNSUPPORTED_PRF), "unsupported prf"}, | 
					
						
							|  |  |  |     {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_UNSUPPORTED_PRIVATE_KEY_ALGORITHM), | 
					
						
							|  |  |  |     "unsupported private key algorithm"}, | 
					
						
							|  |  |  |     {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_UNSUPPORTED_SALT_TYPE), | 
					
						
							|  |  |  |     "unsupported salt type"}, | 
					
						
							| 
									
										
										
										
											2019-03-14 00:17:17 +08:00
										 |  |  |     {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_UPDATE_ERROR), "update error"}, | 
					
						
							| 
									
										
										
										
											2017-06-08 03:12:03 +08:00
										 |  |  |     {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_WRAP_MODE_NOT_ALLOWED), | 
					
						
							|  |  |  |     "wrap mode not allowed"}, | 
					
						
							|  |  |  |     {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_WRONG_FINAL_BLOCK_LENGTH), | 
					
						
							|  |  |  |     "wrong final block length"}, | 
					
						
							| 
									
										
										
										
											2019-04-03 14:03:46 +08:00
										 |  |  |     {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_XTS_DATA_UNIT_IS_TOO_LARGE), | 
					
						
							|  |  |  |     "xts data unit is too large"}, | 
					
						
							| 
									
										
										
										
											2019-04-01 08:04:57 +08:00
										 |  |  |     {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_XTS_DUPLICATED_KEYS), | 
					
						
							|  |  |  |     "xts duplicated keys"}, | 
					
						
							| 
									
										
										
										
											2015-01-22 11:40:55 +08:00
										 |  |  |     {0, NULL} | 
					
						
							|  |  |  | }; | 
					
						
							| 
									
										
										
										
											1998-12-21 18:52:47 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											1998-12-21 18:56:39 +08:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-05-25 10:04:22 +08:00
										 |  |  | int ossl_err_load_EVP_strings(void) | 
					
						
							| 
									
										
										
										
											2015-01-22 11:40:55 +08:00
										 |  |  | { | 
					
						
							| 
									
										
										
										
											2006-11-22 05:29:44 +08:00
										 |  |  | #ifndef OPENSSL_NO_ERR
 | 
					
						
							| 
									
										
										
										
											2019-09-05 03:45:56 +08:00
										 |  |  |     if (ERR_reason_error_string(EVP_str_reasons[0].error) == NULL) | 
					
						
							| 
									
										
										
										
											2017-06-08 03:12:03 +08:00
										 |  |  |         ERR_load_strings_const(EVP_str_reasons); | 
					
						
							| 
									
										
										
										
											2006-11-22 05:29:44 +08:00
										 |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											2016-07-12 21:50:06 +08:00
										 |  |  |     return 1; | 
					
						
							| 
									
										
										
										
											2015-01-22 11:40:55 +08:00
										 |  |  | } |