Lines Matching refs:NULL

52     { 0,                        NULL     }
86 return NULL; in rsa_newctx()
88 if (prsactx == NULL) in rsa_newctx()
89 return NULL; in rsa_newctx()
102 if (!ossl_prov_is_running() || prsactx == NULL || vrsa == NULL) in rsa_init()
171 if (out == NULL) { in rsa_encrypt()
186 if ((tbuf = OPENSSL_malloc(rsasize)) == NULL) in rsa_encrypt()
188 if (prsactx->oaep_md == NULL) { in rsa_encrypt()
189 prsactx->oaep_md = EVP_MD_fetch(prsactx->libctx, "SHA-1", NULL); in rsa_encrypt()
190 if (prsactx->oaep_md == NULL) { in rsa_encrypt()
234 if (out == NULL) { in rsa_decrypt()
243 if (out == NULL) { in rsa_decrypt()
262 if ((tbuf = OPENSSL_malloc(len)) == NULL) in rsa_decrypt()
276 if (prsactx->oaep_md == NULL) { in rsa_decrypt()
277 prsactx->oaep_md = EVP_MD_fetch(prsactx->libctx, "SHA-1", NULL); in rsa_decrypt()
278 if (prsactx->oaep_md == NULL) { in rsa_decrypt()
334 return NULL; in rsa_dupctx()
337 if (dstctx == NULL) in rsa_dupctx()
338 return NULL; in rsa_dupctx()
341 if (dstctx->rsa != NULL && !RSA_up_ref(dstctx->rsa)) { in rsa_dupctx()
343 return NULL; in rsa_dupctx()
346 if (dstctx->oaep_md != NULL && !EVP_MD_up_ref(dstctx->oaep_md)) { in rsa_dupctx()
349 return NULL; in rsa_dupctx()
352 if (dstctx->mgf1_md != NULL && !EVP_MD_up_ref(dstctx->mgf1_md)) { in rsa_dupctx()
356 return NULL; in rsa_dupctx()
367 if (prsactx == NULL) in rsa_get_ctx_params()
371 if (p != NULL) in rsa_get_ctx_params()
380 const char *word = NULL; in rsa_get_ctx_params()
389 if (word != NULL) { in rsa_get_ctx_params()
402 if (p != NULL && !OSSL_PARAM_set_utf8_string(p, prsactx->oaep_md == NULL in rsa_get_ctx_params()
408 if (p != NULL) { in rsa_get_ctx_params()
409 EVP_MD *mgf1_md = prsactx->mgf1_md == NULL ? prsactx->oaep_md in rsa_get_ctx_params()
412 if (!OSSL_PARAM_set_utf8_string(p, mgf1_md == NULL in rsa_get_ctx_params()
419 if (p != NULL && in rsa_get_ctx_params()
425 if (p != NULL && !OSSL_PARAM_set_uint(p, prsactx->client_version)) in rsa_get_ctx_params()
429 if (p != NULL && !OSSL_PARAM_set_uint(p, prsactx->alt_version)) in rsa_get_ctx_params()
433 if (p != NULL && !OSSL_PARAM_set_uint(p, prsactx->implicit_rejection)) in rsa_get_ctx_params()
441 OSSL_PARAM_utf8_string(OSSL_ASYM_CIPHER_PARAM_OAEP_DIGEST, NULL, 0),
442 OSSL_PARAM_utf8_string(OSSL_ASYM_CIPHER_PARAM_PAD_MODE, NULL, 0),
443 OSSL_PARAM_utf8_string(OSSL_ASYM_CIPHER_PARAM_MGF1_DIGEST, NULL, 0),
445 NULL, 0),
446 OSSL_PARAM_uint(OSSL_ASYM_CIPHER_PARAM_TLS_CLIENT_VERSION, NULL),
447 OSSL_PARAM_uint(OSSL_ASYM_CIPHER_PARAM_TLS_NEGOTIATED_VERSION, NULL),
448 OSSL_PARAM_uint(OSSL_ASYM_CIPHER_PARAM_IMPLICIT_REJECTION, NULL),
465 char *str = NULL; in rsa_set_ctx_params()
467 if (prsactx == NULL) in rsa_set_ctx_params()
469 if (params == NULL) in rsa_set_ctx_params()
480 if (p != NULL) { in rsa_set_ctx_params()
487 if (p != NULL) { in rsa_set_ctx_params()
496 if (prsactx->oaep_md == NULL) in rsa_set_ctx_params()
501 if (p != NULL) { in rsa_set_ctx_params()
513 if (p->data == NULL) in rsa_set_ctx_params()
534 if (pad_mode == RSA_PKCS1_OAEP_PADDING && prsactx->oaep_md == NULL) { in rsa_set_ctx_params()
536 if (prsactx->oaep_md == NULL) in rsa_set_ctx_params()
543 if (p != NULL) { in rsa_set_ctx_params()
550 if (p != NULL) { in rsa_set_ctx_params()
555 str = NULL; in rsa_set_ctx_params()
561 if (prsactx->mgf1_md == NULL) in rsa_set_ctx_params()
566 if (p != NULL) { in rsa_set_ctx_params()
567 void *tmp_label = NULL; in rsa_set_ctx_params()
578 if (p != NULL) { in rsa_set_ctx_params()
587 if (p != NULL) { in rsa_set_ctx_params()
595 if (p != NULL) { in rsa_set_ctx_params()
606 OSSL_PARAM_utf8_string(OSSL_ASYM_CIPHER_PARAM_OAEP_DIGEST, NULL, 0),
607 OSSL_PARAM_utf8_string(OSSL_ASYM_CIPHER_PARAM_OAEP_DIGEST_PROPS, NULL, 0),
608 OSSL_PARAM_utf8_string(OSSL_ASYM_CIPHER_PARAM_PAD_MODE, NULL, 0),
609 OSSL_PARAM_utf8_string(OSSL_ASYM_CIPHER_PARAM_MGF1_DIGEST, NULL, 0),
610 OSSL_PARAM_utf8_string(OSSL_ASYM_CIPHER_PARAM_MGF1_DIGEST_PROPS, NULL, 0),
611 OSSL_PARAM_octet_string(OSSL_ASYM_CIPHER_PARAM_OAEP_LABEL, NULL, 0),
612 OSSL_PARAM_uint(OSSL_ASYM_CIPHER_PARAM_TLS_CLIENT_VERSION, NULL),
613 OSSL_PARAM_uint(OSSL_ASYM_CIPHER_PARAM_TLS_NEGOTIATED_VERSION, NULL),
614 OSSL_PARAM_uint(OSSL_ASYM_CIPHER_PARAM_IMPLICIT_REJECTION, NULL),