Lines Matching refs:tst
1499 static int test_EVP_PKEY_sign(int tst) in test_EVP_PKEY_sign() argument
1511 if (tst == 0) { in test_EVP_PKEY_sign()
1514 } else if (tst == 1) { in test_EVP_PKEY_sign()
1560 static int test_EVP_PKEY_sign_with_app_method(int tst) in test_EVP_PKEY_sign_with_app_method() argument
1578 if (tst == 0) { in test_EVP_PKEY_sign_with_app_method()
1717 static int test_EVP_DigestSignInit(int tst) in test_EVP_DigestSignInit() argument
1734 if (tst >= 15) { in test_EVP_DigestSignInit()
1736 tst -= 15; in test_EVP_DigestSignInit()
1739 if (tst >= 6 && tst <= 8) { in test_EVP_DigestSignInit()
1753 if (tst % 3 == 0) { in test_EVP_DigestSignInit()
1756 } else if (tst % 3 == 1) { in test_EVP_DigestSignInit()
1769 if (tst >= 3 && tst <= 5) in test_EVP_DigestSignInit()
1780 if (tst >= 6 && tst <= 8) { in test_EVP_DigestSignInit()
1783 } else if (tst < 6) { in test_EVP_DigestSignInit()
1788 if (tst >= 9) { in test_EVP_DigestSignInit()
1794 if (tst <= 11) { in test_EVP_DigestSignInit()
1826 if (tst % 3 != 2) { in test_EVP_DigestSignInit()
1827 if (tst >= 6 && tst <= 8) { in test_EVP_DigestSignInit()
1837 if (tst >= 6 && tst <= 8) { in test_EVP_DigestSignInit()
2612 static int test_set_get_raw_keys_int(int tst, int pub, int uselibctx) in test_set_get_raw_keys_int() argument
2621 if (pub && keys[tst].pub == NULL) in test_set_get_raw_keys_int()
2628 inlen = strlen(keys[tst].pub); in test_set_get_raw_keys_int()
2629 in = (unsigned char *)keys[tst].pub; in test_set_get_raw_keys_int()
2633 OBJ_nid2sn(keys[tst].type), in test_set_get_raw_keys_int()
2638 pkey = EVP_PKEY_new_raw_public_key(keys[tst].type, in test_set_get_raw_keys_int()
2647 inlen = strlen(keys[tst].priv); in test_set_get_raw_keys_int()
2648 in = (unsigned char *)keys[tst].priv; in test_set_get_raw_keys_int()
2651 testctx, OBJ_nid2sn(keys[tst].type), in test_set_get_raw_keys_int()
2656 pkey = EVP_PKEY_new_raw_private_key(keys[tst].type, in test_set_get_raw_keys_int()
2669 if (tst != 1) { in test_set_get_raw_keys_int()
2691 static int test_set_get_raw_keys(int tst) in test_set_get_raw_keys() argument
2693 return (nullprov != NULL || test_set_get_raw_keys_int(tst, 0, 0)) in test_set_get_raw_keys()
2694 && test_set_get_raw_keys_int(tst, 0, 1) in test_set_get_raw_keys()
2695 && (nullprov != NULL || test_set_get_raw_keys_int(tst, 1, 0)) in test_set_get_raw_keys()
2696 && test_set_get_raw_keys_int(tst, 1, 1); in test_set_get_raw_keys()
3627 static int test_pkey_ctx_fail_without_provider(int tst) in test_pkey_ctx_fail_without_provider() argument
3650 switch (tst) { in test_pkey_ctx_fail_without_provider()
3668 TEST_error("No test for case %d", tst); in test_pkey_ctx_fail_without_provider()
5331 static int test_signatures_with_engine(int tst) in test_signatures_with_engine() argument
5355 if (tst <= 1) in test_signatures_with_engine()
5360 if (tst == 2) in test_signatures_with_engine()
5372 switch (tst) { in test_signatures_with_engine()
5395 ret = EVP_DigestSignInit(ctx, NULL, tst == 2 ? NULL : EVP_sha256(), NULL, in test_signatures_with_engine()
5397 if (tst == 0) { in test_signatures_with_engine()
5485 static int test_ecx_short_keys(int tst) in test_ecx_short_keys() argument
5491 pkey = EVP_PKEY_new_raw_private_key_ex(testctx, OBJ_nid2sn(ecxnids[tst]), in test_ecx_short_keys()
5524 static int test_ecx_not_private_key(int tst) in test_ecx_not_private_key() argument
5536 switch (keys[tst].type) { in test_ecx_not_private_key()
5543 if (keys[tst].pub == NULL) in test_ecx_not_private_key()
5546 pubkey = (unsigned char *)keys[tst].pub; in test_ecx_not_private_key()
5547 pubkeylen = strlen(keys[tst].pub); in test_ecx_not_private_key()
5549 pkey = EVP_PKEY_new_raw_public_key_ex(testctx, OBJ_nid2sn(keys[tst].type), in test_ecx_not_private_key()