Lines Matching refs:NULL

47     CMS_RecipientInfo *ri = NULL;  in CMS_add0_recipient_password()
50 EVP_CIPHER_CTX *ctx = NULL; in CMS_add0_recipient_password()
51 X509_ALGOR *encalg = NULL; in CMS_add0_recipient_password()
57 if (ec == NULL) in CMS_add0_recipient_password()
58 return NULL; in CMS_add0_recipient_password()
60 if (ris == NULL) in CMS_add0_recipient_password()
61 return NULL; in CMS_add0_recipient_password()
70 if (kekciph == NULL) in CMS_add0_recipient_password()
73 if (kekciph == NULL) { in CMS_add0_recipient_password()
75 return NULL; in CMS_add0_recipient_password()
79 return NULL; in CMS_add0_recipient_password()
84 if (encalg == NULL) { in CMS_add0_recipient_password()
89 if (ctx == NULL) { in CMS_add0_recipient_password()
94 if (EVP_EncryptInit_ex(ctx, kekciph, NULL, NULL, NULL) <= 0) { in CMS_add0_recipient_password()
108 if (EVP_EncryptInit_ex(ctx, NULL, NULL, NULL, iv) <= 0) { in CMS_add0_recipient_password()
126 ctx = NULL; in CMS_add0_recipient_password()
130 if (ri == NULL) { in CMS_add0_recipient_password()
136 if (ri->d.pwri == NULL) { in CMS_add0_recipient_password()
147 if (pwri->keyEncryptionAlgorithm == NULL) { in CMS_add0_recipient_password()
153 if (pwri->keyEncryptionAlgorithm->parameter == NULL) { in CMS_add0_recipient_password()
167 encalg = NULL; in CMS_add0_recipient_password()
171 pwri->keyDerivationAlgorithm = PKCS5_pbkdf2_set(iter, NULL, 0, -1, -1); in CMS_add0_recipient_password()
173 if (pwri->keyDerivationAlgorithm == NULL) in CMS_add0_recipient_password()
191 return NULL; in CMS_add0_recipient_password()
219 if ((tmp = OPENSSL_malloc(inlen)) == NULL) in kek_unwrap_key()
235 || !EVP_DecryptInit_ex(ctx, NULL, NULL, NULL, NULL) in kek_unwrap_key()
313 X509_ALGOR *algtmp, *kekalg = NULL; in ossl_cms_RecipientInfo_pwri_crypt()
314 EVP_CIPHER_CTX *kekctx = NULL; in ossl_cms_RecipientInfo_pwri_crypt()
317 unsigned char *key = NULL; in ossl_cms_RecipientInfo_pwri_crypt()
325 if (pwri->pass == NULL) { in ossl_cms_RecipientInfo_pwri_crypt()
339 if (kekalg == NULL) { in ossl_cms_RecipientInfo_pwri_crypt()
348 if (kekcipher == NULL) { in ossl_cms_RecipientInfo_pwri_crypt()
354 if (kekctx == NULL) { in ossl_cms_RecipientInfo_pwri_crypt()
359 if (!EVP_CipherInit_ex(kekctx, kekcipher, NULL, NULL, NULL, en_de)) in ossl_cms_RecipientInfo_pwri_crypt()
382 if (!kek_wrap_key(NULL, &keylen, ec->key, ec->keylen, kekctx, cms_ctx)) in ossl_cms_RecipientInfo_pwri_crypt()
387 if (key == NULL) in ossl_cms_RecipientInfo_pwri_crypt()
396 if (key == NULL) in ossl_cms_RecipientInfo_pwri_crypt()