Lines Matching refs:NULL

64     DSA *dsa = NULL;  in dsa_test()
70 const BIGNUM *p = NULL, *q = NULL, *g = NULL; in dsa_test()
85 BN_GENCB_set(cb, dsa_cb, NULL); in dsa_test()
152 EVP_PKEY *param_key = NULL, *key = NULL; in dsa_keygen_test()
153 EVP_PKEY_CTX *pg_ctx = NULL, *kg_ctx = NULL; in dsa_keygen_test()
154 BIGNUM *p_in = NULL, *q_in = NULL, *g_in = NULL; in dsa_keygen_test()
155 BIGNUM *p_out = NULL, *q_out = NULL, *g_out = NULL; in dsa_keygen_test()
160 const OSSL_PARAM *settables = NULL; in dsa_keygen_test()
244 if (!TEST_ptr(p_in = BN_bin2bn(expected_p, sizeof(expected_p), NULL)) in dsa_keygen_test()
245 || !TEST_ptr(q_in = BN_bin2bn(expected_q, sizeof(expected_q), NULL)) in dsa_keygen_test()
246 || !TEST_ptr(g_in = BN_bin2bn(expected_g, sizeof(expected_g), NULL))) in dsa_keygen_test()
248 if (!TEST_ptr(pg_ctx = EVP_PKEY_CTX_new_from_name(NULL, "DSA", NULL)) in dsa_keygen_test()
262 || !TEST_ptr(kg_ctx = EVP_PKEY_CTX_new_from_pkey(NULL, param_key, NULL)) in dsa_keygen_test()
310 EVP_PKEY_CTX *gen_ctx = NULL; in test_dsa_default_paramgen_validate()
311 EVP_PKEY_CTX *check_ctx = NULL; in test_dsa_default_paramgen_validate()
312 EVP_PKEY *params = NULL; in test_dsa_default_paramgen_validate()
314 ret = TEST_ptr(gen_ctx = EVP_PKEY_CTX_new_from_name(NULL, "DSA", NULL)) in test_dsa_default_paramgen_validate()
319 && TEST_ptr(check_ctx = EVP_PKEY_CTX_new_from_pkey(NULL, params, NULL)) in test_dsa_default_paramgen_validate()
331 DSA *dsa = NULL; in test_dsa_sig_infinite_loop()
332 BIGNUM *p = NULL, *q = NULL, *g = NULL, *priv = NULL, *pub = NULL, *priv2 = NULL; in test_dsa_sig_infinite_loop()
333 BIGNUM *badq = NULL, *badpriv = NULL; in test_dsa_sig_infinite_loop()
354 if (!TEST_ptr(p = BN_bin2bn(out_p, sizeof(out_p), NULL)) in test_dsa_sig_infinite_loop()
355 || !TEST_ptr(q = BN_bin2bn(out_q, sizeof(out_q), NULL)) in test_dsa_sig_infinite_loop()
356 || !TEST_ptr(g = BN_bin2bn(out_g, sizeof(out_g), NULL)) in test_dsa_sig_infinite_loop()
357 || !TEST_ptr(pub = BN_bin2bn(out_pub, sizeof(out_pub), NULL)) in test_dsa_sig_infinite_loop()
358 || !TEST_ptr(priv = BN_bin2bn(out_priv, sizeof(out_priv), NULL)) in test_dsa_sig_infinite_loop()
369 p = q = g = NULL; in test_dsa_sig_infinite_loop()
373 pub = priv = NULL; in test_dsa_sig_infinite_loop()
379 if (!TEST_true(DSA_sign(0, msg, sizeof(msg), NULL, &signature_len0, dsa)) in test_dsa_sig_infinite_loop()
389 if (!TEST_true(DSA_set0_key(dsa, NULL, badpriv))) in test_dsa_sig_infinite_loop()
391 badpriv = NULL; in test_dsa_sig_infinite_loop()
396 if (!TEST_true(DSA_set0_key(dsa, NULL, priv2))) in test_dsa_sig_infinite_loop()
398 priv2 = NULL; in test_dsa_sig_infinite_loop()
399 if (!TEST_true(DSA_set0_pqg(dsa, NULL, badq, NULL))) in test_dsa_sig_infinite_loop()
401 badq = NULL; in test_dsa_sig_infinite_loop()
422 DSA *dsa = NULL; in test_dsa_sig_neg_param()
423 BIGNUM *p = NULL, *q = NULL, *g = NULL, *priv = NULL, *pub = NULL; in test_dsa_sig_neg_param()
443 if (!TEST_ptr(p = BN_bin2bn(out_p, sizeof(out_p), NULL)) in test_dsa_sig_neg_param()
444 || !TEST_ptr(q = BN_bin2bn(out_q, sizeof(out_q), NULL)) in test_dsa_sig_neg_param()
445 || !TEST_ptr(g = BN_bin2bn(out_g, sizeof(out_g), NULL)) in test_dsa_sig_neg_param()
446 || !TEST_ptr(pub = BN_bin2bn(out_pub, sizeof(out_pub), NULL)) in test_dsa_sig_neg_param()
447 || !TEST_ptr(priv = BN_bin2bn(out_priv, sizeof(out_priv), NULL)) in test_dsa_sig_neg_param()
457 pub = priv = NULL; in test_dsa_sig_neg_param()