Lines Matching defs:tst
1144 static int test_EVP_PKEY_sign(int tst)
1156 if (tst == 0 ) {
1159 } else if (tst == 1) {
1205 static int test_EVP_PKEY_sign_with_app_method(int tst)
1223 if (tst == 0) {
1362 static int test_EVP_DigestSignInit(int tst)
1379 if (tst >= 15) {
1381 tst -= 15;
1384 if (tst >= 6 && tst <= 8) {
1398 if (tst % 3 == 0) {
1401 } else if (tst % 3 == 1) {
1414 if (tst >= 3 && tst <= 5)
1425 if (tst >= 6 && tst <= 8) {
1428 } else if (tst < 6) {
1433 if (tst >= 9) {
1439 if (tst <= 11) {
1471 if (tst % 3 != 2) {
1472 if (tst >= 6 && tst <= 8) {
1482 if (tst >= 6 && tst <= 8) {
2257 static int test_set_get_raw_keys_int(int tst, int pub, int uselibctx)
2266 if (pub && keys[tst].pub == NULL)
2273 inlen = strlen(keys[tst].pub);
2274 in = (unsigned char *)keys[tst].pub;
2278 OBJ_nid2sn(keys[tst].type),
2283 pkey = EVP_PKEY_new_raw_public_key(keys[tst].type,
2292 inlen = strlen(keys[tst].priv);
2293 in = (unsigned char *)keys[tst].priv;
2296 testctx, OBJ_nid2sn(keys[tst].type),
2301 pkey = EVP_PKEY_new_raw_private_key(keys[tst].type,
2314 if (tst != 1) {
2336 static int test_set_get_raw_keys(int tst)
2338 return (nullprov != NULL || test_set_get_raw_keys_int(tst, 0, 0))
2339 && test_set_get_raw_keys_int(tst, 0, 1)
2340 && (nullprov != NULL || test_set_get_raw_keys_int(tst, 1, 0))
2341 && test_set_get_raw_keys_int(tst, 1, 1);
3208 static int test_pkey_ctx_fail_without_provider(int tst)
3231 switch (tst) {
3249 TEST_error("No test for case %d", tst);
4859 static int test_signatures_with_engine(int tst)
4883 if (tst <= 1)
4895 switch (tst) {
4918 ret = EVP_DigestSignInit(ctx, NULL, tst == 2 ? NULL : EVP_sha256(), NULL,
4920 if (tst == 0) {
5007 static int test_ecx_short_keys(int tst)
5013 pkey = EVP_PKEY_new_raw_private_key_ex(testctx, OBJ_nid2sn(ecxnids[tst]),
5042 static int test_ecx_not_private_key(int tst)
5054 switch (keys[tst].type) {
5061 if (keys[tst].pub == NULL)
5064 pubkey = (unsigned char *)keys[tst].pub;
5065 pubkeylen = strlen(keys[tst].pub);
5067 pkey = EVP_PKEY_new_raw_public_key_ex(testctx, OBJ_nid2sn(keys[tst].type),