Lines Matching refs:ek
512 unsigned char *ek = NULL; in cms_RecipientInfo_ktri_encrypt() local
544 ek = OPENSSL_malloc(eklen); in cms_RecipientInfo_ktri_encrypt()
545 if (ek == NULL) in cms_RecipientInfo_ktri_encrypt()
548 if (EVP_PKEY_encrypt(pctx, ek, &eklen, ec->key, ec->keylen) <= 0) in cms_RecipientInfo_ktri_encrypt()
551 ASN1_STRING_set0(ktri->encryptedKey, ek, eklen); in cms_RecipientInfo_ktri_encrypt()
552 ek = NULL; in cms_RecipientInfo_ktri_encrypt()
559 OPENSSL_free(ek); in cms_RecipientInfo_ktri_encrypt()
570 unsigned char *ek = NULL; in cms_RecipientInfo_ktri_decrypt() local
630 if (evp_pkey_decrypt_alloc(ktri->pctx, &ek, &eklen, fixlen, in cms_RecipientInfo_ktri_decrypt()
638 ec->key = ek; in cms_RecipientInfo_ktri_decrypt()
645 OPENSSL_free(ek); in cms_RecipientInfo_ktri_decrypt()