Lines Matching refs:NULL

36     return ossl_ec_key_new_method_int(NULL, NULL, NULL);  in EC_KEY_new()
42 return ossl_ec_key_new_method_int(ctx, propq, NULL); in EC_KEY_new_ex()
49 if (ret == NULL) in EC_KEY_new_by_curve_name_ex()
50 return NULL; in EC_KEY_new_by_curve_name_ex()
52 if (ret->group == NULL) { in EC_KEY_new_by_curve_name_ex()
54 return NULL; in EC_KEY_new_by_curve_name_ex()
56 if (ret->meth->set_group != NULL in EC_KEY_new_by_curve_name_ex()
59 return NULL; in EC_KEY_new_by_curve_name_ex()
67 return EC_KEY_new_by_curve_name_ex(NULL, NULL, nid); in EC_KEY_new_by_curve_name()
75 if (r == NULL) in EC_KEY_free()
84 if (r->meth != NULL && r->meth->finish != NULL) in EC_KEY_free()
108 if (dest == NULL || src == NULL) { in EC_KEY_copy()
110 return NULL; in EC_KEY_copy()
113 if (dest->meth->finish != NULL) in EC_KEY_copy()
120 dest->engine = NULL; in EC_KEY_copy()
125 if (src->group != NULL) { in EC_KEY_copy()
130 if (dest->group == NULL) in EC_KEY_copy()
131 return NULL; in EC_KEY_copy()
133 return NULL; in EC_KEY_copy()
136 if (src->pub_key != NULL) { in EC_KEY_copy()
139 if (dest->pub_key == NULL) in EC_KEY_copy()
140 return NULL; in EC_KEY_copy()
142 return NULL; in EC_KEY_copy()
145 if (src->priv_key != NULL) { in EC_KEY_copy()
146 if (dest->priv_key == NULL) { in EC_KEY_copy()
148 if (dest->priv_key == NULL) in EC_KEY_copy()
149 return NULL; in EC_KEY_copy()
152 return NULL; in EC_KEY_copy()
155 return NULL; in EC_KEY_copy()
168 return NULL; in EC_KEY_copy()
173 if (src->engine != NULL && ENGINE_init(src->engine) == 0) in EC_KEY_copy()
174 return NULL; in EC_KEY_copy()
180 if (src->meth->copy != NULL && src->meth->copy(dest, src) == 0) in EC_KEY_copy()
181 return NULL; in EC_KEY_copy()
212 if (eckey == NULL || eckey->group == NULL) { in EC_KEY_generate_key()
216 if (eckey->meth->keygen != NULL) { in EC_KEY_generate_key()
257 OSSL_SELF_TEST *st = NULL; in ecdsa_keygen_knownanswer_test()
261 if (pub_key2 == NULL) in ecdsa_keygen_knownanswer_test()
265 if (st == NULL) in ecdsa_keygen_knownanswer_test()
272 if (!EC_POINT_mul(eckey->group, pub_key2, eckey->priv_key, NULL, NULL, ctx)) in ecdsa_keygen_knownanswer_test()
279 && BN_bin2bn(bytes, len, pub_key2->X) == NULL) in ecdsa_keygen_knownanswer_test()
305 BIGNUM *priv_key = NULL; in ec_generate_key()
306 const BIGNUM *tmp = NULL; in ec_generate_key()
307 BIGNUM *order = NULL; in ec_generate_key()
308 EC_POINT *pub_key = NULL; in ec_generate_key()
313 if (ctx == NULL) in ec_generate_key()
316 if (eckey->priv_key == NULL) { in ec_generate_key()
318 if (priv_key == NULL) in ec_generate_key()
330 if (tmp == NULL) in ec_generate_key()
345 if (order == NULL || !BN_sub(order, tmp, BN_value_one())) in ec_generate_key()
349 if (order == NULL) in ec_generate_key()
358 if (eckey->pub_key == NULL) { in ec_generate_key()
360 if (pub_key == NULL) in ec_generate_key()
366 if (!EC_POINT_mul(group, pub_key, priv_key, NULL, NULL, ctx)) in ec_generate_key()
371 priv_key = NULL; in ec_generate_key()
372 pub_key = NULL; in ec_generate_key()
382 OSSL_CALLBACK *cb = NULL; in ec_generate_key()
383 void *cbarg = NULL; in ec_generate_key()
394 if (eckey->pub_key != NULL) in ec_generate_key()
415 if (eckey->priv_key == NULL) { in ossl_ec_generate_key_dhkem()
417 if (eckey->priv_key == NULL) in ossl_ec_generate_key_dhkem()
422 if (eckey->pub_key == NULL) { in ossl_ec_generate_key_dhkem()
424 if (eckey->pub_key == NULL) in ossl_ec_generate_key_dhkem()
434 eckey->priv_key = NULL; in ossl_ec_generate_key_dhkem()
435 if (eckey->pub_key != NULL) in ossl_ec_generate_key_dhkem()
452 if (ctx == NULL) in ossl_ec_key_simple_generate_public_key()
459 ret = EC_POINT_mul(eckey->group, eckey->pub_key, eckey->priv_key, NULL, in ossl_ec_key_simple_generate_public_key()
460 NULL, ctx); in ossl_ec_key_simple_generate_public_key()
471 if (eckey == NULL || eckey->group == NULL || eckey->pub_key == NULL) { in EC_KEY_check_key()
476 if (eckey->group->meth->keycheck == NULL) { in EC_KEY_check_key()
501 if (y == NULL) in ec_key_public_range_check()
532 if (eckey == NULL || eckey->group == NULL || eckey->pub_key == NULL) { in ossl_ec_key_public_check_quick()
564 EC_POINT *point = NULL; in ossl_ec_key_public_check()
565 const BIGNUM *order = NULL; in ossl_ec_key_public_check()
571 if (cofactor != NULL && BN_is_one(cofactor)) { in ossl_ec_key_public_check()
577 if (point == NULL) in ossl_ec_key_public_check()
586 if (!EC_POINT_mul(eckey->group, point, NULL, eckey->pub_key, order, ctx)) { in ossl_ec_key_public_check()
607 if (eckey == NULL || eckey->group == NULL || eckey->priv_key == NULL) { in ossl_ec_key_private_check()
627 EC_POINT *point = NULL; in ossl_ec_key_pairwise_check()
629 if (eckey == NULL in ossl_ec_key_pairwise_check()
630 || eckey->group == NULL in ossl_ec_key_pairwise_check()
631 || eckey->pub_key == NULL in ossl_ec_key_pairwise_check()
632 || eckey->priv_key == NULL) { in ossl_ec_key_pairwise_check()
638 if (point == NULL) in ossl_ec_key_pairwise_check()
642 if (!EC_POINT_mul(eckey->group, point, eckey->priv_key, NULL, NULL, ctx)) { in ossl_ec_key_pairwise_check()
670 BN_CTX *ctx = NULL; in ossl_ec_key_simple_check_key()
672 if (eckey == NULL) { in ossl_ec_key_simple_check_key()
676 if ((ctx = BN_CTX_new_ex(eckey->libctx)) == NULL) in ossl_ec_key_simple_check_key()
682 if (eckey->priv_key != NULL) { in ossl_ec_key_simple_check_key()
696 BN_CTX *ctx = NULL; in EC_KEY_set_public_key_affine_coordinates()
698 EC_POINT *point = NULL; in EC_KEY_set_public_key_affine_coordinates()
701 if (key == NULL || key->group == NULL || x == NULL || y == NULL) { in EC_KEY_set_public_key_affine_coordinates()
706 if (ctx == NULL) in EC_KEY_set_public_key_affine_coordinates()
712 if (point == NULL) in EC_KEY_set_public_key_affine_coordinates()
717 if (ty == NULL) in EC_KEY_set_public_key_affine_coordinates()
774 if (key->meth->set_group != NULL && key->meth->set_group(key, group) == 0) in EC_KEY_set_group()
778 if (key->group != NULL && EC_GROUP_get_curve_name(key->group) == NID_sm2) in EC_KEY_set_group()
782 return (key->group == NULL) ? 0 : 1; in EC_KEY_set_group()
793 const BIGNUM *order = NULL; in EC_KEY_set_private_key()
794 BIGNUM *tmp_key = NULL; in EC_KEY_set_private_key()
796 if (key->group == NULL || key->group->meth == NULL) in EC_KEY_set_private_key()
808 if (order == NULL || BN_is_zero(order)) in EC_KEY_set_private_key()
811 if (key->group->meth->set_private != NULL in EC_KEY_set_private_key()
814 if (key->meth->set_private != NULL in EC_KEY_set_private_key()
822 if (priv_key == NULL) { in EC_KEY_set_private_key()
824 key->priv_key = NULL; in EC_KEY_set_private_key()
867 if (tmp_key == NULL) in EC_KEY_set_private_key()
873 if (bn_wexpand(tmp_key, fixed_top) == NULL) { in EC_KEY_set_private_key()
892 if (key->meth->set_public != NULL in EC_KEY_set_public_key()
898 return (key->pub_key == NULL) ? 0 : 1; in EC_KEY_set_public_key()
919 if (key->group != NULL) in EC_KEY_set_conv_form()
925 if (key->group != NULL) in EC_KEY_set_asn1_flag()
932 if (key->group == NULL) in EC_KEY_precompute_mult()
957 if (key == NULL || key->group == NULL) in EC_KEY_decoded_from_explicit_params()
965 if (key == NULL || key->pub_key == NULL || key->group == NULL) in EC_KEY_key2buf()
973 if (key == NULL || key->group == NULL) in EC_KEY_oct2key()
975 if (key->pub_key == NULL) in EC_KEY_oct2key()
977 if (key->pub_key == NULL) in EC_KEY_oct2key()
997 if (eckey->group == NULL || eckey->group->meth == NULL) in EC_KEY_priv2oct()
999 if (eckey->group->meth->priv2oct == NULL) { in EC_KEY_priv2oct()
1013 if (eckey->priv_key == NULL) in ossl_ec_key_simple_priv2oct()
1015 if (buf == NULL) in ossl_ec_key_simple_priv2oct()
1034 if (eckey->group == NULL || eckey->group->meth == NULL) in EC_KEY_oct2priv()
1036 if (eckey->group->meth->oct2priv == NULL) { in EC_KEY_oct2priv()
1049 if (eckey->priv_key == NULL) in ossl_ec_key_simple_oct2priv()
1051 if (eckey->priv_key == NULL) { in ossl_ec_key_simple_oct2priv()
1055 if (BN_bin2bn(buf, len, eckey->priv_key) == NULL) { in ossl_ec_key_simple_oct2priv()
1068 len = EC_KEY_priv2oct(eckey, NULL, 0); in EC_KEY_priv2buf()
1071 if ((buf = OPENSSL_malloc(len)) == NULL) in EC_KEY_priv2buf()
1084 if (eckey->group == NULL || eckey->group->meth == NULL in EC_KEY_can_sign()
1105 ECDSA_SIG *sig = NULL; in ecdsa_keygen_pairwise_test()
1106 OSSL_SELF_TEST *st = NULL; in ecdsa_keygen_pairwise_test()
1109 if (st == NULL) in ecdsa_keygen_pairwise_test()
1116 if (sig == NULL) in ecdsa_keygen_pairwise_test()