Lines Matching refs:NULL
21 EVP_PKEY_CTX *pctx = EVP_PKEY_CTX_new_from_name(libctx, type, NULL); in get_dh_from_pg_bn()
22 OSSL_PARAM_BLD *tmpl = NULL; in get_dh_from_pg_bn()
23 OSSL_PARAM *params = NULL; in get_dh_from_pg_bn()
24 EVP_PKEY *dhpkey = NULL; in get_dh_from_pg_bn()
26 if (pctx == NULL || EVP_PKEY_fromdata_init(pctx) <= 0) in get_dh_from_pg_bn()
29 if ((tmpl = OSSL_PARAM_BLD_new()) == NULL in get_dh_from_pg_bn()
32 || (q != NULL in get_dh_from_pg_bn()
37 if (params == NULL in get_dh_from_pg_bn()
53 EVP_PKEY *dhpkey = NULL; in get_dh_from_pg()
54 BIGNUM *p = NULL, *g = NULL, *q = NULL; in get_dh_from_pg()
56 p = BN_bin2bn(pdata, plen, NULL); in get_dh_from_pg()
57 g = BN_bin2bn(gdata, glen, NULL); in get_dh_from_pg()
58 if (p == NULL || g == NULL) in get_dh_from_pg()
60 if (qdata != NULL && (q = BN_bin2bn(qdata, qlen, NULL)) == NULL) in get_dh_from_pg()
87 dh512_g, sizeof(dh512_g), NULL, 0); in get_dh512()
149 dh1024_g, sizeof(dh1024_g), NULL, 0); in get_dh1024dsa()
154 BIGNUM *p = NULL, *g = NULL; in get_dh2048()
155 EVP_PKEY *dhpkey = NULL; in get_dh2048()
158 if (g == NULL || !BN_set_word(g, 2)) in get_dh2048()
161 p = BN_get_rfc3526_prime_2048(NULL); in get_dh2048()
162 if (p == NULL) in get_dh2048()
165 dhpkey = get_dh_from_pg_bn(libctx, "DH", p, g, NULL); in get_dh2048()
175 BIGNUM *p = NULL, *g = NULL; in get_dh4096()
176 EVP_PKEY *dhpkey = NULL; in get_dh4096()
179 if (g == NULL || !BN_set_word(g, 2)) in get_dh4096()
182 p = BN_get_rfc3526_prime_4096(NULL); in get_dh4096()
183 if (p == NULL) in get_dh4096()
186 dhpkey = get_dh_from_pg_bn(libctx, "DH", p, g, NULL); in get_dh4096()