Line | Source | Count |
1 | | - |
2 | | - |
3 | | - |
4 | | - |
5 | | - |
6 | | - |
7 | | - |
8 | | - |
9 | | - |
10 | | - |
11 | #include <openssl/err.h> | - |
12 | #include <openssl/dsaerr.h> | - |
13 | | - |
14 | #ifndef OPENSSL_NO_ERR | - |
15 | | - |
16 | static const ERR_STRING_DATA DSA_str_functs[] = { | - |
17 | {ERR_PACK(ERR_LIB_DSA, DSA_F_DSAPARAMS_PRINT, 0), "DSAparams_print"}, | - |
18 | {ERR_PACK(ERR_LIB_DSA, DSA_F_DSAPARAMS_PRINT_FP, 0), "DSAparams_print_fp"}, | - |
19 | {ERR_PACK(ERR_LIB_DSA, DSA_F_DSA_BUILTIN_PARAMGEN, 0), | - |
20 | "dsa_builtin_paramgen"}, | - |
21 | {ERR_PACK(ERR_LIB_DSA, DSA_F_DSA_BUILTIN_PARAMGEN2, 0), | - |
22 | "dsa_builtin_paramgen2"}, | - |
23 | {ERR_PACK(ERR_LIB_DSA, DSA_F_DSA_DO_SIGN, 0), "DSA_do_sign"}, | - |
24 | {ERR_PACK(ERR_LIB_DSA, DSA_F_DSA_DO_VERIFY, 0), "DSA_do_verify"}, | - |
25 | {ERR_PACK(ERR_LIB_DSA, DSA_F_DSA_METH_DUP, 0), "DSA_meth_dup"}, | - |
26 | {ERR_PACK(ERR_LIB_DSA, DSA_F_DSA_METH_NEW, 0), "DSA_meth_new"}, | - |
27 | {ERR_PACK(ERR_LIB_DSA, DSA_F_DSA_METH_SET1_NAME, 0), "DSA_meth_set1_name"}, | - |
28 | {ERR_PACK(ERR_LIB_DSA, DSA_F_DSA_NEW_METHOD, 0), "DSA_new_method"}, | - |
29 | {ERR_PACK(ERR_LIB_DSA, DSA_F_DSA_PARAM_DECODE, 0), "dsa_param_decode"}, | - |
30 | {ERR_PACK(ERR_LIB_DSA, DSA_F_DSA_PRINT_FP, 0), "DSA_print_fp"}, | - |
31 | {ERR_PACK(ERR_LIB_DSA, DSA_F_DSA_PRIV_DECODE, 0), "dsa_priv_decode"}, | - |
32 | {ERR_PACK(ERR_LIB_DSA, DSA_F_DSA_PRIV_ENCODE, 0), "dsa_priv_encode"}, | - |
33 | {ERR_PACK(ERR_LIB_DSA, DSA_F_DSA_PUB_DECODE, 0), "dsa_pub_decode"}, | - |
34 | {ERR_PACK(ERR_LIB_DSA, DSA_F_DSA_PUB_ENCODE, 0), "dsa_pub_encode"}, | - |
35 | {ERR_PACK(ERR_LIB_DSA, DSA_F_DSA_SIGN, 0), "DSA_sign"}, | - |
36 | {ERR_PACK(ERR_LIB_DSA, DSA_F_DSA_SIGN_SETUP, 0), "DSA_sign_setup"}, | - |
37 | {ERR_PACK(ERR_LIB_DSA, DSA_F_DSA_SIG_NEW, 0), "DSA_SIG_new"}, | - |
38 | {ERR_PACK(ERR_LIB_DSA, DSA_F_OLD_DSA_PRIV_DECODE, 0), | - |
39 | "old_dsa_priv_decode"}, | - |
40 | {ERR_PACK(ERR_LIB_DSA, DSA_F_PKEY_DSA_CTRL, 0), "pkey_dsa_ctrl"}, | - |
41 | {ERR_PACK(ERR_LIB_DSA, DSA_F_PKEY_DSA_CTRL_STR, 0), "pkey_dsa_ctrl_str"}, | - |
42 | {ERR_PACK(ERR_LIB_DSA, DSA_F_PKEY_DSA_KEYGEN, 0), "pkey_dsa_keygen"}, | - |
43 | {0, NULL} | - |
44 | }; | - |
45 | | - |
46 | static const ERR_STRING_DATA DSA_str_reasons[] = { | - |
47 | {ERR_PACK(ERR_LIB_DSA, 0, DSA_R_BAD_Q_VALUE), "bad q value"}, | - |
48 | {ERR_PACK(ERR_LIB_DSA, 0, DSA_R_BN_DECODE_ERROR), "bn decode error"}, | - |
49 | {ERR_PACK(ERR_LIB_DSA, 0, DSA_R_BN_ERROR), "bn error"}, | - |
50 | {ERR_PACK(ERR_LIB_DSA, 0, DSA_R_DECODE_ERROR), "decode error"}, | - |
51 | {ERR_PACK(ERR_LIB_DSA, 0, DSA_R_INVALID_DIGEST_TYPE), | - |
52 | "invalid digest type"}, | - |
53 | {ERR_PACK(ERR_LIB_DSA, 0, DSA_R_INVALID_PARAMETERS), "invalid parameters"}, | - |
54 | {ERR_PACK(ERR_LIB_DSA, 0, DSA_R_MISSING_PARAMETERS), "missing parameters"}, | - |
55 | {ERR_PACK(ERR_LIB_DSA, 0, DSA_R_MODULUS_TOO_LARGE), "modulus too large"}, | - |
56 | {ERR_PACK(ERR_LIB_DSA, 0, DSA_R_NO_PARAMETERS_SET), "no parameters set"}, | - |
57 | {ERR_PACK(ERR_LIB_DSA, 0, DSA_R_PARAMETER_ENCODING_ERROR), | - |
58 | "parameter encoding error"}, | - |
59 | {ERR_PACK(ERR_LIB_DSA, 0, DSA_R_Q_NOT_PRIME), "q not prime"}, | - |
60 | {ERR_PACK(ERR_LIB_DSA, 0, DSA_R_SEED_LEN_SMALL), | - |
61 | "seed_len is less than the length of q"}, | - |
62 | {0, NULL} | - |
63 | }; | - |
64 | | - |
65 | #endif | - |
66 | | - |
67 | int ERR_load_DSA_strings(void) | - |
68 | { | - |
69 | #ifndef OPENSSL_NO_ERR | - |
70 | if (ERR_func_error_string(DSA_str_functs[0].error) == NULL) {TRUE | evaluated 2074 times by 11 testsEvaluated by:- asn1_internal_test
- chacha_internal_test
- ctype_internal_test
- curve448_internal_test
- libcrypto.so.1.1
- modes_internal_test
- poly1305_internal_test
- siphash_internal_test
- sm2_internal_test
- sm4_internal_test
- x509_internal_test
| FALSE | never evaluated |
| 0-2074 |
71 | ERR_load_strings_const(DSA_str_functs); | - |
72 | ERR_load_strings_const(DSA_str_reasons); | - |
73 | }executed 2074 times by 11 tests: end of block Executed by:- asn1_internal_test
- chacha_internal_test
- ctype_internal_test
- curve448_internal_test
- libcrypto.so.1.1
- modes_internal_test
- poly1305_internal_test
- siphash_internal_test
- sm2_internal_test
- sm4_internal_test
- x509_internal_test
| 2074 |
74 | #endif | - |
75 | return 1;executed 2074 times by 11 tests: return 1; Executed by:- asn1_internal_test
- chacha_internal_test
- ctype_internal_test
- curve448_internal_test
- libcrypto.so.1.1
- modes_internal_test
- poly1305_internal_test
- siphash_internal_test
- sm2_internal_test
- sm4_internal_test
- x509_internal_test
| 2074 |
76 | } | - |
| | |