bn_err.c revision e915367e40b579d18ac13c9c58c15fec614d9890
75b8de87879ad017c9cd2ffc328e5d2391d16e99Evan Hunt#include "../rename.h"
75b8de87879ad017c9cd2ffc328e5d2391d16e99Evan Hunt/* crypto/bn/bn_err.c */
6bb1560124ce99fe50b9847ce29fcaed52564900Automatic Updater/* ====================================================================
75b8de87879ad017c9cd2ffc328e5d2391d16e99Evan Hunt * Copyright (c) 1999 The OpenSSL Project. All rights reserved.
75b8de87879ad017c9cd2ffc328e5d2391d16e99Evan Hunt *
75b8de87879ad017c9cd2ffc328e5d2391d16e99Evan Hunt * Redistribution and use in source and binary forms, with or without
75b8de87879ad017c9cd2ffc328e5d2391d16e99Evan Hunt * modification, are permitted provided that the following conditions
75b8de87879ad017c9cd2ffc328e5d2391d16e99Evan Hunt * are met:
75b8de87879ad017c9cd2ffc328e5d2391d16e99Evan Hunt *
75b8de87879ad017c9cd2ffc328e5d2391d16e99Evan Hunt * 1. Redistributions of source code must retain the above copyright
75b8de87879ad017c9cd2ffc328e5d2391d16e99Evan Hunt * notice, this list of conditions and the following disclaimer.
75b8de87879ad017c9cd2ffc328e5d2391d16e99Evan Hunt *
75b8de87879ad017c9cd2ffc328e5d2391d16e99Evan Hunt * 2. Redistributions in binary form must reproduce the above copyright
75b8de87879ad017c9cd2ffc328e5d2391d16e99Evan Hunt * notice, this list of conditions and the following disclaimer in
75b8de87879ad017c9cd2ffc328e5d2391d16e99Evan Hunt * the documentation and/or other materials provided with the
75b8de87879ad017c9cd2ffc328e5d2391d16e99Evan Hunt * distribution.
bbedadf76ab670b01887fb9b41097120ea4fdf14Evan Hunt *
75b8de87879ad017c9cd2ffc328e5d2391d16e99Evan Hunt * 3. All advertising materials mentioning features or use of this
75b8de87879ad017c9cd2ffc328e5d2391d16e99Evan Hunt * software must display the following acknowledgment:
75b8de87879ad017c9cd2ffc328e5d2391d16e99Evan Hunt * "This product includes software developed by the OpenSSL Project
75b8de87879ad017c9cd2ffc328e5d2391d16e99Evan Hunt * for use in the OpenSSL Toolkit. (http://www.OpenSSL.org/)"
bbedadf76ab670b01887fb9b41097120ea4fdf14Evan Hunt *
bbedadf76ab670b01887fb9b41097120ea4fdf14Evan Hunt * 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to
75b8de87879ad017c9cd2ffc328e5d2391d16e99Evan Hunt * endorse or promote products derived from this software without
75b8de87879ad017c9cd2ffc328e5d2391d16e99Evan Hunt * prior written permission. For written permission, please contact
75b8de87879ad017c9cd2ffc328e5d2391d16e99Evan Hunt * openssl-core@OpenSSL.org.
75b8de87879ad017c9cd2ffc328e5d2391d16e99Evan Hunt *
75b8de87879ad017c9cd2ffc328e5d2391d16e99Evan Hunt * 5. Products derived from this software may not be called "OpenSSL"
e24ccb512c110d181e01f977196e518b0e72e451Mark Andrews * nor may "OpenSSL" appear in their names without prior written
e24ccb512c110d181e01f977196e518b0e72e451Mark Andrews * permission of the OpenSSL Project.
e24ccb512c110d181e01f977196e518b0e72e451Mark Andrews *
e24ccb512c110d181e01f977196e518b0e72e451Mark Andrews * 6. Redistributions of any form whatsoever must retain the following
e24ccb512c110d181e01f977196e518b0e72e451Mark Andrews * acknowledgment:
e24ccb512c110d181e01f977196e518b0e72e451Mark Andrews * "This product includes software developed by the OpenSSL Project
e24ccb512c110d181e01f977196e518b0e72e451Mark Andrews * for use in the OpenSSL Toolkit (http://www.OpenSSL.org/)"
e24ccb512c110d181e01f977196e518b0e72e451Mark Andrews *
e24ccb512c110d181e01f977196e518b0e72e451Mark Andrews * THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY
e24ccb512c110d181e01f977196e518b0e72e451Mark Andrews * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
e24ccb512c110d181e01f977196e518b0e72e451Mark Andrews * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
e24ccb512c110d181e01f977196e518b0e72e451Mark Andrews * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR
e24ccb512c110d181e01f977196e518b0e72e451Mark Andrews * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
e24ccb512c110d181e01f977196e518b0e72e451Mark Andrews * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
e24ccb512c110d181e01f977196e518b0e72e451Mark Andrews * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
e24ccb512c110d181e01f977196e518b0e72e451Mark Andrews * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
e24ccb512c110d181e01f977196e518b0e72e451Mark Andrews * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
e24ccb512c110d181e01f977196e518b0e72e451Mark Andrews * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
e24ccb512c110d181e01f977196e518b0e72e451Mark Andrews * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
e24ccb512c110d181e01f977196e518b0e72e451Mark Andrews * OF THE POSSIBILITY OF SUCH DAMAGE.
e24ccb512c110d181e01f977196e518b0e72e451Mark Andrews * ====================================================================
e24ccb512c110d181e01f977196e518b0e72e451Mark Andrews *
e24ccb512c110d181e01f977196e518b0e72e451Mark Andrews * This product includes cryptographic software written by Eric Young
e24ccb512c110d181e01f977196e518b0e72e451Mark Andrews * (eay@cryptsoft.com). This product includes software written by Tim
e24ccb512c110d181e01f977196e518b0e72e451Mark Andrews * Hudson (tjh@cryptsoft.com).
e24ccb512c110d181e01f977196e518b0e72e451Mark Andrews *
e11a0c114cdaf8f7e7832e9f1a011138248093a6Evan Hunt */
e24ccb512c110d181e01f977196e518b0e72e451Mark Andrews
e11a0c114cdaf8f7e7832e9f1a011138248093a6Evan Hunt/* NOTE: this file was auto generated by the mkerr.pl script: any changes
e11a0c114cdaf8f7e7832e9f1a011138248093a6Evan Hunt * made to it will be overwritten when the script next updates this file.
e11a0c114cdaf8f7e7832e9f1a011138248093a6Evan Hunt */
e11a0c114cdaf8f7e7832e9f1a011138248093a6Evan Hunt
e11a0c114cdaf8f7e7832e9f1a011138248093a6Evan Hunt#include <stdio.h>
e11a0c114cdaf8f7e7832e9f1a011138248093a6Evan Hunt#include <openssl/err.h>
e11a0c114cdaf8f7e7832e9f1a011138248093a6Evan Hunt#include <openssl/bn.h>
e11a0c114cdaf8f7e7832e9f1a011138248093a6Evan Hunt
e11a0c114cdaf8f7e7832e9f1a011138248093a6Evan Hunt/* BEGIN ERROR CODES */
e11a0c114cdaf8f7e7832e9f1a011138248093a6Evan Hunt#ifndef NO_ERR
e11a0c114cdaf8f7e7832e9f1a011138248093a6Evan Huntstatic ERR_STRING_DATA BN_str_functs[]=
e11a0c114cdaf8f7e7832e9f1a011138248093a6Evan Hunt {
e11a0c114cdaf8f7e7832e9f1a011138248093a6Evan Hunt{ERR_PACK(0,BN_F_BN_BLINDING_CONVERT,0), "BN_BLINDING_convert"},
e11a0c114cdaf8f7e7832e9f1a011138248093a6Evan Hunt{ERR_PACK(0,BN_F_BN_BLINDING_INVERT,0), "BN_BLINDING_invert"},
e11a0c114cdaf8f7e7832e9f1a011138248093a6Evan Hunt{ERR_PACK(0,BN_F_BN_BLINDING_NEW,0), "BN_BLINDING_new"},
e11a0c114cdaf8f7e7832e9f1a011138248093a6Evan Hunt{ERR_PACK(0,BN_F_BN_BLINDING_UPDATE,0), "BN_BLINDING_update"},
e11a0c114cdaf8f7e7832e9f1a011138248093a6Evan Hunt{ERR_PACK(0,BN_F_BN_BN2DEC,0), "BN_bn2dec"},
e11a0c114cdaf8f7e7832e9f1a011138248093a6Evan Hunt{ERR_PACK(0,BN_F_BN_BN2HEX,0), "BN_bn2hex"},
e11a0c114cdaf8f7e7832e9f1a011138248093a6Evan Hunt{ERR_PACK(0,BN_F_BN_CTX_GET,0), "BN_CTX_get"},
75b8de87879ad017c9cd2ffc328e5d2391d16e99Evan Hunt{ERR_PACK(0,BN_F_BN_CTX_NEW,0), "BN_CTX_new"},
e11a0c114cdaf8f7e7832e9f1a011138248093a6Evan Hunt{ERR_PACK(0,BN_F_BN_DIV,0), "BN_div"},
75b8de87879ad017c9cd2ffc328e5d2391d16e99Evan Hunt{ERR_PACK(0,BN_F_BN_EXPAND2,0), "bn_expand2"},
75b8de87879ad017c9cd2ffc328e5d2391d16e99Evan Hunt{ERR_PACK(0,BN_F_BN_MOD_EXP_MONT,0), "BN_mod_exp_mont"},
75b8de87879ad017c9cd2ffc328e5d2391d16e99Evan Hunt{ERR_PACK(0,BN_F_BN_MOD_INVERSE,0), "BN_mod_inverse"},
75b8de87879ad017c9cd2ffc328e5d2391d16e99Evan Hunt{ERR_PACK(0,BN_F_BN_MOD_MUL_RECIPROCAL,0), "BN_mod_mul_reciprocal"},
75b8de87879ad017c9cd2ffc328e5d2391d16e99Evan Hunt{ERR_PACK(0,BN_F_BN_MPI2BN,0), "BN_mpi2bn"},
75b8de87879ad017c9cd2ffc328e5d2391d16e99Evan Hunt{ERR_PACK(0,BN_F_BN_NEW,0), "BN_new"},
75b8de87879ad017c9cd2ffc328e5d2391d16e99Evan Hunt{ERR_PACK(0,BN_F_BN_RAND,0), "BN_rand"},
75b8de87879ad017c9cd2ffc328e5d2391d16e99Evan Hunt{ERR_PACK(0,BN_F_BN_USUB,0), "BN_usub"},
75b8de87879ad017c9cd2ffc328e5d2391d16e99Evan Hunt{0,NULL}
75b8de87879ad017c9cd2ffc328e5d2391d16e99Evan Hunt };
75b8de87879ad017c9cd2ffc328e5d2391d16e99Evan Hunt
75b8de87879ad017c9cd2ffc328e5d2391d16e99Evan Huntstatic ERR_STRING_DATA BN_str_reasons[]=
75b8de87879ad017c9cd2ffc328e5d2391d16e99Evan Hunt {
75b8de87879ad017c9cd2ffc328e5d2391d16e99Evan Hunt{BN_R_ARG2_LT_ARG3 ,"arg2 lt arg3"},
75b8de87879ad017c9cd2ffc328e5d2391d16e99Evan Hunt{BN_R_BAD_RECIPROCAL ,"bad reciprocal"},
75b8de87879ad017c9cd2ffc328e5d2391d16e99Evan Hunt{BN_R_CALLED_WITH_EVEN_MODULUS ,"called with even modulus"},
75b8de87879ad017c9cd2ffc328e5d2391d16e99Evan Hunt{BN_R_DIV_BY_ZERO ,"div by zero"},
75b8de87879ad017c9cd2ffc328e5d2391d16e99Evan Hunt{BN_R_ENCODING_ERROR ,"encoding error"},
75b8de87879ad017c9cd2ffc328e5d2391d16e99Evan Hunt{BN_R_EXPAND_ON_STATIC_BIGNUM_DATA ,"expand on static bignum data"},
75b8de87879ad017c9cd2ffc328e5d2391d16e99Evan Hunt{BN_R_INVALID_LENGTH ,"invalid length"},
75b8de87879ad017c9cd2ffc328e5d2391d16e99Evan Hunt{BN_R_NOT_INITIALIZED ,"not initialized"},
e11a0c114cdaf8f7e7832e9f1a011138248093a6Evan Hunt{BN_R_NO_INVERSE ,"no inverse"},
e11a0c114cdaf8f7e7832e9f1a011138248093a6Evan Hunt{BN_R_TOO_MANY_TEMPORARY_VARIABLES ,"too many temporary variables"},
e11a0c114cdaf8f7e7832e9f1a011138248093a6Evan Hunt{0,NULL}
e11a0c114cdaf8f7e7832e9f1a011138248093a6Evan Hunt };
e11a0c114cdaf8f7e7832e9f1a011138248093a6Evan Hunt
e11a0c114cdaf8f7e7832e9f1a011138248093a6Evan Hunt#endif
e11a0c114cdaf8f7e7832e9f1a011138248093a6Evan Hunt
e11a0c114cdaf8f7e7832e9f1a011138248093a6Evan Huntvoid ERR_load_BN_strings(void)
e11a0c114cdaf8f7e7832e9f1a011138248093a6Evan Hunt {
e11a0c114cdaf8f7e7832e9f1a011138248093a6Evan Hunt static int init=1;
e11a0c114cdaf8f7e7832e9f1a011138248093a6Evan Hunt
e11a0c114cdaf8f7e7832e9f1a011138248093a6Evan Hunt if (init)
e11a0c114cdaf8f7e7832e9f1a011138248093a6Evan Hunt {
e11a0c114cdaf8f7e7832e9f1a011138248093a6Evan Hunt init=0;
e11a0c114cdaf8f7e7832e9f1a011138248093a6Evan Hunt#ifndef NO_ERR
e11a0c114cdaf8f7e7832e9f1a011138248093a6Evan Hunt ERR_load_strings(ERR_LIB_BN,BN_str_functs);
e11a0c114cdaf8f7e7832e9f1a011138248093a6Evan Hunt ERR_load_strings(ERR_LIB_BN,BN_str_reasons);
e11a0c114cdaf8f7e7832e9f1a011138248093a6Evan Hunt#endif
e11a0c114cdaf8f7e7832e9f1a011138248093a6Evan Hunt
e11a0c114cdaf8f7e7832e9f1a011138248093a6Evan Hunt }
e11a0c114cdaf8f7e7832e9f1a011138248093a6Evan Hunt }
75b8de87879ad017c9cd2ffc328e5d2391d16e99Evan Hunt