Lines Matching refs:TEST_ptr

98     if (!TEST_ptr(sig = OPENSSL_malloc(sz))
99 || !TEST_ptr(md_ctx = EVP_MD_CTX_new())
126 if (!TEST_ptr(pkey = EVP_PKEY_Q_keygen(libctx, NULL, "EC", tst->curve_name))
159 if (!TEST_ptr(bld = OSSL_PARAM_BLD_new())
166 || !TEST_ptr(params = OSSL_PARAM_BLD_to_param(bld))
167 || !TEST_ptr(ctx = EVP_PKEY_CTX_new_from_name(libctx, "EC", NULL))
194 if (!TEST_ptr(key_ctx = EVP_PKEY_CTX_new_from_pkey(libctx, pkey, ""))
256 if (!TEST_ptr(pkey = EVP_PKEY_Q_keygen(libctx, NULL, "EC", tst->curve_name)))
289 if (!TEST_ptr(sign = ECDSA_SIG_new())
290 || !TEST_ptr(rbn = BN_bin2bn(tst->r, tst->r_len, NULL))
291 || !TEST_ptr(sbn = BN_bin2bn(tst->s, tst->s_len, NULL))
297 && TEST_ptr(md_ctx = EVP_MD_CTX_new())
342 if (!TEST_ptr(paramgen_ctx = EVP_PKEY_CTX_new_from_name(libctx, "DSA", NULL))
357 if (!TEST_ptr(param_key = dsa_paramgen(L, N))
358 || !TEST_ptr(keygen_ctx = EVP_PKEY_CTX_new_from_pkey(libctx, param_key,
378 if (!TEST_ptr(param_key = dsa_paramgen(tst->L, tst->N))
379 || !TEST_ptr(keygen_ctx = EVP_PKEY_CTX_new_from_pkey(libctx, param_key,
418 if (!TEST_ptr(paramgen_ctx = EVP_PKEY_CTX_new_from_name(libctx, "DSA", NULL))
464 if (!TEST_ptr(bld = OSSL_PARAM_BLD_new())
465 || !TEST_ptr(p_bn = BN_CTX_get(bn_ctx))
466 || !TEST_ptr(BN_bin2bn(p, p_len, p_bn))
474 || !TEST_ptr(q_bn = BN_CTX_get(bn_ctx))
475 || !TEST_ptr(BN_bin2bn(q, q_len, q_bn))
480 if (!TEST_ptr(g_bn = BN_CTX_get(bn_ctx))
481 || !TEST_ptr(BN_bin2bn(g, g_len, g_bn))
498 if (!TEST_ptr(pub_bn = BN_CTX_get(bn_ctx))
499 || !TEST_ptr(BN_bin2bn(pub, pub_len, pub_bn))
505 if (!TEST_ptr(params = OSSL_PARAM_BLD_to_param(bld))
506 || !TEST_ptr(ctx = EVP_PKEY_CTX_new_from_name(libctx, "DSA", NULL))
528 if (!TEST_ptr(bn_ctx = BN_CTX_new_ex(libctx))
535 || !TEST_ptr(key_ctx = EVP_PKEY_CTX_new_from_pkey(libctx, param_key,
597 if (!TEST_ptr(pkey = dsa_keygen(tst->L, tst->N)))
630 if (!TEST_ptr(bn_ctx = BN_CTX_new())
637 if (!TEST_ptr(sign = DSA_SIG_new())
638 || !TEST_ptr(rbn = BN_bin2bn(tst->r, tst->r_len, NULL))
639 || !TEST_ptr(sbn = BN_bin2bn(tst->s, tst->s_len, NULL))
644 if (!TEST_ptr(md = EVP_MD_fetch(libctx, tst->digest_alg, ""))
650 || !TEST_ptr(ctx = EVP_PKEY_CTX_new_from_pkey(libctx, pkey, ""))
684 if (!TEST_ptr(ctx = EVP_CIPHER_CTX_new())
685 || !TEST_ptr(cipher = EVP_CIPHER_fetch(libctx, alg, ""))
734 if (!TEST_ptr(ctx = EVP_CIPHER_CTX_new())
735 || !TEST_ptr(cipher = EVP_CIPHER_fetch(libctx, alg, ""))
821 if (!TEST_ptr(ctx = EVP_CIPHER_CTX_new())
822 || !TEST_ptr(cipher = EVP_CIPHER_fetch(libctx, alg, ""))
905 if (!TEST_ptr(bld = OSSL_PARAM_BLD_new())
913 if (!TEST_ptr(pub_bn = BN_CTX_get(bn_ctx))
914 || !TEST_ptr(BN_bin2bn(pub, pub_len, pub_bn))
920 if (!TEST_ptr(priv_bn = BN_CTX_get(bn_ctx))
921 || !TEST_ptr(BN_bin2bn(priv, priv_len, priv_bn))
927 if (!TEST_ptr(params = OSSL_PARAM_BLD_to_param(bld))
928 || !TEST_ptr(ctx = EVP_PKEY_CTX_new_from_name(libctx, "DH", NULL))
957 if (!TEST_ptr(ctx = EVP_PKEY_CTX_new_from_name(libctx, "DH", NULL))
986 if (!TEST_ptr(bn_ctx = BN_CTX_new_ex(libctx))
990 || !TEST_ptr(key_ctx = EVP_PKEY_CTX_new_from_pkey(libctx, pkey, ""))
1016 if (!TEST_ptr(bld = OSSL_PARAM_BLD_new())
1017 || !TEST_ptr(n_bn = BN_CTX_get(bn_ctx))
1018 || !TEST_ptr(BN_bin2bn(n, n_len, n_bn))
1023 if (!TEST_ptr(e_bn = BN_CTX_get(bn_ctx))
1024 || !TEST_ptr(BN_bin2bn(e, e_len, e_bn))
1030 if (!TEST_ptr(d_bn = BN_CTX_get(bn_ctx))
1031 || !TEST_ptr(BN_bin2bn(d, d_len, d_bn))
1036 if (!TEST_ptr(params = OSSL_PARAM_BLD_to_param(bld))
1037 || !TEST_ptr(ctx = EVP_PKEY_CTX_new_from_name(libctx, "RSA", NULL))
1069 if (!TEST_ptr(bld = OSSL_PARAM_BLD_new())
1070 || !TEST_ptr(xp1_bn = BN_bin2bn(tst->xp1, tst->xp1_len, NULL))
1071 || !TEST_ptr(xp2_bn = BN_bin2bn(tst->xp2, tst->xp2_len, NULL))
1072 || !TEST_ptr(xp_bn = BN_bin2bn(tst->xp, tst->xp_len, NULL))
1073 || !TEST_ptr(xq1_bn = BN_bin2bn(tst->xq1, tst->xq1_len, NULL))
1074 || !TEST_ptr(xq2_bn = BN_bin2bn(tst->xq2, tst->xq2_len, NULL))
1075 || !TEST_ptr(xq_bn = BN_bin2bn(tst->xq, tst->xq_len, NULL))
1088 || !TEST_ptr(params = OSSL_PARAM_BLD_to_param(bld)))
1091 if (!TEST_ptr(ctx = EVP_PKEY_CTX_new_from_name(libctx, "RSA", NULL))
1092 || !TEST_ptr(e_bn = BN_bin2bn(tst->e, tst->e_len, NULL))
1180 if (!TEST_ptr(pkey = EVP_PKEY_Q_keygen(libctx, NULL, "RSA", tst->mod))
1223 if (!TEST_ptr(bn_ctx = BN_CTX_new())
1226 || !TEST_ptr(md_ctx = EVP_MD_CTX_new())
1254 if (!TEST_ptr(pkey = EVP_PKEY_Q_keygen(libctx, NULL, "RSA", 2048))
1257 || !TEST_ptr(ctx = EVP_PKEY_CTX_new_from_pkey(libctx, pkey, ""))
1322 if (!TEST_ptr(rand = EVP_RAND_fetch(libctx, "TEST-RAND", "-fips"))
1323 || !TEST_ptr(parent = EVP_RAND_CTX_new(rand, NULL)))
1334 if (!TEST_ptr(rand = EVP_RAND_fetch(libctx, tst->drbg_name, ""))
1335 || !TEST_ptr(ctx = EVP_RAND_CTX_new(rand, parent)))
1413 if (!TEST_ptr(cipher = EVP_CIPHER_fetch(libctx, "AES-128-CFB1", "fips=yes")))
1415 if (!TEST_ptr(ctx = EVP_CIPHER_CTX_new()))
1419 if (!TEST_ptr(params = EVP_CIPHER_CTX_settable_params(ctx))
1420 || !TEST_ptr(p = OSSL_PARAM_locate_const(params,