|
Packit Service |
084de1 |
/* crypto/fips_err.h */
|
|
Packit Service |
084de1 |
/* ====================================================================
|
|
Packit Service |
084de1 |
* Copyright (c) 1999-2011 The OpenSSL Project. All rights reserved.
|
|
Packit Service |
084de1 |
*
|
|
Packit Service |
084de1 |
* Redistribution and use in source and binary forms, with or without
|
|
Packit Service |
084de1 |
* modification, are permitted provided that the following conditions
|
|
Packit Service |
084de1 |
* are met:
|
|
Packit Service |
084de1 |
*
|
|
Packit Service |
084de1 |
* 1. Redistributions of source code must retain the above copyright
|
|
Packit Service |
084de1 |
* notice, this list of conditions and the following disclaimer.
|
|
Packit Service |
084de1 |
*
|
|
Packit Service |
084de1 |
* 2. Redistributions in binary form must reproduce the above copyright
|
|
Packit Service |
084de1 |
* notice, this list of conditions and the following disclaimer in
|
|
Packit Service |
084de1 |
* the documentation and/or other materials provided with the
|
|
Packit Service |
084de1 |
* distribution.
|
|
Packit Service |
084de1 |
*
|
|
Packit Service |
084de1 |
* 3. All advertising materials mentioning features or use of this
|
|
Packit Service |
084de1 |
* software must display the following acknowledgment:
|
|
Packit Service |
084de1 |
* "This product includes software developed by the OpenSSL Project
|
|
Packit Service |
084de1 |
* for use in the OpenSSL Toolkit. (http://www.OpenSSL.org/)"
|
|
Packit Service |
084de1 |
*
|
|
Packit Service |
084de1 |
* 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to
|
|
Packit Service |
084de1 |
* endorse or promote products derived from this software without
|
|
Packit Service |
084de1 |
* prior written permission. For written permission, please contact
|
|
Packit Service |
084de1 |
* openssl-core@OpenSSL.org.
|
|
Packit Service |
084de1 |
*
|
|
Packit Service |
084de1 |
* 5. Products derived from this software may not be called "OpenSSL"
|
|
Packit Service |
084de1 |
* nor may "OpenSSL" appear in their names without prior written
|
|
Packit Service |
084de1 |
* permission of the OpenSSL Project.
|
|
Packit Service |
084de1 |
*
|
|
Packit Service |
084de1 |
* 6. Redistributions of any form whatsoever must retain the following
|
|
Packit Service |
084de1 |
* acknowledgment:
|
|
Packit Service |
084de1 |
* "This product includes software developed by the OpenSSL Project
|
|
Packit Service |
084de1 |
* for use in the OpenSSL Toolkit (http://www.OpenSSL.org/)"
|
|
Packit Service |
084de1 |
*
|
|
Packit Service |
084de1 |
* THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY
|
|
Packit Service |
084de1 |
* EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
Packit Service |
084de1 |
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
|
Packit Service |
084de1 |
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR
|
|
Packit Service |
084de1 |
* ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
Packit Service |
084de1 |
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
|
Packit Service |
084de1 |
* NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
|
Packit Service |
084de1 |
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
|
Packit Service |
084de1 |
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
|
|
Packit Service |
084de1 |
* STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
|
Packit Service |
084de1 |
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
|
|
Packit Service |
084de1 |
* OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
Packit Service |
084de1 |
* ====================================================================
|
|
Packit Service |
084de1 |
*
|
|
Packit Service |
084de1 |
* This product includes cryptographic software written by Eric Young
|
|
Packit Service |
084de1 |
* (eay@cryptsoft.com). This product includes software written by Tim
|
|
Packit Service |
084de1 |
* Hudson (tjh@cryptsoft.com).
|
|
Packit Service |
084de1 |
*
|
|
Packit Service |
084de1 |
*/
|
|
Packit Service |
084de1 |
|
|
Packit Service |
084de1 |
/*
|
|
Packit Service |
084de1 |
* NOTE: this file was auto generated by the mkerr.pl script: any changes
|
|
Packit Service |
084de1 |
* made to it will be overwritten when the script next updates this file,
|
|
Packit Service |
084de1 |
* only reason strings will be preserved.
|
|
Packit Service |
084de1 |
*/
|
|
Packit Service |
084de1 |
|
|
Packit Service |
084de1 |
#include <stdio.h>
|
|
Packit Service |
084de1 |
#include <openssl/err.h>
|
|
Packit Service |
084de1 |
#include <openssl/fips.h>
|
|
Packit Service |
084de1 |
|
|
Packit Service |
084de1 |
/* BEGIN ERROR CODES */
|
|
Packit Service |
084de1 |
#ifndef OPENSSL_NO_ERR
|
|
Packit Service |
084de1 |
|
|
Packit Service |
084de1 |
# define ERR_FUNC(func) ERR_PACK(ERR_LIB_FIPS,func,0)
|
|
Packit Service |
084de1 |
# define ERR_REASON(reason) ERR_PACK(ERR_LIB_FIPS,0,reason)
|
|
Packit Service |
084de1 |
|
|
Packit Service |
084de1 |
static ERR_STRING_DATA FIPS_str_functs[] = {
|
|
Packit Service |
084de1 |
{ERR_FUNC(FIPS_F_DH_BUILTIN_GENPARAMS), "dh_builtin_genparams"},
|
|
Packit Service |
084de1 |
{ERR_FUNC(FIPS_F_DRBG_RESEED), "drbg_reseed"},
|
|
Packit Service |
084de1 |
{ERR_FUNC(FIPS_F_DSA_BUILTIN_PARAMGEN2), "dsa_builtin_paramgen2"},
|
|
Packit Service |
084de1 |
{ERR_FUNC(FIPS_F_DSA_DO_SIGN), "DSA_do_sign"},
|
|
Packit Service |
084de1 |
{ERR_FUNC(FIPS_F_DSA_DO_VERIFY), "DSA_do_verify"},
|
|
Packit Service |
084de1 |
{ERR_FUNC(FIPS_F_ECDH_COMPUTE_KEY), "ECDH_compute_key"},
|
|
Packit Service |
084de1 |
{ERR_FUNC(FIPS_F_EVP_CIPHER_CTX_NEW), "EVP_CIPHER_CTX_new"},
|
|
Packit Service |
084de1 |
{ERR_FUNC(FIPS_F_EVP_CIPHER_CTX_RESET), "EVP_CIPHER_CTX_reset"},
|
|
Packit Service |
084de1 |
{ERR_FUNC(FIPS_F_FIPS_CHECK_DSA), "fips_check_dsa"},
|
|
Packit Service |
084de1 |
{ERR_FUNC(FIPS_F_FIPS_CHECK_EC), "fips_check_ec"},
|
|
Packit Service |
084de1 |
{ERR_FUNC(FIPS_F_FIPS_CHECK_RSA), "fips_check_rsa"},
|
|
Packit Service |
084de1 |
{ERR_FUNC(FIPS_F_FIPS_DRBG_BYTES), "fips_drbg_bytes"},
|
|
Packit Service |
084de1 |
{ERR_FUNC(FIPS_F_FIPS_DRBG_CHECK), "fips_drbg_check"},
|
|
Packit Service |
084de1 |
{ERR_FUNC(FIPS_F_FIPS_DRBG_CPRNG_TEST), "fips_drbg_cprng_test"},
|
|
Packit Service |
084de1 |
{ERR_FUNC(FIPS_F_FIPS_DRBG_ERROR_CHECK), "fips_drbg_error_check"},
|
|
Packit Service |
084de1 |
{ERR_FUNC(FIPS_F_FIPS_DRBG_GENERATE), "FIPS_drbg_generate"},
|
|
Packit Service |
084de1 |
{ERR_FUNC(FIPS_F_FIPS_DRBG_INIT), "FIPS_drbg_init"},
|
|
Packit Service |
084de1 |
{ERR_FUNC(FIPS_F_FIPS_DRBG_INSTANTIATE), "FIPS_drbg_instantiate"},
|
|
Packit Service |
084de1 |
{ERR_FUNC(FIPS_F_FIPS_DRBG_NEW), "FIPS_drbg_new"},
|
|
Packit Service |
084de1 |
{ERR_FUNC(FIPS_F_FIPS_DRBG_RESEED), "FIPS_drbg_reseed"},
|
|
Packit Service |
084de1 |
{ERR_FUNC(FIPS_F_FIPS_DRBG_SINGLE_KAT), "FIPS_DRBG_SINGLE_KAT"},
|
|
Packit Service |
084de1 |
{ERR_FUNC(FIPS_F_FIPS_GET_ENTROPY), "fips_get_entropy"},
|
|
Packit Service |
084de1 |
{ERR_FUNC(FIPS_F_FIPS_MODULE_MODE_SET), "FIPS_module_mode_set"},
|
|
Packit Service |
084de1 |
{ERR_FUNC(FIPS_F_FIPS_PKEY_SIGNATURE_TEST), "fips_pkey_signature_test"},
|
|
Packit Service |
084de1 |
{ERR_FUNC(FIPS_F_FIPS_RAND_BYTES), "FIPS_rand_bytes"},
|
|
Packit Service |
084de1 |
{ERR_FUNC(FIPS_F_FIPS_RAND_SEED), "FIPS_rand_seed"},
|
|
Packit Service |
084de1 |
{ERR_FUNC(FIPS_F_FIPS_RAND_SET_METHOD), "FIPS_rand_set_method"},
|
|
Packit Service |
084de1 |
{ERR_FUNC(FIPS_F_FIPS_RAND_STATUS), "FIPS_rand_status"},
|
|
Packit Service |
084de1 |
{ERR_FUNC(FIPS_F_FIPS_RSA_BUILTIN_KEYGEN), "fips_rsa_builtin_keygen"},
|
|
Packit Service |
084de1 |
{ERR_FUNC(FIPS_F_FIPS_SELFTEST), "FIPS_selftest"},
|
|
Packit Service |
084de1 |
{ERR_FUNC(FIPS_F_FIPS_SELFTEST_AES), "FIPS_selftest_aes"},
|
|
Packit Service |
084de1 |
{ERR_FUNC(FIPS_F_FIPS_SELFTEST_AES_CCM), "FIPS_selftest_aes_ccm"},
|
|
Packit Service |
084de1 |
{ERR_FUNC(FIPS_F_FIPS_SELFTEST_AES_GCM), "FIPS_selftest_aes_gcm"},
|
|
Packit Service |
084de1 |
{ERR_FUNC(FIPS_F_FIPS_SELFTEST_AES_XTS), "FIPS_selftest_aes_xts"},
|
|
Packit Service |
084de1 |
{ERR_FUNC(FIPS_F_FIPS_SELFTEST_CMAC), "FIPS_selftest_cmac"},
|
|
Packit Service |
084de1 |
{ERR_FUNC(FIPS_F_FIPS_SELFTEST_DES), "FIPS_selftest_des"},
|
|
Packit Service |
084de1 |
{ERR_FUNC(FIPS_F_FIPS_SELFTEST_DSA), "FIPS_selftest_dsa"},
|
|
Packit Service |
084de1 |
{ERR_FUNC(FIPS_F_FIPS_SELFTEST_ECDSA), "FIPS_selftest_ecdsa"},
|
|
Packit Service |
dd46e1 |
{ERR_FUNC(FIPS_F_FIPS_SELFTEST_HKDF), "FIPS_selftest_hkdf"},
|
|
Packit Service |
084de1 |
{ERR_FUNC(FIPS_F_FIPS_SELFTEST_HMAC), "FIPS_selftest_hmac"},
|
|
Packit Service |
dd46e1 |
{ERR_FUNC(FIPS_F_FIPS_SELFTEST_KBKDF), "FIPS_selftest_kbkdf"},
|
|
Packit Service |
dd46e1 |
{ERR_FUNC(FIPS_F_FIPS_SELFTEST_KRB5KDF), "FIPS_selftest_krb5kdf"},
|
|
Packit Service |
dd46e1 |
{ERR_FUNC(FIPS_F_FIPS_SELFTEST_PBKDF2), "FIPS_selftest_pbkdf2"},
|
|
Packit Service |
084de1 |
{ERR_FUNC(FIPS_F_FIPS_SELFTEST_SHA1), "FIPS_selftest_sha1"},
|
|
Packit Service |
084de1 |
{ERR_FUNC(FIPS_F_FIPS_SELFTEST_SHA2), "FIPS_selftest_sha2"},
|
|
Packit Service |
dd46e1 |
{ERR_FUNC(FIPS_F_FIPS_SELFTEST_SSHKDF), "FIPS_selftest_sshkdf"},
|
|
Packit Service |
dd46e1 |
{ERR_FUNC(FIPS_F_FIPS_SELFTEST_SSKDF), "FIPS_selftest_sskdf"},
|
|
Packit Service |
dd46e1 |
{ERR_FUNC(FIPS_F_FIPS_SELFTEST_TLS1_PRF), "FIPS_selftest_tls1_prf"},
|
|
Packit Service |
084de1 |
{ERR_FUNC(FIPS_F_OSSL_ECDSA_SIGN_SIG), "ossl_ecdsa_sign_sig"},
|
|
Packit Service |
084de1 |
{ERR_FUNC(FIPS_F_OSSL_ECDSA_VERIFY_SIG), "ossl_ecdsa_verify_sig"},
|
|
Packit Service |
084de1 |
{ERR_FUNC(FIPS_F_RSA_BUILTIN_KEYGEN), "rsa_builtin_keygen"},
|
|
Packit Service |
084de1 |
{ERR_FUNC(FIPS_F_RSA_OSSL_INIT), "rsa_ossl_init"},
|
|
Packit Service |
084de1 |
{ERR_FUNC(FIPS_F_RSA_OSSL_PRIVATE_DECRYPT), "rsa_ossl_private_decrypt"},
|
|
Packit Service |
084de1 |
{ERR_FUNC(FIPS_F_RSA_OSSL_PRIVATE_ENCRYPT), "rsa_ossl_private_encrypt"},
|
|
Packit Service |
084de1 |
{ERR_FUNC(FIPS_F_RSA_OSSL_PUBLIC_DECRYPT), "rsa_ossl_public_decrypt"},
|
|
Packit Service |
084de1 |
{ERR_FUNC(FIPS_F_RSA_OSSL_PUBLIC_ENCRYPT), "rsa_ossl_public_encrypt"},
|
|
Packit Service |
084de1 |
{0, NULL}
|
|
Packit Service |
084de1 |
};
|
|
Packit Service |
084de1 |
|
|
Packit Service |
084de1 |
static ERR_STRING_DATA FIPS_str_reasons[] = {
|
|
Packit Service |
084de1 |
{ERR_REASON(FIPS_R_ADDITIONAL_INPUT_ERROR_UNDETECTED),
|
|
Packit Service |
084de1 |
"additional input error undetected"},
|
|
Packit Service |
084de1 |
{ERR_REASON(FIPS_R_ADDITIONAL_INPUT_TOO_LONG),
|
|
Packit Service |
084de1 |
"additional input too long"},
|
|
Packit Service |
084de1 |
{ERR_REASON(FIPS_R_ALREADY_INSTANTIATED), "already instantiated"},
|
|
Packit Service |
084de1 |
{ERR_REASON(FIPS_R_DRBG_NOT_INITIALISED), "drbg not initialised"},
|
|
Packit Service |
084de1 |
{ERR_REASON(FIPS_R_DRBG_STUCK), "drbg stuck"},
|
|
Packit Service |
084de1 |
{ERR_REASON(FIPS_R_ENTROPY_ERROR_UNDETECTED), "entropy error undetected"},
|
|
Packit Service |
084de1 |
{ERR_REASON(FIPS_R_ENTROPY_NOT_REQUESTED_FOR_RESEED),
|
|
Packit Service |
084de1 |
"entropy not requested for reseed"},
|
|
Packit Service |
084de1 |
{ERR_REASON(FIPS_R_ENTROPY_SOURCE_STUCK), "entropy source stuck"},
|
|
Packit Service |
084de1 |
{ERR_REASON(FIPS_R_ERROR_INITIALISING_DRBG), "error initialising drbg"},
|
|
Packit Service |
084de1 |
{ERR_REASON(FIPS_R_ERROR_INSTANTIATING_DRBG), "error instantiating drbg"},
|
|
Packit Service |
084de1 |
{ERR_REASON(FIPS_R_ERROR_RETRIEVING_ADDITIONAL_INPUT),
|
|
Packit Service |
084de1 |
"error retrieving additional input"},
|
|
Packit Service |
084de1 |
{ERR_REASON(FIPS_R_ERROR_RETRIEVING_ENTROPY), "error retrieving entropy"},
|
|
Packit Service |
084de1 |
{ERR_REASON(FIPS_R_ERROR_RETRIEVING_NONCE), "error retrieving nonce"},
|
|
Packit Service |
084de1 |
{ERR_REASON(FIPS_R_FINGERPRINT_DOES_NOT_MATCH),
|
|
Packit Service |
084de1 |
"fingerprint does not match"},
|
|
Packit Service |
084de1 |
{ERR_REASON(FIPS_R_FIPS_MODE_ALREADY_SET), "fips mode already set"},
|
|
Packit Service |
084de1 |
{ERR_REASON(FIPS_R_FIPS_SELFTEST_FAILED), "fips selftest failed"},
|
|
Packit Service |
084de1 |
{ERR_REASON(FIPS_R_FUNCTION_ERROR), "function error"},
|
|
Packit Service |
084de1 |
{ERR_REASON(FIPS_R_GENERATE_ERROR), "generate error"},
|
|
Packit Service |
084de1 |
{ERR_REASON(FIPS_R_GENERATE_ERROR_UNDETECTED),
|
|
Packit Service |
084de1 |
"generate error undetected"},
|
|
Packit Service |
084de1 |
{ERR_REASON(FIPS_R_INSTANTIATE_ERROR), "instantiate error"},
|
|
Packit Service |
084de1 |
{ERR_REASON(FIPS_R_INTERNAL_ERROR), "internal error"},
|
|
Packit Service |
084de1 |
{ERR_REASON(FIPS_R_INVALID_KEY_LENGTH), "invalid key length"},
|
|
Packit Service |
084de1 |
{ERR_REASON(FIPS_R_IN_ERROR_STATE), "in error state"},
|
|
Packit Service |
084de1 |
{ERR_REASON(FIPS_R_KEY_TOO_SHORT), "key too short"},
|
|
Packit Service |
084de1 |
{ERR_REASON(FIPS_R_NONCE_ERROR_UNDETECTED), "nonce error undetected"},
|
|
Packit Service |
084de1 |
{ERR_REASON(FIPS_R_NON_FIPS_METHOD), "non fips method"},
|
|
Packit Service |
084de1 |
{ERR_REASON(FIPS_R_NOPR_TEST1_FAILURE), "nopr test1 failure"},
|
|
Packit Service |
084de1 |
{ERR_REASON(FIPS_R_NOPR_TEST2_FAILURE), "nopr test2 failure"},
|
|
Packit Service |
084de1 |
{ERR_REASON(FIPS_R_NOT_INSTANTIATED), "not instantiated"},
|
|
Packit Service |
084de1 |
{ERR_REASON(FIPS_R_PAIRWISE_TEST_FAILED), "pairwise test failed"},
|
|
Packit Service |
084de1 |
{ERR_REASON(FIPS_R_PERSONALISATION_ERROR_UNDETECTED),
|
|
Packit Service |
084de1 |
"personalisation error undetected"},
|
|
Packit Service |
084de1 |
{ERR_REASON(FIPS_R_PERSONALISATION_STRING_TOO_LONG),
|
|
Packit Service |
084de1 |
"personalisation string too long"},
|
|
Packit Service |
084de1 |
{ERR_REASON(FIPS_R_PR_TEST1_FAILURE), "pr test1 failure"},
|
|
Packit Service |
084de1 |
{ERR_REASON(FIPS_R_PR_TEST2_FAILURE), "pr test2 failure"},
|
|
Packit Service |
084de1 |
{ERR_REASON(FIPS_R_REQUEST_LENGTH_ERROR_UNDETECTED),
|
|
Packit Service |
084de1 |
"request length error undetected"},
|
|
Packit Service |
084de1 |
{ERR_REASON(FIPS_R_REQUEST_TOO_LARGE_FOR_DRBG),
|
|
Packit Service |
084de1 |
"request too large for drbg"},
|
|
Packit Service |
084de1 |
{ERR_REASON(FIPS_R_RESEED_COUNTER_ERROR), "reseed counter error"},
|
|
Packit Service |
084de1 |
{ERR_REASON(FIPS_R_RESEED_ERROR), "reseed error"},
|
|
Packit Service |
084de1 |
{ERR_REASON(FIPS_R_SELFTEST_FAILED), "selftest failed"},
|
|
Packit Service |
084de1 |
{ERR_REASON(FIPS_R_SELFTEST_FAILURE), "selftest failure"},
|
|
Packit Service |
084de1 |
{ERR_REASON(FIPS_R_TEST_FAILURE), "test failure"},
|
|
Packit Service |
084de1 |
{ERR_REASON(FIPS_R_UNINSTANTIATE_ERROR), "uninstantiate error"},
|
|
Packit Service |
084de1 |
{ERR_REASON(FIPS_R_UNINSTANTIATE_ZEROISE_ERROR),
|
|
Packit Service |
084de1 |
"uninstantiate zeroise error"},
|
|
Packit Service |
084de1 |
{ERR_REASON(FIPS_R_UNSUPPORTED_DRBG_TYPE), "unsupported drbg type"},
|
|
Packit Service |
084de1 |
{ERR_REASON(FIPS_R_UNSUPPORTED_PLATFORM), "unsupported platform"},
|
|
Packit Service |
084de1 |
{0, NULL}
|
|
Packit Service |
084de1 |
};
|
|
Packit Service |
084de1 |
|
|
Packit Service |
084de1 |
#endif
|
|
Packit Service |
084de1 |
|
|
Packit Service |
084de1 |
int ERR_load_FIPS_strings(void)
|
|
Packit Service |
084de1 |
{
|
|
Packit Service |
084de1 |
#ifndef OPENSSL_NO_ERR
|
|
Packit Service |
084de1 |
|
|
Packit Service |
084de1 |
if (ERR_func_error_string(FIPS_str_functs[0].error) == NULL) {
|
|
Packit Service |
084de1 |
ERR_load_strings(0, FIPS_str_functs);
|
|
Packit Service |
084de1 |
ERR_load_strings(0, FIPS_str_reasons);
|
|
Packit Service |
084de1 |
}
|
|
Packit Service |
084de1 |
#endif
|
|
Packit Service |
084de1 |
return 1;
|
|
Packit Service |
084de1 |
}
|