| Line | Source | Count |
| 1 | | - |
| 2 | | - |
| 3 | | - |
| 4 | | - |
| 5 | | - |
| 6 | | - |
| 7 | | - |
| 8 | | - |
| 9 | | - |
| 10 | | - |
| 11 | | - |
| 12 | | - |
| 13 | | - |
| 14 | | - |
| 15 | | - |
| 16 | | - |
| 17 | | - |
| 18 | | - |
| 19 | | - |
| 20 | | - |
| 21 | | - |
| 22 | | - |
| 23 | | - |
| 24 | | - |
| 25 | | - |
| 26 | | - |
| 27 | | - |
| 28 | | - |
| 29 | | - |
| 30 | | - |
| 31 | | - |
| 32 | | - |
| 33 | | - |
| 34 | | - |
| 35 | | - |
| 36 | | - |
| 37 | | - |
| 38 | | - |
| 39 | | - |
| 40 | | - |
| 41 | | - |
| 42 | | - |
| 43 | | - |
| 44 | | - |
| 45 | | - |
| 46 | | - |
| 47 | | - |
| 48 | | - |
| 49 | | - |
| 50 | | - |
| 51 | | - |
| 52 | | - |
| 53 | | - |
| 54 | | - |
| 55 | | - |
| 56 | | - |
| 57 | | - |
| 58 | | - |
| 59 | | - |
| 60 | | - |
| 61 | #include <stdio.h> | - |
| 62 | | - |
| 63 | #include <openssl/opensslconf.h> | - |
| 64 | | - |
| 65 | #include <openssl/err.h> | - |
| 66 | #include <openssl/ec.h> | - |
| 67 | | - |
| 68 | | - |
| 69 | #ifndef OPENSSL_NO_ERR | - |
| 70 | | - |
| 71 | #define ERR_FUNC(func) ERR_PACK(ERR_LIB_EC,func,0) | - |
| 72 | #define ERR_REASON(reason) ERR_PACK(ERR_LIB_EC,0,reason) | - |
| 73 | | - |
| 74 | static ERR_STRING_DATA EC_str_functs[] = { | - |
| 75 | {ERR_FUNC(0xfff), "CRYPTO_internal"}, | - |
| 76 | {0, NULL} | - |
| 77 | }; | - |
| 78 | | - |
| 79 | static ERR_STRING_DATA EC_str_reasons[] = | - |
| 80 | { | - |
| 81 | {ERR_REASON(EC_R_ASN1_ERROR), "asn1 error"}, | - |
| 82 | {ERR_REASON(EC_R_ASN1_UNKNOWN_FIELD), "asn1 unknown field"}, | - |
| 83 | {ERR_REASON(EC_R_BIGNUM_OUT_OF_RANGE), "bignum out of range"}, | - |
| 84 | {ERR_REASON(EC_R_BUFFER_TOO_SMALL), "buffer too small"}, | - |
| 85 | {ERR_REASON(EC_R_COORDINATES_OUT_OF_RANGE), "coordinates out of range"}, | - |
| 86 | {ERR_REASON(EC_R_D2I_ECPKPARAMETERS_FAILURE), "d2i ecpkparameters failure"}, | - |
| 87 | {ERR_REASON(EC_R_DECODE_ERROR), "decode error"}, | - |
| 88 | {ERR_REASON(EC_R_DISCRIMINANT_IS_ZERO), "discriminant is zero"}, | - |
| 89 | {ERR_REASON(EC_R_EC_GROUP_NEW_BY_NAME_FAILURE), "ec group new by name failure"}, | - |
| 90 | {ERR_REASON(EC_R_FIELD_TOO_LARGE), "field too large"}, | - |
| 91 | {ERR_REASON(EC_R_GF2M_NOT_SUPPORTED), "gf2m not supported"}, | - |
| 92 | {ERR_REASON(EC_R_GROUP2PKPARAMETERS_FAILURE), "group2pkparameters failure"}, | - |
| 93 | {ERR_REASON(EC_R_I2D_ECPKPARAMETERS_FAILURE), "i2d ecpkparameters failure"}, | - |
| 94 | {ERR_REASON(EC_R_INCOMPATIBLE_OBJECTS), "incompatible objects"}, | - |
| 95 | {ERR_REASON(EC_R_INVALID_ARGUMENT), "invalid argument"}, | - |
| 96 | {ERR_REASON(EC_R_INVALID_COMPRESSED_POINT), "invalid compressed point"}, | - |
| 97 | {ERR_REASON(EC_R_INVALID_COMPRESSION_BIT), "invalid compression bit"}, | - |
| 98 | {ERR_REASON(EC_R_INVALID_CURVE), "invalid curve"}, | - |
| 99 | {ERR_REASON(EC_R_INVALID_DIGEST_TYPE), "invalid digest type"}, | - |
| 100 | {ERR_REASON(EC_R_INVALID_ENCODING), "invalid encoding"}, | - |
| 101 | {ERR_REASON(EC_R_INVALID_FIELD), "invalid field"}, | - |
| 102 | {ERR_REASON(EC_R_INVALID_FORM), "invalid form"}, | - |
| 103 | {ERR_REASON(EC_R_INVALID_GROUP_ORDER), "invalid group order"}, | - |
| 104 | {ERR_REASON(EC_R_INVALID_PENTANOMIAL_BASIS), "invalid pentanomial basis"}, | - |
| 105 | {ERR_REASON(EC_R_INVALID_PRIVATE_KEY), "invalid private key"}, | - |
| 106 | {ERR_REASON(EC_R_INVALID_TRINOMIAL_BASIS), "invalid trinomial basis"}, | - |
| 107 | {ERR_REASON(EC_R_KEYS_NOT_SET), "keys not set"}, | - |
| 108 | {ERR_REASON(EC_R_MISSING_PARAMETERS), "missing parameters"}, | - |
| 109 | {ERR_REASON(EC_R_MISSING_PRIVATE_KEY), "missing private key"}, | - |
| 110 | {ERR_REASON(EC_R_NOT_A_NIST_PRIME), "not a NIST prime"}, | - |
| 111 | {ERR_REASON(EC_R_NOT_A_SUPPORTED_NIST_PRIME), "not a supported NIST prime"}, | - |
| 112 | {ERR_REASON(EC_R_NOT_IMPLEMENTED), "not implemented"}, | - |
| 113 | {ERR_REASON(EC_R_NOT_INITIALIZED), "not initialized"}, | - |
| 114 | {ERR_REASON(EC_R_NO_FIELD_MOD), "no field mod"}, | - |
| 115 | {ERR_REASON(EC_R_NO_PARAMETERS_SET), "no parameters set"}, | - |
| 116 | {ERR_REASON(EC_R_PASSED_NULL_PARAMETER), "passed null parameter"}, | - |
| 117 | {ERR_REASON(EC_R_PKPARAMETERS2GROUP_FAILURE), "pkparameters2group failure"}, | - |
| 118 | {ERR_REASON(EC_R_POINT_AT_INFINITY), "point at infinity"}, | - |
| 119 | {ERR_REASON(EC_R_POINT_IS_NOT_ON_CURVE), "point is not on curve"}, | - |
| 120 | {ERR_REASON(EC_R_SLOT_FULL), "slot full"}, | - |
| 121 | {ERR_REASON(EC_R_UNDEFINED_GENERATOR), "undefined generator"}, | - |
| 122 | {ERR_REASON(EC_R_UNDEFINED_ORDER), "undefined order"}, | - |
| 123 | {ERR_REASON(EC_R_UNKNOWN_GROUP), "unknown group"}, | - |
| 124 | {ERR_REASON(EC_R_UNKNOWN_ORDER), "unknown order"}, | - |
| 125 | {ERR_REASON(EC_R_UNSUPPORTED_FIELD), "unsupported field"}, | - |
| 126 | {ERR_REASON(EC_R_WRONG_CURVE_PARAMETERS), "wrong curve parameters"}, | - |
| 127 | {ERR_REASON(EC_R_WRONG_ORDER), "wrong order"}, | - |
| 128 | {0, NULL} | - |
| 129 | }; | - |
| 130 | | - |
| 131 | #endif | - |
| 132 | | - |
| 133 | void | - |
| 134 | ERR_load_EC_strings(void) | - |
| 135 | { | - |
| 136 | #ifndef OPENSSL_NO_ERR | - |
| 137 | | - |
| 138 | if (ERR_func_error_string(EC_str_functs[0].error) == NULL) {| TRUE | evaluated 290 times by 31 testsEvaluated by:- asn1test
- base64test
- bnaddsub
- bntest
- cipher_list
- cipherstest
- clienttest
- configtest
- dhtest
- dsatest
- ecdhtest
- ecdsatest
- ectest
- enginetest
- evptest
- exptest
- gost2814789t
- keypairtest
- libcrypto.so.44.0.1
- mont
- pbkdf2
- pkcs7test
- rsa_test
- servertest
- ssl_versions
- ...
| | FALSE | never evaluated |
| 0-290 |
| 139 | ERR_load_strings(0, EC_str_functs); | - |
| 140 | ERR_load_strings(0, EC_str_reasons); | - |
| 141 | }executed 290 times by 31 tests: end of blockExecuted by:- asn1test
- base64test
- bnaddsub
- bntest
- cipher_list
- cipherstest
- clienttest
- configtest
- dhtest
- dsatest
- ecdhtest
- ecdsatest
- ectest
- enginetest
- evptest
- exptest
- gost2814789t
- keypairtest
- libcrypto.so.44.0.1
- mont
- pbkdf2
- pkcs7test
- rsa_test
- servertest
- ssl_versions
- ...
| 290 |
| 142 | #endif | - |
| 143 | }executed 290 times by 31 tests: end of blockExecuted by:- asn1test
- base64test
- bnaddsub
- bntest
- cipher_list
- cipherstest
- clienttest
- configtest
- dhtest
- dsatest
- ecdhtest
- ecdsatest
- ectest
- enginetest
- evptest
- exptest
- gost2814789t
- keypairtest
- libcrypto.so.44.0.1
- mont
- pbkdf2
- pkcs7test
- rsa_test
- servertest
- ssl_versions
- ...
| 290 |
| | |