Lines Matching refs:err

45     const char *err, *aux_err;    /* Error string for test */  member
247 t->err = "ERR_TOO_MANY_PARAMETERS"; in ctrl2params()
248 goto err; in ctrl2params()
255 t->err = "ERR_PARAM_ERROR"; in ctrl2params()
256 goto err; in ctrl2params()
268 t->err = "ERR_PARAM_ERROR"; in ctrl2params()
269 goto err; in ctrl2params()
276 err: in ctrl2params()
318 static int memory_err_compare(EVP_TEST *t, const char *err, in memory_err_compare() argument
324 if (t->expected_err != NULL && strcmp(t->expected_err, err) == 0) in memory_err_compare()
329 t->err = err; in memory_err_compare()
375 goto err; in evp_test_buffer_append()
379 goto err; in evp_test_buffer_append()
383 goto err; in evp_test_buffer_append()
390 goto err; in evp_test_buffer_append()
400 goto err; in evp_test_buffer_append()
406 err: in evp_test_buffer_append()
506 goto err; in unescape()
519 err: in unescape()
735 t->err = "DIGESTFINALXOF_ERROR"; in test_duplicate_md_ctx()
740 t->err = "DIGESTFINALXOF_ERROR"; in test_duplicate_md_ctx()
758 t->err = "TEST_FAILURE"; in digest_test_run()
760 goto err; in digest_test_run()
765 goto err; in digest_test_run()
782 t->err = "DIGESTINIT_ERROR"; in digest_test_run()
783 goto err; in digest_test_run()
787 t->err = "DIGESTUPDATE_ERROR"; in digest_test_run()
788 goto err; in digest_test_run()
796 goto err; in digest_test_run()
800 goto err; in digest_test_run()
802 goto err; in digest_test_run()
806 goto err; in digest_test_run()
810 t->err = "DIGESTFINALXOF_ERROR"; in digest_test_run()
811 goto err; in digest_test_run()
815 t->err = "DIGESTFINAL_ERROR"; in digest_test_run()
816 goto err; in digest_test_run()
820 t->err = "DIGEST_LENGTH_MISMATCH"; in digest_test_run()
821 goto err; in digest_test_run()
826 goto err; in digest_test_run()
828 t->err = NULL; in digest_test_run()
843 t->err = "EVP_Q_digest failed"; in digest_test_run()
844 goto err; in digest_test_run()
848 err: in digest_test_run()
1087 t->err = "TEST_FAILURE"; in cipher_test_enc()
1089 goto err; in cipher_test_enc()
1091 goto err; in cipher_test_enc()
1108 goto err; in cipher_test_enc()
1123 goto err; in cipher_test_enc()
1129 t->err = "CIPHERINIT_ERROR"; in cipher_test_enc()
1130 goto err; in cipher_test_enc()
1140 t->err = "INVALID_CTS_MODE"; in cipher_test_enc()
1141 goto err; in cipher_test_enc()
1148 t->err = "INVALID_IV_LENGTH"; in cipher_test_enc()
1149 goto err; in cipher_test_enc()
1152 t->err = "INVALID_IV_LENGTH"; in cipher_test_enc()
1153 goto err; in cipher_test_enc()
1163 t->err = "TAG_LENGTH_SET_ERROR"; in cipher_test_enc()
1166 t->err = "TAG_SET_ERROR"; in cipher_test_enc()
1172 goto err; in cipher_test_enc()
1180 t->err = "INVALID_ROUNDS"; in cipher_test_enc()
1181 goto err; in cipher_test_enc()
1186 t->err = "INVALID_KEY_LENGTH"; in cipher_test_enc()
1187 goto err; in cipher_test_enc()
1193 t->err = "INVALID KEY BITS"; in cipher_test_enc()
1194 goto err; in cipher_test_enc()
1198 t->err = "KEY_SET_ERROR"; in cipher_test_enc()
1199 goto err; in cipher_test_enc()
1210 t->err = "INVALID_IV"; in cipher_test_enc()
1211 goto err; in cipher_test_enc()
1222 goto err; in cipher_test_enc()
1242 goto err; in cipher_test_enc()
1253 t->err = "SET_MAC_KEY_ERROR"; in cipher_test_enc()
1254 goto err; in cipher_test_enc()
1264 t->err = "SET_TLS_VERSION_ERROR"; in cipher_test_enc()
1265 goto err; in cipher_test_enc()
1271 t->err = "CCM_PLAINTEXT_LENGTH_SET_ERROR"; in cipher_test_enc()
1272 goto err; in cipher_test_enc()
1276 t->err = "AAD_SET_ERROR"; in cipher_test_enc()
1291 goto err; in cipher_test_enc()
1301 goto err; in cipher_test_enc()
1308 goto err; in cipher_test_enc()
1314 goto err; in cipher_test_enc()
1326 goto err; in cipher_test_enc()
1333 t->err = "TLS1_AAD_ERROR"; in cipher_test_enc()
1334 goto err; in cipher_test_enc()
1341 t->err = "TAG_SET_ERROR"; in cipher_test_enc()
1342 goto err; in cipher_test_enc()
1353 t->err = "SET_XTS_STANDARD_ERROR"; in cipher_test_enc()
1354 goto err; in cipher_test_enc()
1358 t->err = "CIPHERUPDATE_ERROR"; in cipher_test_enc()
1369 goto err; in cipher_test_enc()
1378 goto err; in cipher_test_enc()
1386 goto err; in cipher_test_enc()
1394 goto err; in cipher_test_enc()
1399 t->err = "CIPHERFINAL_ERROR"; in cipher_test_enc()
1400 goto err; in cipher_test_enc()
1403 t->err = "FIPSAPPROVED_ERROR"; in cipher_test_enc()
1404 goto err; in cipher_test_enc()
1420 goto err; in cipher_test_enc()
1425 t->err = "TAG_LENGTH_INTERNAL_ERROR"; in cipher_test_enc()
1426 goto err; in cipher_test_enc()
1430 t->err = "TAG_RETRIEVE_ERROR"; in cipher_test_enc()
1431 goto err; in cipher_test_enc()
1436 goto err; in cipher_test_enc()
1446 t->err = "INVALID_NEXT_IV"; in cipher_test_enc()
1447 goto err; in cipher_test_enc()
1451 t->err = NULL; in cipher_test_enc()
1453 err: in cipher_test_enc()
1471 t->err = "NO_KEY"; in cipher_test_run()
1477 t->err = "NO_IV"; in cipher_test_run()
1482 t->err = "NO_TAG"; in cipher_test_run()
1725 t->err = "PKEY_CTRL_INVALID"; in mac_test_ctrl_pkey()
1727 t->err = "PKEY_CTRL_ERROR"; in mac_test_ctrl_pkey()
1761 t->err = NULL; in mac_test_run_pkey()
1762 goto err; in mac_test_run_pkey()
1769 t->err = NULL; in mac_test_run_pkey()
1770 goto err; in mac_test_run_pkey()
1773 t->err = "MAC_KEY_CREATE_ERROR"; in mac_test_run_pkey()
1774 goto err; in mac_test_run_pkey()
1787 t->err = "MAC_KEY_CREATE_ERROR"; in mac_test_run_pkey()
1788 goto err; in mac_test_run_pkey()
1795 t->err = NULL; in mac_test_run_pkey()
1796 goto err; in mac_test_run_pkey()
1801 t->err = "INTERNAL_ERROR"; in mac_test_run_pkey()
1802 goto err; in mac_test_run_pkey()
1805 t->err = "DIGESTSIGNINIT_ERROR"; in mac_test_run_pkey()
1806 goto err; in mac_test_run_pkey()
1812 t->err = "EVPPKEYCTXCTRL_ERROR"; in mac_test_run_pkey()
1813 goto err; in mac_test_run_pkey()
1823 t->err = "DIGESTSIGNUPDATE_ERROR"; in mac_test_run_pkey()
1824 goto err; in mac_test_run_pkey()
1831 t->err = "DIGESTSIGNFINAL_LENGTH_ERROR"; in mac_test_run_pkey()
1832 goto err; in mac_test_run_pkey()
1835 t->err = "TEST_FAILURE"; in mac_test_run_pkey()
1836 goto err; in mac_test_run_pkey()
1842 t->err = "TEST_MAC_ERR"; in mac_test_run_pkey()
1843 goto err; in mac_test_run_pkey()
1845 t->err = NULL; in mac_test_run_pkey()
1846 err: in mac_test_run_pkey()
1903 t->err = "MAC_BAD_PARAMS"; in mac_test_run_mac()
1904 goto err; in mac_test_run_mac()
1909 t->err = NULL; in mac_test_run_mac()
1910 goto err; in mac_test_run_mac()
1932 goto err; in mac_test_run_mac()
1937 goto err; in mac_test_run_mac()
1941 t->err = "MAC_CREATE_ERROR"; in mac_test_run_mac()
1942 goto err; in mac_test_run_mac()
1951 t->err = "MAC_INIT_ERROR"; in mac_test_run_mac()
1952 goto err; in mac_test_run_mac()
1956 t->err = "MAC SIZE not set"; in mac_test_run_mac()
1957 goto err; in mac_test_run_mac()
1962 t->err = "MAC SIZE check failed"; in mac_test_run_mac()
1963 goto err; in mac_test_run_mac()
1967 t->err = "MAC SIZE check failed"; in mac_test_run_mac()
1968 goto err; in mac_test_run_mac()
1980 t->err = "INTERNAL_ERROR"; in mac_test_run_mac()
1981 goto err; in mac_test_run_mac()
1985 t->err = "TEST_FAILURE"; in mac_test_run_mac()
1986 goto err; in mac_test_run_mac()
1990 t->err = "TEST_FAILURE"; in mac_test_run_mac()
1991 goto err; in mac_test_run_mac()
2003 t->err = "MAC_UPDATE_ERROR"; in mac_test_run_mac()
2004 goto err; in mac_test_run_mac()
2013 t->err = "TEST_FAILURE"; in mac_test_run_mac()
2014 goto err; in mac_test_run_mac()
2020 t->err = "MAC_FINAL_ERROR"; in mac_test_run_mac()
2021 goto err; in mac_test_run_mac()
2025 t->err = "MAC_FINAL_LENGTH_ERROR"; in mac_test_run_mac()
2026 goto err; in mac_test_run_mac()
2029 t->err = "TEST_FAILURE"; in mac_test_run_mac()
2030 goto err; in mac_test_run_mac()
2036 t->err = "TEST_MAC_ERR"; in mac_test_run_mac()
2037 goto err; in mac_test_run_mac()
2040 goto err; in mac_test_run_mac()
2060 t->err = "MAC_REINIT_SHOULD_FAIL"; in mac_test_run_mac()
2061 goto err; in mac_test_run_mac()
2070 t->err = "MAC_REINIT_ERROR"; in mac_test_run_mac()
2071 goto err; in mac_test_run_mac()
2076 t->err = NULL; in mac_test_run_mac()
2088 t->err = "EVP_Q_mac failed"; in mac_test_run_mac()
2089 goto err; in mac_test_run_mac()
2092 err: in mac_test_run_mac()
2143 goto err; in kem_test_init()
2145 goto err; in kem_test_init()
2150 err: in kem_test_init()
2198 goto err; in encapsulate()
2202 t->err = "TEST_ENCAPSULATE_INIT_ERROR"; in encapsulate()
2203 goto err; in encapsulate()
2207 t->err = "TEST_SET_KEM_OP_ERROR"; in encapsulate()
2208 goto err; in encapsulate()
2211 t->err = "TEST_ENCAPSULATE_LEN_ERROR"; in encapsulate()
2212 goto err; in encapsulate()
2218 goto err; in encapsulate()
2221 t->err = "TEST_ENCAPSULATE_ERROR"; in encapsulate()
2222 goto err; in encapsulate()
2226 goto err; in encapsulate()
2228 t->err = NULL; in encapsulate()
2235 err: in encapsulate()
2258 goto err; in decapsulate()
2262 t->err = "TEST_DECAPSULATE_INIT_ERROR"; in decapsulate()
2263 goto err; in decapsulate()
2267 t->err = "TEST_SET_KEM_OP_ERROR"; in decapsulate()
2268 goto err; in decapsulate()
2271 t->err = "TEST_DECAPSULATE_LEN_ERROR"; in decapsulate()
2272 goto err; in decapsulate()
2276 goto err; in decapsulate()
2280 t->err = "TEST_DECAPSULATE_ERROR"; in decapsulate()
2281 goto err; in decapsulate()
2284 t->err = "TEST_SECRET_MISMATCH"; in decapsulate()
2285 goto err; in decapsulate()
2287 t->err = NULL; in decapsulate()
2289 err: in decapsulate()
2306 if (ret == 0 || t->err != NULL) in kem_test_run()
2307 goto err; in kem_test_run()
2314 err: in kem_test_run()
2484 t->err = "PKEY_CTRL_INVALID"; in pkey_test_ctrl()
2492 t->err = "PKEY_CTRL_ERROR"; in pkey_test_ctrl()
2548 goto err; in pkey_test_run_init()
2553 t->err = "KEYOP_INIT_ERROR"; in pkey_test_run_init()
2554 goto err; in pkey_test_run_init()
2558 t->err = "KEYOP_INIT_ERROR"; in pkey_test_run_init()
2559 goto err; in pkey_test_run_init()
2562 t->err = "KEYOP_INIT_ERROR"; in pkey_test_run_init()
2563 goto err; in pkey_test_run_init()
2569 if (!pkey_test_ctrl(t, data->ctx, value) || t->err != NULL) in pkey_test_run_init()
2570 goto err; in pkey_test_run_init()
2573 err: in pkey_test_run_init()
2586 goto err; in pkey_test_run()
2590 t->err = "INTERNAL_ERROR"; in pkey_test_run()
2591 goto err; in pkey_test_run()
2597 t->err = "KEYOP_LENGTH_ERROR"; in pkey_test_run()
2598 goto err; in pkey_test_run()
2602 t->err = "KEYOP_ERROR"; in pkey_test_run()
2603 goto err; in pkey_test_run()
2608 goto err; in pkey_test_run()
2610 t->err = NULL; in pkey_test_run()
2618 t->err = "KEYOP_LENGTH_ERROR"; in pkey_test_run()
2619 goto err; in pkey_test_run()
2623 t->err = "KEYOP_ERROR"; in pkey_test_run()
2624 goto err; in pkey_test_run()
2629 goto err; in pkey_test_run()
2632 goto err; in pkey_test_run()
2634 err: in pkey_test_run()
2734 goto err; in verify_test_run()
2737 t->err = "VERIFY_ERROR"; in verify_test_run()
2738 goto err; in verify_test_run()
2742 err: in verify_test_run()
2813 goto err; in pderive_test_run()
2815 t->err = NULL; in pderive_test_run()
2818 t->err = "DERIVE_SET_PEER_ERROR"; in pderive_test_run()
2819 goto err; in pderive_test_run()
2823 t->err = "DERIVE_ERROR"; in pderive_test_run()
2824 goto err; in pderive_test_run()
2829 t->err = "DERIVE_ERROR"; in pderive_test_run()
2830 goto err; in pderive_test_run()
2833 t->err = "DERIVE_ERROR"; in pderive_test_run()
2834 goto err; in pderive_test_run()
2837 t->err = "DERIVE_ERROR"; in pderive_test_run()
2838 goto err; in pderive_test_run()
2843 goto err; in pderive_test_run()
2847 goto err; in pderive_test_run()
2849 t->err = NULL; in pderive_test_run()
2850 err: in pderive_test_run()
3036 t->err = "INTERNAL_ERROR"; in pbe_test_run()
3037 goto err; in pbe_test_run()
3044 t->err = "PBKDF2_ERROR"; in pbe_test_run()
3045 goto err; in pbe_test_run()
3053 t->err = "SCRYPT_ERROR"; in pbe_test_run()
3054 goto err; in pbe_test_run()
3061 t->err = "PKCS12_ERROR"; in pbe_test_run()
3062 goto err; in pbe_test_run()
3068 t->err = "PKCS12_ERROR"; in pbe_test_run()
3069 goto err; in pbe_test_run()
3074 goto err; in pbe_test_run()
3076 t->err = NULL; in pbe_test_run()
3077 err: in pbe_test_run()
3126 goto err; in encode_test_init()
3131 goto err; in encode_test_init()
3135 err: in encode_test_init()
3170 t->err = "INTERNAL_ERROR"; in encode_test_run()
3171 goto err; in encode_test_run()
3179 goto err; in encode_test_run()
3194 goto err; in encode_test_run()
3206 goto err; in encode_test_run()
3211 goto err; in encode_test_run()
3225 t->err = "DECODE_ERROR"; in encode_test_run()
3226 goto err; in encode_test_run()
3234 t->err = "DECODE_ERROR"; in encode_test_run()
3235 goto err; in encode_test_run()
3243 t->err = "BAD_DECODING"; in encode_test_run()
3244 goto err; in encode_test_run()
3247 t->err = NULL; in encode_test_run()
3248 err: in encode_test_run()
3315 goto err; in rand_test_init()
3319 goto err; in rand_test_init()
3323 goto err; in rand_test_init()
3327 goto err; in rand_test_init()
3331 goto err; in rand_test_init()
3337 err: in rand_test_init()
3449 goto err; in rand_test_run()
3464 t->err = "EVP_RAND_CTX_set_params"; in rand_test_run()
3467 goto err; in rand_test_run()
3486 goto err; in rand_test_run()
3493 goto err; in rand_test_run()
3501 goto err; in rand_test_run()
3507 goto err; in rand_test_run()
3515 goto err; in rand_test_run()
3521 goto err; in rand_test_run()
3529 goto err; in rand_test_run()
3535 goto err; in rand_test_run()
3537 goto err; in rand_test_run()
3539 goto err; in rand_test_run()
3545 goto err; in rand_test_run()
3547 t->err = NULL; in rand_test_run()
3550 err: in rand_test_run()
3697 t->err = "KDF_PARAM_ERROR"; in kdf_test_ctrl()
3754 goto err; in kdf_test_run()
3756 t->err = "KDF_CTRL_ERROR"; in kdf_test_run()
3757 goto err; in kdf_test_run()
3762 t->err = "KDF_CTRL_ERROR"; in kdf_test_run()
3763 goto err; in kdf_test_run()
3766 t->err = "INTERNAL_ERROR"; in kdf_test_run()
3767 goto err; in kdf_test_run()
3776 t->err = "KDF_DERIVE_ERROR"; in kdf_test_run()
3777 goto err; in kdf_test_run()
3781 goto err; in kdf_test_run()
3786 goto err; in kdf_test_run()
3788 t->err = NULL; in kdf_test_run()
3790 err: in kdf_test_run()
3836 goto err; in pkey_kdf_test_init()
3840 err: in pkey_kdf_test_init()
3879 t->err = "INTERNAL_ERROR"; in pkey_kdf_test_run()
3880 goto err; in pkey_kdf_test_run()
3895 t->err = "INTERNAL_ERROR"; in pkey_kdf_test_run()
3896 goto err; in pkey_kdf_test_run()
3899 t->err = "KDF_DERIVE_ERROR"; in pkey_kdf_test_run()
3900 goto err; in pkey_kdf_test_run()
3904 goto err; in pkey_kdf_test_run()
3907 t->err = "KDF_MISMATCH"; in pkey_kdf_test_run()
3908 goto err; in pkey_kdf_test_run()
3910 t->err = NULL; in pkey_kdf_test_run()
3912 err: in pkey_kdf_test_run()
3944 t->err = "PARSING_ERROR"; in keypair_test_init()
3951 t->err = "MISSING_PRIVATE_KEY"; in keypair_test_init()
3956 t->err = "MISSING_PUBLIC_KEY"; in keypair_test_init()
3973 t->err = NULL; in keypair_test_init()
4005 t->err = "KEYPAIR_TYPE_MISMATCH"; in keypair_test_run()
4012 t->err = "KEYPAIR_MISMATCH"; in keypair_test_run()
4014 t->err = "KEYPAIR_TYPE_MISMATCH"; in keypair_test_run()
4016 t->err = "UNSUPPORTED_KEY_COMPARISON"; in keypair_test_run()
4027 t->err = NULL; in keypair_test_run()
4068 t->err = NULL; in keygen_test_init()
4116 goto err; in keygen_test_run()
4121 goto err; in keygen_test_run()
4125 t->err = "KEYGEN_INIT_ERROR"; in keygen_test_run()
4126 goto err; in keygen_test_run()
4133 goto err; in keygen_test_run()
4135 t->err = "PKEY_CTRL_ERROR"; in keygen_test_run()
4136 goto err; in keygen_test_run()
4143 t->err = "KEYGEN_GENERATE_ERROR"; in keygen_test_run()
4144 goto err; in keygen_test_run()
4148 goto err; in keygen_test_run()
4153 goto err; in keygen_test_run()
4161 goto err; in keygen_test_run()
4165 goto err; in keygen_test_run()
4176 t->err = NULL; in keygen_test_run()
4177 err: in keygen_test_run()
4320 t->err = "EVP_PKEY_CTX_set_params_ERROR"; in check_deterministic_noncetype()
4322 t->err = "EVP_PKEY_CTX_get_params_ERROR"; in check_deterministic_noncetype()
4324 t->err = "nonce_type_not_modified_ERROR"; in check_deterministic_noncetype()
4326 t->err = "nonce_type_value_ERROR"; in check_deterministic_noncetype()
4328 return t->err == NULL; in check_deterministic_noncetype()
4343 goto err; in signverify_init()
4350 t->err = "DIGESTVERIFYINIT_ERROR"; in signverify_init()
4351 goto err; in signverify_init()
4356 t->err = "DIGESTSIGNINIT_ERROR"; in signverify_init()
4357 goto err; in signverify_init()
4364 if (!pkey_test_ctrl(t, data->pctx, value) || t->err != NULL) in signverify_init()
4365 goto err; in signverify_init()
4368 err: in signverify_init()
4387 goto err; in digestsign_test_run()
4389 goto err; in digestsign_test_run()
4393 if (!pkey_test_ctrl(t, expected->pctx, value) || t->err != NULL) in digestsign_test_run()
4399 t->err = "DIGESTUPDATE_ERROR"; in digestsign_test_run()
4400 goto err; in digestsign_test_run()
4404 t->err = "DIGESTSIGNFINAL_LENGTH_ERROR"; in digestsign_test_run()
4405 goto err; in digestsign_test_run()
4408 t->err = "MALLOC_FAILURE"; in digestsign_test_run()
4409 goto err; in digestsign_test_run()
4413 t->err = "DIGESTSIGNFINAL_ERROR"; in digestsign_test_run()
4414 goto err; in digestsign_test_run()
4419 goto err; in digestsign_test_run()
4421 t->err = NULL; in digestsign_test_run()
4422 err: in digestsign_test_run()
4454 t->err = "DIGESTUPDATE_ERROR"; in digestverify_test_run()
4460 t->err = "VERIFY_ERROR"; in digestverify_test_run()
4484 goto err; in oneshot_digestsign_test_run()
4488 t->err = "DIGESTSIGN_LENGTH_ERROR"; in oneshot_digestsign_test_run()
4489 goto err; in oneshot_digestsign_test_run()
4492 t->err = "MALLOC_FAILURE"; in oneshot_digestsign_test_run()
4493 goto err; in oneshot_digestsign_test_run()
4498 t->err = "DIGESTSIGN_ERROR"; in oneshot_digestsign_test_run()
4499 goto err; in oneshot_digestsign_test_run()
4504 goto err; in oneshot_digestsign_test_run()
4506 t->err = NULL; in oneshot_digestsign_test_run()
4507 err: in oneshot_digestsign_test_run()
4534 t->err = "VERIFY_ERROR"; in oneshot_digestverify_test_run()
4604 t->err = NULL; in clear_test()
4617 unsigned long err; in check_test_error() local
4620 if (t->err == NULL && t->expected_err == NULL) in check_test_error()
4622 if (t->err != NULL && t->expected_err == NULL) { in check_test_error()
4625 t->s.test_file, t->s.start, t->aux_err, t->err); in check_test_error()
4628 t->s.test_file, t->s.start, t->err); in check_test_error()
4632 if (t->err == NULL && t->expected_err != NULL) { in check_test_error()
4638 if (strcmp(t->err, t->expected_err) != 0) { in check_test_error()
4640 t->s.test_file, t->s.start, t->expected_err, t->err); in check_test_error()
4653 err = ERR_peek_error(); in check_test_error()
4654 if (err == 0) { in check_test_error()
4660 reason = ERR_reason_error_string(err); in check_test_error()
4687 if (t->err == NULL && t->meth->run_test(t) != 1) { in run_test()
4731 long err = ERR_peek_last_error(); in key_unsupported() local
4732 int lib = ERR_GET_LIB(err); in key_unsupported()
4733 long reason = ERR_GET_REASON(err); in key_unsupported()