Lines Matching refs:err

44     const char *err, *aux_err;    /* Error string for test */  member
99 static int memory_err_compare(EVP_TEST *t, const char *err, in memory_err_compare() argument
105 if (t->expected_err != NULL && strcmp(t->expected_err, err) == 0) in memory_err_compare()
110 t->err = err; in memory_err_compare()
140 goto err; in evp_test_buffer_append()
143 goto err; in evp_test_buffer_append()
148 goto err; in evp_test_buffer_append()
150 goto err; in evp_test_buffer_append()
154 err: in evp_test_buffer_append()
254 goto err; in unescape()
267 err: in unescape()
410 t->err = "TEST_FAILURE"; in digest_test_run()
412 goto err; in digest_test_run()
417 goto err; in digest_test_run()
420 t->err = "DIGESTINIT_ERROR"; in digest_test_run()
421 goto err; in digest_test_run()
428 t->err = "PARAMS_ERROR"; in digest_test_run()
429 goto err; in digest_test_run()
433 t->err = "DIGESTUPDATE_ERROR"; in digest_test_run()
434 goto err; in digest_test_run()
443 goto err; in digest_test_run()
447 goto err; in digest_test_run()
451 t->err = "DIGESTFINALXOF_ERROR"; in digest_test_run()
452 goto err; in digest_test_run()
456 t->err = "DIGESTFINALXOF_ERROR"; in digest_test_run()
457 goto err; in digest_test_run()
463 t->err = "DIGESTFINALXOF_ERROR"; in digest_test_run()
464 goto err; in digest_test_run()
468 t->err = "DIGESTFINAL_ERROR"; in digest_test_run()
469 goto err; in digest_test_run()
473 t->err = "DIGEST_LENGTH_MISMATCH"; in digest_test_run()
474 goto err; in digest_test_run()
479 goto err; in digest_test_run()
481 t->err = NULL; in digest_test_run()
496 t->err = "EVP_Q_digest failed"; in digest_test_run()
497 goto err; in digest_test_run()
501 err: in digest_test_run()
699 t->err = "TEST_FAILURE"; in cipher_test_enc()
701 goto err; in cipher_test_enc()
703 goto err; in cipher_test_enc()
720 goto err; in cipher_test_enc()
735 goto err; in cipher_test_enc()
740 t->err = "CIPHERINIT_ERROR"; in cipher_test_enc()
741 goto err; in cipher_test_enc()
751 t->err = "INVALID_CTS_MODE"; in cipher_test_enc()
752 goto err; in cipher_test_enc()
759 t->err = "INVALID_IV_LENGTH"; in cipher_test_enc()
760 goto err; in cipher_test_enc()
763 t->err = "INVALID_IV_LENGTH"; in cipher_test_enc()
764 goto err; in cipher_test_enc()
774 t->err = "TAG_LENGTH_SET_ERROR"; in cipher_test_enc()
777 t->err = "TAG_SET_ERROR"; in cipher_test_enc()
783 goto err; in cipher_test_enc()
791 t->err = "INVALID_ROUNDS"; in cipher_test_enc()
792 goto err; in cipher_test_enc()
797 t->err = "INVALID_KEY_LENGTH"; in cipher_test_enc()
798 goto err; in cipher_test_enc()
804 t->err = "INVALID KEY BITS"; in cipher_test_enc()
805 goto err; in cipher_test_enc()
809 t->err = "KEY_SET_ERROR"; in cipher_test_enc()
810 goto err; in cipher_test_enc()
821 t->err = "INVALID_IV"; in cipher_test_enc()
822 goto err; in cipher_test_enc()
841 t->err = "SET_MAC_KEY_ERROR"; in cipher_test_enc()
842 goto err; in cipher_test_enc()
852 t->err = "SET_TLS_VERSION_ERROR"; in cipher_test_enc()
853 goto err; in cipher_test_enc()
859 t->err = "CCM_PLAINTEXT_LENGTH_SET_ERROR"; in cipher_test_enc()
860 goto err; in cipher_test_enc()
864 t->err = "AAD_SET_ERROR"; in cipher_test_enc()
869 goto err; in cipher_test_enc()
878 goto err; in cipher_test_enc()
885 goto err; in cipher_test_enc()
891 goto err; in cipher_test_enc()
903 goto err; in cipher_test_enc()
910 t->err = "TLS1_AAD_ERROR"; in cipher_test_enc()
911 goto err; in cipher_test_enc()
918 t->err = "TAG_SET_ERROR"; in cipher_test_enc()
919 goto err; in cipher_test_enc()
924 t->err = "CIPHERUPDATE_ERROR"; in cipher_test_enc()
929 goto err; in cipher_test_enc()
934 goto err; in cipher_test_enc()
942 goto err; in cipher_test_enc()
950 goto err; in cipher_test_enc()
955 t->err = "CIPHERFINAL_ERROR"; in cipher_test_enc()
956 goto err; in cipher_test_enc()
971 goto err; in cipher_test_enc()
976 t->err = "TAG_LENGTH_INTERNAL_ERROR"; in cipher_test_enc()
977 goto err; in cipher_test_enc()
981 t->err = "TAG_RETRIEVE_ERROR"; in cipher_test_enc()
982 goto err; in cipher_test_enc()
987 goto err; in cipher_test_enc()
997 t->err = "INVALID_NEXT_IV"; in cipher_test_enc()
998 goto err; in cipher_test_enc()
1002 t->err = NULL; in cipher_test_enc()
1004 err: in cipher_test_enc()
1019 t->err = "NO_KEY"; in cipher_test_run()
1025 t->err = "NO_IV"; in cipher_test_run()
1030 t->err = "NO_TAG"; in cipher_test_run()
1267 t->err = "PKEY_CTRL_INVALID"; in mac_test_ctrl_pkey()
1269 t->err = "PKEY_CTRL_ERROR"; in mac_test_ctrl_pkey()
1302 t->err = NULL; in mac_test_run_pkey()
1303 goto err; in mac_test_run_pkey()
1310 t->err = NULL; in mac_test_run_pkey()
1311 goto err; in mac_test_run_pkey()
1314 t->err = "MAC_KEY_CREATE_ERROR"; in mac_test_run_pkey()
1315 goto err; in mac_test_run_pkey()
1328 t->err = "MAC_KEY_CREATE_ERROR"; in mac_test_run_pkey()
1329 goto err; in mac_test_run_pkey()
1336 t->err = NULL; in mac_test_run_pkey()
1337 goto err; in mac_test_run_pkey()
1342 t->err = "INTERNAL_ERROR"; in mac_test_run_pkey()
1343 goto err; in mac_test_run_pkey()
1346 t->err = "DIGESTSIGNINIT_ERROR"; in mac_test_run_pkey()
1347 goto err; in mac_test_run_pkey()
1353 t->err = "EVPPKEYCTXCTRL_ERROR"; in mac_test_run_pkey()
1354 goto err; in mac_test_run_pkey()
1357 t->err = "DIGESTSIGNUPDATE_ERROR"; in mac_test_run_pkey()
1358 goto err; in mac_test_run_pkey()
1361 t->err = "DIGESTSIGNFINAL_LENGTH_ERROR"; in mac_test_run_pkey()
1362 goto err; in mac_test_run_pkey()
1365 t->err = "TEST_FAILURE"; in mac_test_run_pkey()
1366 goto err; in mac_test_run_pkey()
1372 t->err = "TEST_MAC_ERR"; in mac_test_run_pkey()
1373 goto err; in mac_test_run_pkey()
1375 t->err = NULL; in mac_test_run_pkey()
1376 err: in mac_test_run_pkey()
1422 t->err = "MAC_BAD_PARAMS"; in mac_test_run_mac()
1423 goto err; in mac_test_run_mac()
1445 t->err = "MAC_TOO_MANY_PARAMETERS"; in mac_test_run_mac()
1446 goto err; in mac_test_run_mac()
1454 t->err = "MAC_PARAM_ERROR"; in mac_test_run_mac()
1455 goto err; in mac_test_run_mac()
1467 t->err = "MAC_PARAM_ERROR"; in mac_test_run_mac()
1468 goto err; in mac_test_run_mac()
1477 t->err = "MAC_CREATE_ERROR"; in mac_test_run_mac()
1478 goto err; in mac_test_run_mac()
1482 t->err = "MAC_INIT_ERROR"; in mac_test_run_mac()
1483 goto err; in mac_test_run_mac()
1494 t->err = "INTERNAL_ERROR"; in mac_test_run_mac()
1495 goto err; in mac_test_run_mac()
1499 t->err = "TEST_FAILURE"; in mac_test_run_mac()
1500 goto err; in mac_test_run_mac()
1504 t->err = "TEST_FAILURE"; in mac_test_run_mac()
1505 goto err; in mac_test_run_mac()
1509 t->err = "MAC_UPDATE_ERROR"; in mac_test_run_mac()
1510 goto err; in mac_test_run_mac()
1515 t->err = "TEST_FAILURE"; in mac_test_run_mac()
1516 goto err; in mac_test_run_mac()
1522 t->err = "MAC_FINAL_ERROR"; in mac_test_run_mac()
1523 goto err; in mac_test_run_mac()
1527 t->err = "MAC_FINAL_LENGTH_ERROR"; in mac_test_run_mac()
1528 goto err; in mac_test_run_mac()
1531 t->err = "TEST_FAILURE"; in mac_test_run_mac()
1532 goto err; in mac_test_run_mac()
1538 t->err = "TEST_MAC_ERR"; in mac_test_run_mac()
1539 goto err; in mac_test_run_mac()
1542 t->err = NULL; in mac_test_run_mac()
1554 t->err = "EVP_Q_mac failed"; in mac_test_run_mac()
1555 goto err; in mac_test_run_mac()
1558 err: in mac_test_run_mac()
1642 t->err = "KEYOP_INIT_ERROR"; in pkey_test_init()
1670 t->err = "PKEY_CTRL_INVALID"; in pkey_test_ctrl()
1678 t->err = "PKEY_CTRL_ERROR"; in pkey_test_ctrl()
1709 t->err = "KEYOP_LENGTH_ERROR"; in pkey_test_run()
1710 goto err; in pkey_test_run()
1714 t->err = "KEYOP_ERROR"; in pkey_test_run()
1715 goto err; in pkey_test_run()
1720 goto err; in pkey_test_run()
1722 t->err = NULL; in pkey_test_run()
1728 t->err = "INTERNAL_ERROR"; in pkey_test_run()
1729 goto err; in pkey_test_run()
1734 t->err = "KEYOP_LENGTH_ERROR"; in pkey_test_run()
1735 goto err; in pkey_test_run()
1739 t->err = "KEYOP_ERROR"; in pkey_test_run()
1740 goto err; in pkey_test_run()
1745 goto err; in pkey_test_run()
1747 err: in pkey_test_run()
1805 t->err = "VERIFY_ERROR"; in verify_test_run()
1836 t->err = "DERIVE_SET_PEER_ERROR"; in pderive_test_parse()
1839 t->err = NULL; in pderive_test_parse()
1857 t->err = "DERIVE_ERROR"; in pderive_test_run()
1858 goto err; in pderive_test_run()
1862 t->err = "DERIVE_ERROR"; in pderive_test_run()
1863 goto err; in pderive_test_run()
1866 t->err = "DERIVE_ERROR"; in pderive_test_run()
1867 goto err; in pderive_test_run()
1870 t->err = "DERIVE_ERROR"; in pderive_test_run()
1871 goto err; in pderive_test_run()
1876 goto err; in pderive_test_run()
1878 t->err = NULL; in pderive_test_run()
1879 err: in pderive_test_run()
2066 t->err = "INTERNAL_ERROR"; in pbe_test_run()
2067 goto err; in pbe_test_run()
2074 t->err = "PBKDF2_ERROR"; in pbe_test_run()
2075 goto err; in pbe_test_run()
2083 t->err = "SCRYPT_ERROR"; in pbe_test_run()
2084 goto err; in pbe_test_run()
2091 t->err = "PKCS12_ERROR"; in pbe_test_run()
2092 goto err; in pbe_test_run()
2098 t->err = "PKCS12_ERROR"; in pbe_test_run()
2099 goto err; in pbe_test_run()
2104 goto err; in pbe_test_run()
2106 t->err = NULL; in pbe_test_run()
2107 err: in pbe_test_run()
2156 goto err; in encode_test_init()
2161 goto err; in encode_test_init()
2165 err: in encode_test_init()
2199 t->err = "INTERNAL_ERROR"; in encode_test_run()
2200 goto err; in encode_test_run()
2208 goto err; in encode_test_run()
2213 goto err; in encode_test_run()
2223 goto err; in encode_test_run()
2228 goto err; in encode_test_run()
2233 t->err = "DECODE_ERROR"; in encode_test_run()
2234 goto err; in encode_test_run()
2239 t->err = "DECODE_ERROR"; in encode_test_run()
2240 goto err; in encode_test_run()
2248 t->err = "BAD_DECODING"; in encode_test_run()
2249 goto err; in encode_test_run()
2252 t->err = NULL; in encode_test_run()
2253 err: in encode_test_run()
2319 goto err; in rand_test_init()
2323 goto err; in rand_test_init()
2327 goto err; in rand_test_init()
2331 goto err; in rand_test_init()
2335 goto err; in rand_test_init()
2340 err: in rand_test_init()
2460 goto err; in rand_test_run()
2476 goto err; in rand_test_run()
2483 goto err; in rand_test_run()
2491 goto err; in rand_test_run()
2497 goto err; in rand_test_run()
2505 goto err; in rand_test_run()
2511 goto err; in rand_test_run()
2525 goto err; in rand_test_run()
2527 goto err; in rand_test_run()
2533 goto err; in rand_test_run()
2535 t->err = NULL; in rand_test_run()
2538 err: in rand_test_run()
2631 t->err = "KDF_PARAM_ERROR"; in kdf_test_ctrl()
2671 t->err = "KDF_CTRL_ERROR"; in kdf_test_run()
2675 t->err = "INTERNAL_ERROR"; in kdf_test_run()
2676 goto err; in kdf_test_run()
2679 t->err = "KDF_DERIVE_ERROR"; in kdf_test_run()
2680 goto err; in kdf_test_run()
2685 goto err; in kdf_test_run()
2687 t->err = NULL; in kdf_test_run()
2689 err: in kdf_test_run()
2734 goto err; in pkey_kdf_test_init()
2738 err: in pkey_kdf_test_init()
2771 t->err = "INTERNAL_ERROR"; in pkey_kdf_test_run()
2772 goto err; in pkey_kdf_test_run()
2775 t->err = "KDF_DERIVE_ERROR"; in pkey_kdf_test_run()
2776 goto err; in pkey_kdf_test_run()
2779 t->err = "KDF_MISMATCH"; in pkey_kdf_test_run()
2780 goto err; in pkey_kdf_test_run()
2782 t->err = NULL; in pkey_kdf_test_run()
2784 err: in pkey_kdf_test_run()
2816 t->err = "PARSING_ERROR"; in keypair_test_init()
2823 t->err = "MISSING_PRIVATE_KEY"; in keypair_test_init()
2828 t->err = "MISSING_PUBLIC_KEY"; in keypair_test_init()
2845 t->err = NULL; in keypair_test_init()
2877 t->err = "KEYPAIR_TYPE_MISMATCH"; in keypair_test_run()
2884 t->err = "KEYPAIR_MISMATCH"; in keypair_test_run()
2886 t->err = "KEYPAIR_TYPE_MISMATCH"; in keypair_test_run()
2888 t->err = "UNSUPPORTED_KEY_COMPARISON"; in keypair_test_run()
2899 t->err = NULL; in keypair_test_run()
2939 goto err; in keygen_test_init()
2942 t->err = "KEYGEN_INIT_ERROR"; in keygen_test_init()
2943 goto err; in keygen_test_init()
2947 goto err; in keygen_test_init()
2951 t->err = NULL; in keygen_test_init()
2954 err: in keygen_test_init()
2988 t->err = "KEYGEN_GENERATE_ERROR"; in keygen_test_run()
2989 goto err; in keygen_test_run()
2994 goto err; in keygen_test_run()
3002 goto err; in keygen_test_run()
3006 goto err; in keygen_test_run()
3017 t->err = NULL; in keygen_test_run()
3019 err: in keygen_test_run()
3114 t->err = "DIGESTVERIFYINIT_ERROR"; in digestsigver_test_parse()
3119 t->err = "DIGESTSIGNINIT_ERROR"; in digestsigver_test_parse()
3159 t->err = "DIGESTUPDATE_ERROR"; in digestsign_test_run()
3160 goto err; in digestsign_test_run()
3164 t->err = "DIGESTSIGNFINAL_LENGTH_ERROR"; in digestsign_test_run()
3165 goto err; in digestsign_test_run()
3168 t->err = "MALLOC_FAILURE"; in digestsign_test_run()
3169 goto err; in digestsign_test_run()
3172 t->err = "DIGESTSIGNFINAL_ERROR"; in digestsign_test_run()
3173 goto err; in digestsign_test_run()
3178 goto err; in digestsign_test_run()
3180 t->err = NULL; in digestsign_test_run()
3181 err: in digestsign_test_run()
3210 t->err = "DIGESTUPDATE_ERROR"; in digestverify_test_run()
3216 t->err = "VERIFY_ERROR"; in digestverify_test_run()
3241 t->err = "DIGESTSIGN_LENGTH_ERROR"; in oneshot_digestsign_test_run()
3242 goto err; in oneshot_digestsign_test_run()
3245 t->err = "MALLOC_FAILURE"; in oneshot_digestsign_test_run()
3246 goto err; in oneshot_digestsign_test_run()
3250 t->err = "DIGESTSIGN_ERROR"; in oneshot_digestsign_test_run()
3251 goto err; in oneshot_digestsign_test_run()
3256 goto err; in oneshot_digestsign_test_run()
3258 t->err = NULL; in oneshot_digestsign_test_run()
3259 err: in oneshot_digestsign_test_run()
3283 t->err = "VERIFY_ERROR"; in oneshot_digestverify_test_run()
3350 t->err = NULL; in clear_test()
3358 unsigned long err; in check_test_error() local
3361 if (t->err == NULL && t->expected_err == NULL) in check_test_error()
3363 if (t->err != NULL && t->expected_err == NULL) { in check_test_error()
3366 t->s.test_file, t->s.start, t->aux_err, t->err); in check_test_error()
3369 t->s.test_file, t->s.start, t->err); in check_test_error()
3373 if (t->err == NULL && t->expected_err != NULL) { in check_test_error()
3379 if (strcmp(t->err, t->expected_err) != 0) { in check_test_error()
3381 t->s.test_file, t->s.start, t->expected_err, t->err); in check_test_error()
3394 err = ERR_peek_error(); in check_test_error()
3395 if (err == 0) { in check_test_error()
3401 reason = ERR_reason_error_string(err); in check_test_error()
3428 if (t->err == NULL && t->meth->run_test(t) != 1) { in run_test()
3472 long err = ERR_peek_last_error(); in key_unsupported() local
3473 int lib = ERR_GET_LIB(err); in key_unsupported()
3474 long reason = ERR_GET_REASON(err); in key_unsupported()