Lines Matching refs:kekctx
314 EVP_CIPHER_CTX *kekctx = NULL; in ossl_cms_RecipientInfo_pwri_crypt() local
353 kekctx = EVP_CIPHER_CTX_new(); 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()
361 EVP_CIPHER_CTX_set_padding(kekctx, 0); in ossl_cms_RecipientInfo_pwri_crypt()
362 if (EVP_CIPHER_asn1_to_param(kekctx, kekalg->parameter) <= 0) { in ossl_cms_RecipientInfo_pwri_crypt()
373 algtmp->parameter, kekctx, en_de) < 0) { 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()
390 if (!kek_wrap_key(key, &keylen, ec->key, ec->keylen, kekctx, cms_ctx)) in ossl_cms_RecipientInfo_pwri_crypt()
400 pwri->encryptedKey->length, kekctx)) { in ossl_cms_RecipientInfo_pwri_crypt()
415 EVP_CIPHER_CTX_free(kekctx); in ossl_cms_RecipientInfo_pwri_crypt()