Lines Matching refs:NULL

33 static OSSL_PROVIDER *fake_rand = NULL;
34 static uint8_t *fake_rand_bytes = NULL;
59 if (!TEST_ptr(fake_rand_bytes = OPENSSL_hexstr2buf(hex_bytes, NULL))) in start_fake_rand()
63 fake_rand_set_public_private_callbacks(NULL, get_faked_bytes); in start_fake_rand()
70 fake_rand_set_public_private_callbacks(NULL, NULL); in restore_rand()
72 fake_rand_bytes = NULL; in restore_rand()
81 BIGNUM *p = NULL; in create_EC_group()
82 BIGNUM *a = NULL; in create_EC_group()
83 BIGNUM *b = NULL; in create_EC_group()
84 BIGNUM *g_x = NULL; in create_EC_group()
85 BIGNUM *g_y = NULL; in create_EC_group()
86 BIGNUM *order = NULL; in create_EC_group()
87 BIGNUM *cof = NULL; in create_EC_group()
88 EC_POINT *generator = NULL; in create_EC_group()
89 EC_GROUP *group = NULL; in create_EC_group()
97 group = EC_GROUP_new_curve_GFp(p, a, b, NULL); in create_EC_group()
108 g_y, NULL))) in create_EC_group()
128 group = NULL; in create_EC_group()
141 BIGNUM *priv = NULL; in test_sm2_crypt()
142 EC_KEY *key = NULL; in test_sm2_crypt()
143 EC_POINT *pt = NULL; in test_sm2_crypt()
144 unsigned char *expected = OPENSSL_hexstr2buf(ctext_hex, NULL); in test_sm2_crypt()
147 uint8_t *ctext = NULL; in test_sm2_crypt()
148 uint8_t *recovered = NULL; in test_sm2_crypt()
164 || !TEST_true(EC_POINT_mul(group, pt, priv, NULL, NULL, NULL)) in test_sm2_crypt()
212 EC_GROUP *gm_group = NULL; in sm2_crypt_test()
313 BIGNUM *priv = NULL; in test_sm2_sign()
314 EC_POINT *pt = NULL; in test_sm2_sign()
315 EC_KEY *key = NULL; in test_sm2_sign()
316 ECDSA_SIG *sig = NULL; in test_sm2_sign()
317 const BIGNUM *sig_r = NULL; in test_sm2_sign()
318 const BIGNUM *sig_s = NULL; in test_sm2_sign()
319 BIGNUM *r = NULL; in test_sm2_sign()
320 BIGNUM *s = NULL; in test_sm2_sign()
334 || !TEST_true(EC_POINT_mul(group, pt, priv, NULL, NULL, NULL)) in test_sm2_sign()
376 EC_GROUP *gm_group = NULL; in sm2_sig_test()
469 fake_rand = fake_rand_start(NULL); in setup_tests()
470 if (fake_rand == NULL) in setup_tests()