Lines Matching refs:NULL

87         return NULL;  in dh_newctx()
90 if (pdhctx == NULL) in dh_newctx()
91 return NULL; in dh_newctx()
127 || pdhctx == NULL in dh_init()
128 || vdh == NULL in dh_init()
152 ret = dhparams_priv != NULL in dh_match_params()
153 && dhparams_peer != NULL in dh_match_params()
165 || pdhctx == NULL in dh_set_peer()
166 || vdh == NULL in dh_set_peer()
182 const BIGNUM *pub_key = NULL; in dh_plain_derive()
184 if (pdhctx->dh == NULL || pdhctx->dhpeer == NULL) { in dh_plain_derive()
190 if (secret == NULL) { in dh_plain_derive()
199 DH_get0_key(pdhctx->dhpeer, &pub_key, NULL); in dh_plain_derive()
215 unsigned char *stmp = NULL; in dh_X9_42_kdf_derive()
219 if (secret == NULL) { in dh_X9_42_kdf_derive()
228 if (!dh_plain_derive(pdhctx, NULL, &stmplen, 0, 1)) in dh_X9_42_kdf_derive()
230 if ((stmp = OPENSSL_secure_malloc(stmplen)) == NULL) in dh_X9_42_kdf_derive()
243 pdhctx->libctx, NULL)) in dh_X9_42_kdf_derive()
292 return NULL; in dh_dupctx()
295 if (dstctx == NULL) in dh_dupctx()
296 return NULL; in dh_dupctx()
299 dstctx->dh = NULL; in dh_dupctx()
300 dstctx->dhpeer = NULL; in dh_dupctx()
301 dstctx->kdf_md = NULL; in dh_dupctx()
302 dstctx->kdf_ukm = NULL; in dh_dupctx()
303 dstctx->kdf_cekalg = NULL; in dh_dupctx()
305 if (srcctx->dh != NULL && !DH_up_ref(srcctx->dh)) in dh_dupctx()
310 if (srcctx->dhpeer != NULL && !DH_up_ref(srcctx->dhpeer)) in dh_dupctx()
315 if (srcctx->kdf_md != NULL && !EVP_MD_up_ref(srcctx->kdf_md)) in dh_dupctx()
321 if (srcctx->kdf_ukm != NULL && srcctx->kdf_ukmlen > 0) { in dh_dupctx()
324 if (dstctx->kdf_ukm == NULL) in dh_dupctx()
328 if (srcctx->kdf_cekalg != NULL) { in dh_dupctx()
330 if (dstctx->kdf_cekalg == NULL) in dh_dupctx()
337 return NULL; in dh_dupctx()
346 char *str = NULL; in dh_set_ctx_params()
348 if (pdhctx == NULL) in dh_set_ctx_params()
350 if (params == NULL) in dh_set_ctx_params()
361 if (p != NULL) { in dh_set_ctx_params()
374 if (p != NULL) { in dh_set_ctx_params()
385 if (p != NULL) { in dh_set_ctx_params()
392 if (pdhctx->kdf_md == NULL) in dh_set_ctx_params()
402 pdhctx->kdf_md = NULL; in dh_set_ctx_params()
409 if (p != NULL) { in dh_set_ctx_params()
418 if (p != NULL) { in dh_set_ctx_params()
419 void *tmp_ukm = NULL; in dh_set_ctx_params()
423 pdhctx->kdf_ukm = NULL; in dh_set_ctx_params()
426 if (p->data != NULL && p->data_size != 0) { in dh_set_ctx_params()
435 if (p != NULL) { in dh_set_ctx_params()
442 if (p != NULL) { in dh_set_ctx_params()
446 pdhctx->kdf_cekalg = NULL; in dh_set_ctx_params()
447 if (p->data != NULL && p->data_size != 0) { in dh_set_ctx_params()
451 if (pdhctx->kdf_cekalg == NULL) in dh_set_ctx_params()
459 OSSL_PARAM_int(OSSL_EXCHANGE_PARAM_PAD, NULL),
460 OSSL_PARAM_utf8_string(OSSL_EXCHANGE_PARAM_KDF_TYPE, NULL, 0),
461 OSSL_PARAM_utf8_string(OSSL_EXCHANGE_PARAM_KDF_DIGEST, NULL, 0),
462 OSSL_PARAM_utf8_string(OSSL_EXCHANGE_PARAM_KDF_DIGEST_PROPS, NULL, 0),
463 OSSL_PARAM_size_t(OSSL_EXCHANGE_PARAM_KDF_OUTLEN, NULL),
464 OSSL_PARAM_octet_string(OSSL_EXCHANGE_PARAM_KDF_UKM, NULL, 0),
465 OSSL_PARAM_utf8_string(OSSL_KDF_PARAM_CEK_ALG, NULL, 0),
478 OSSL_PARAM_utf8_string(OSSL_EXCHANGE_PARAM_KDF_TYPE, NULL, 0),
479 OSSL_PARAM_utf8_string(OSSL_EXCHANGE_PARAM_KDF_DIGEST, NULL, 0),
480 OSSL_PARAM_size_t(OSSL_EXCHANGE_PARAM_KDF_OUTLEN, NULL),
482 NULL, 0),
483 OSSL_PARAM_utf8_string(OSSL_KDF_PARAM_CEK_ALG, NULL, 0),
499 if (pdhctx == NULL) in dh_get_ctx_params()
503 if (p != NULL) { in dh_get_ctx_params()
504 const char *kdf_type = NULL; in dh_get_ctx_params()
522 if (p != NULL in dh_get_ctx_params()
523 && !OSSL_PARAM_set_utf8_string(p, pdhctx->kdf_md == NULL in dh_get_ctx_params()
530 if (p != NULL && !OSSL_PARAM_set_size_t(p, pdhctx->kdf_outlen)) in dh_get_ctx_params()
534 if (p != NULL in dh_get_ctx_params()
539 if (p != NULL in dh_get_ctx_params()
540 && !OSSL_PARAM_set_utf8_string(p, pdhctx->kdf_cekalg == NULL in dh_get_ctx_params()