Lines Matching full:ed
358 EnvelopedData ed; in hx509_cms_unenvelope() local
370 memset(&ed, 0, sizeof(ed)); in hx509_cms_unenvelope()
378 ret = decode_EnvelopedData(data, length, &ed, &size); in hx509_cms_unenvelope()
385 if (ed.recipientInfos.len == 0) { in hx509_cms_unenvelope()
392 enccontent = ed.encryptedContentInfo.encryptedContent; in hx509_cms_unenvelope()
409 for (i = 0; i < ed.recipientInfos.len; i++) { in hx509_cms_unenvelope()
414 ri = &ed.recipientInfos.val[i]; in hx509_cms_unenvelope()
455 ret = der_copy_oid(&ed.encryptedContentInfo.contentType, contentType); in hx509_cms_unenvelope()
462 ai = &ed.encryptedContentInfo.contentEncryptionAlgorithm; in hx509_cms_unenvelope()
512 free_EnvelopedData(&ed); in hx509_cms_unenvelope()
565 EnvelopedData ed; in hx509_cms_envelope_1() local
570 memset(&ed, 0, sizeof(ed)); in hx509_cms_envelope_1()
607 &ed.encryptedContentInfo.encryptedContent); in hx509_cms_envelope_1()
616 enc_alg = &ed.encryptedContentInfo.contentEncryptionAlgorithm; in hx509_cms_envelope_1()
642 ALLOC_SEQ(&ed.recipientInfos, 1); in hx509_cms_envelope_1()
643 if (ed.recipientInfos.val == NULL) { in hx509_cms_envelope_1()
651 ri = &ed.recipientInfos.val[0]; in hx509_cms_envelope_1()
684 ed.version = 0; in hx509_cms_envelope_1()
685 ed.originatorInfo = NULL; in hx509_cms_envelope_1()
687 ret = der_copy_oid(contentType, &ed.encryptedContentInfo.contentType); in hx509_cms_envelope_1()
695 ed.unprotectedAttrs = NULL; in hx509_cms_envelope_1()
698 &ed, &size, ret); in hx509_cms_envelope_1()
714 free_EnvelopedData(&ed); in hx509_cms_envelope_1()
1594 CMSEncryptedData ed; in hx509_cms_decrypt_encrypted() local
1601 ret = decode_CMSEncryptedData(data, length, &ed, NULL); in hx509_cms_decrypt_encrypted()
1608 if (ed.encryptedContentInfo.encryptedContent == NULL) { in hx509_cms_decrypt_encrypted()
1615 ret = der_copy_oid(&ed.encryptedContentInfo.contentType, contentType); in hx509_cms_decrypt_encrypted()
1621 ai = &ed.encryptedContentInfo.contentEncryptionAlgorithm; in hx509_cms_decrypt_encrypted()
1631 ed.encryptedContentInfo.encryptedContent, in hx509_cms_decrypt_encrypted()
1643 free_CMSEncryptedData(&ed); in hx509_cms_decrypt_encrypted()