Lines Matching defs:tst

1122 static int test_EVP_PKEY_sign(int tst)
1134 if (tst == 0 ) {
1137 } else if (tst == 1) {
1258 static int test_EVP_DigestSignInit(int tst)
1275 if (tst >= 15) {
1277 tst -= 15;
1280 if (tst >= 6 && tst <= 8) {
1294 if (tst % 3 == 0) {
1297 } else if (tst % 3 == 1) {
1310 if (tst >= 3 && tst <= 5)
1321 if (tst >= 6 && tst <= 8) {
1324 } else if (tst < 6) {
1329 if (tst >= 9) {
1335 if (tst <= 11) {
1367 if (tst % 3 != 2) {
1368 if (tst >= 6 && tst <= 8) {
1378 if (tst >= 6 && tst <= 8) {
2153 static int test_set_get_raw_keys_int(int tst, int pub, int uselibctx)
2162 if (pub && keys[tst].pub == NULL)
2169 inlen = strlen(keys[tst].pub);
2170 in = (unsigned char *)keys[tst].pub;
2174 OBJ_nid2sn(keys[tst].type),
2179 pkey = EVP_PKEY_new_raw_public_key(keys[tst].type,
2188 inlen = strlen(keys[tst].priv);
2189 in = (unsigned char *)keys[tst].priv;
2192 testctx, OBJ_nid2sn(keys[tst].type),
2197 pkey = EVP_PKEY_new_raw_private_key(keys[tst].type,
2210 if (tst != 1) {
2232 static int test_set_get_raw_keys(int tst)
2234 return (nullprov != NULL || test_set_get_raw_keys_int(tst, 0, 0))
2235 && test_set_get_raw_keys_int(tst, 0, 1)
2236 && (nullprov != NULL || test_set_get_raw_keys_int(tst, 1, 0))
2237 && test_set_get_raw_keys_int(tst, 1, 1);
3033 static int test_pkey_ctx_fail_without_provider(int tst)
3056 switch (tst) {
3074 TEST_error("No test for case %d", tst);
4494 static int test_signatures_with_engine(int tst)
4518 if (tst <= 1)
4530 switch (tst) {
4553 ret = EVP_DigestSignInit(ctx, NULL, tst == 2 ? NULL : EVP_sha256(), NULL,
4555 if (tst == 0) {
4642 static int test_ecx_short_keys(int tst)
4648 pkey = EVP_PKEY_new_raw_private_key_ex(testctx, OBJ_nid2sn(ecxnids[tst]),
4677 static int test_ecx_not_private_key(int tst)
4689 switch (keys[tst].type) {
4696 if (keys[tst].pub == NULL)
4699 pubkey = (unsigned char *)keys[tst].pub;
4700 pubkeylen = strlen(keys[tst].pub);
4702 pkey = EVP_PKEY_new_raw_public_key_ex(testctx, OBJ_nid2sn(keys[tst].type),