Lines Matching refs:TEST_ptr

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