/src/openssl32/crypto/bn/bn_err.c
Line | Count | Source |
1 | | /* |
2 | | * Generated by util/mkerr.pl DO NOT EDIT |
3 | | * Copyright 1995-2022 The OpenSSL Project Authors. All Rights Reserved. |
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> |
12 | | #include <openssl/bnerr.h> |
13 | | #include "crypto/bnerr.h" |
14 | | |
15 | | #ifndef OPENSSL_NO_ERR |
16 | | |
17 | | static const ERR_STRING_DATA BN_str_reasons[] = { |
18 | | {ERR_PACK(ERR_LIB_BN, 0, BN_R_ARG2_LT_ARG3), "arg2 lt arg3"}, |
19 | | {ERR_PACK(ERR_LIB_BN, 0, BN_R_BAD_RECIPROCAL), "bad reciprocal"}, |
20 | | {ERR_PACK(ERR_LIB_BN, 0, BN_R_BIGNUM_TOO_LONG), "bignum too long"}, |
21 | | {ERR_PACK(ERR_LIB_BN, 0, BN_R_BITS_TOO_SMALL), "bits too small"}, |
22 | | {ERR_PACK(ERR_LIB_BN, 0, BN_R_CALLED_WITH_EVEN_MODULUS), |
23 | | "called with even modulus"}, |
24 | | {ERR_PACK(ERR_LIB_BN, 0, BN_R_DIV_BY_ZERO), "div by zero"}, |
25 | | {ERR_PACK(ERR_LIB_BN, 0, BN_R_ENCODING_ERROR), "encoding error"}, |
26 | | {ERR_PACK(ERR_LIB_BN, 0, BN_R_EXPAND_ON_STATIC_BIGNUM_DATA), |
27 | | "expand on static bignum data"}, |
28 | | {ERR_PACK(ERR_LIB_BN, 0, BN_R_INPUT_NOT_REDUCED), "input not reduced"}, |
29 | | {ERR_PACK(ERR_LIB_BN, 0, BN_R_INVALID_LENGTH), "invalid length"}, |
30 | | {ERR_PACK(ERR_LIB_BN, 0, BN_R_INVALID_RANGE), "invalid range"}, |
31 | | {ERR_PACK(ERR_LIB_BN, 0, BN_R_INVALID_SHIFT), "invalid shift"}, |
32 | | {ERR_PACK(ERR_LIB_BN, 0, BN_R_NOT_A_SQUARE), "not a square"}, |
33 | | {ERR_PACK(ERR_LIB_BN, 0, BN_R_NOT_INITIALIZED), "not initialized"}, |
34 | | {ERR_PACK(ERR_LIB_BN, 0, BN_R_NO_INVERSE), "no inverse"}, |
35 | | {ERR_PACK(ERR_LIB_BN, 0, BN_R_NO_PRIME_CANDIDATE), "no prime candidate"}, |
36 | | {ERR_PACK(ERR_LIB_BN, 0, BN_R_NO_SOLUTION), "no solution"}, |
37 | | {ERR_PACK(ERR_LIB_BN, 0, BN_R_NO_SUITABLE_DIGEST), "no suitable digest"}, |
38 | | {ERR_PACK(ERR_LIB_BN, 0, BN_R_PRIVATE_KEY_TOO_LARGE), |
39 | | "private key too large"}, |
40 | | {ERR_PACK(ERR_LIB_BN, 0, BN_R_P_IS_NOT_PRIME), "p is not prime"}, |
41 | | {ERR_PACK(ERR_LIB_BN, 0, BN_R_TOO_MANY_ITERATIONS), "too many iterations"}, |
42 | | {ERR_PACK(ERR_LIB_BN, 0, BN_R_TOO_MANY_TEMPORARY_VARIABLES), |
43 | | "too many temporary variables"}, |
44 | | {0, NULL} |
45 | | }; |
46 | | |
47 | | #endif |
48 | | |
49 | | int ossl_err_load_BN_strings(void) |
50 | 133 | { |
51 | 133 | #ifndef OPENSSL_NO_ERR |
52 | 133 | if (ERR_reason_error_string(BN_str_reasons[0].error) == NULL) |
53 | 133 | ERR_load_strings_const(BN_str_reasons); |
54 | 133 | #endif |
55 | 133 | return 1; |
56 | 133 | } |