Home
last modified time | relevance | path

Searched refs:CMS_ContentInfo (Results 1 – 25 of 58) sorted by relevance

123

/freebsd/crypto/openssl/crypto/cms/
H A Dcms_io.c18 int CMS_stream(unsigned char ***boundary, CMS_ContentInfo *cms) in CMS_stream()
36 CMS_ContentInfo *d2i_CMS_bio(BIO *bp, CMS_ContentInfo **cms) in d2i_CMS_bio()
38 CMS_ContentInfo *ci; in d2i_CMS_bio()
52 int i2d_CMS_bio(BIO *bp, CMS_ContentInfo *cms) in i2d_CMS_bio()
57 IMPLEMENT_PEM_rw(CMS, CMS_ContentInfo, PEM_STRING_CMS, CMS_ContentInfo) in IMPLEMENT_PEM_rw() argument
59 BIO *BIO_new_CMS(BIO *out, CMS_ContentInfo *cms) in IMPLEMENT_PEM_rw()
62 ASN1_ITEM_rptr(CMS_ContentInfo)); in IMPLEMENT_PEM_rw()
94 ASN1_ITEM_rptr(CMS_ContentInfo), in SMIME_write_CMS()
100 CMS_ContentInfo **cms) in SMIME_read_CMS_ex()
102 CMS_ContentInfo *ci; in SMIME_read_CMS_ex()
[all …]
H A Dcms_lib.c23 **cms_get0_certificate_choices(CMS_ContentInfo *cms);
25 IMPLEMENT_ASN1_PRINT_FUNCTION(CMS_ContentInfo) in IMPLEMENT_ASN1_PRINT_FUNCTION() argument
27 CMS_ContentInfo *d2i_CMS_ContentInfo(CMS_ContentInfo **a, in IMPLEMENT_ASN1_PRINT_FUNCTION()
30 CMS_ContentInfo *ci; in IMPLEMENT_ASN1_PRINT_FUNCTION()
52 CMS_ContentInfo *ci; in CMS_ContentInfo_new_ex()
54 ci = (CMS_ContentInfo *)ASN1_item_new_ex(ASN1_ITEM_rptr(CMS_ContentInfo), in CMS_ContentInfo_new_ex()
71 CMS_ContentInfo *CMS_ContentInfo_new(void) in CMS_ContentInfo_new()
76 void CMS_ContentInfo_free(CMS_ContentInfo *cms) in CMS_ContentInfo_free()
100 void ossl_cms_resolve_libctx(CMS_ContentInfo *ci) in ossl_cms_resolve_libctx()
139 BIO *ossl_cms_content_bio(CMS_ContentInfo *cms) in ossl_cms_content_bio()
[all …]
H A Dcms_local.h369 DECLARE_ASN1_FUNCTIONS(CMS_ContentInfo)
391 BIO *ossl_cms_content_bio(CMS_ContentInfo *cms);
395 void ossl_cms_resolve_libctx(CMS_ContentInfo *ci);
399 CMS_ContentInfo *ossl_cms_DigestedData_create(const EVP_MD *md,
403 int ossl_cms_DigestedData_do_final(const CMS_ContentInfo *cms,
406 BIO *ossl_cms_SignedData_init_bio(CMS_ContentInfo *cms);
416 CMS_ContentInfo *ossl_cms_CompressedData_create(int comp_nid,
439 int ossl_cms_Receipt_verify(CMS_ContentInfo *cms, CMS_ContentInfo *req_cms);
443 BIO *ossl_cms_EnvelopedData_init_bio(CMS_ContentInfo *cms);
457 void ossl_cms_RecipientInfos_set_cmsctx(CMS_ContentInfo *cms);
[all …]
H A Dcms_smime.c78 static int check_content(CMS_ContentInfo *cms) in check_content()
170 CMS_ContentInfo *cms; in CMS_digest_create_ex()
198 int CMS_EncryptedData_decrypt(CMS_ContentInfo *cms, in CMS_EncryptedData_decrypt()
229 CMS_ContentInfo *cms; in CMS_EncryptedData_encrypt_ex()
491 int CMS_verify_receipt(CMS_ContentInfo *rcms, CMS_ContentInfo *ocms, in CMS_verify_receipt()
509 CMS_ContentInfo *cms; in CMS_sign_ex()
560 CMS_ContentInfo *cms = NULL; in CMS_sign_receipt()
632 CMS_ContentInfo *cms; in CMS_encrypt_ex()
786 int CMS_decrypt_set1_key(CMS_ContentInfo *cms, in CMS_decrypt_set1_key()
823 int CMS_decrypt_set1_password(CMS_ContentInfo *cms, in CMS_decrypt_set1_password()
[all …]
H A Dcms_asn1.c279 ASN1_ADB_TEMPLATE(cms_default) = ASN1_EXP(CMS_ContentInfo, d.other, ASN1_ANY, 0);
281 ASN1_ADB(CMS_ContentInfo) = {
282 … ADB_ENTRY(NID_pkcs7_data, ASN1_NDEF_EXP(CMS_ContentInfo, d.data, ASN1_OCTET_STRING_NDEF, 0)),
283 … ADB_ENTRY(NID_pkcs7_signed, ASN1_NDEF_EXP(CMS_ContentInfo, d.signedData, CMS_SignedData, 0)),
290 } ASN1_ADB_END(CMS_ContentInfo, 0, contentType, 0, &cms_default_tt, NULL);
297 CMS_ContentInfo *cms = NULL; in cms_cb()
299 cms = (CMS_ContentInfo *)*pval; in cms_cb()
324 ASN1_NDEF_SEQUENCE_cb(CMS_ContentInfo, cms_cb) = {
325 ASN1_SIMPLE(CMS_ContentInfo, contentType, ASN1_OBJECT),
326 ASN1_ADB_OBJECT(CMS_ContentInfo)
[all …]
H A Dcms_env.c29 static int cms_get_enveloped_type_simple(const CMS_ContentInfo *cms) in cms_get_enveloped_type_simple()
45 static int cms_get_enveloped_type(const CMS_ContentInfo *cms) in cms_get_enveloped_type()
54 void ossl_cms_env_enc_content_free(const CMS_ContentInfo *cinf) in ossl_cms_env_enc_content_free()
63 CMS_EnvelopedData *ossl_cms_get0_enveloped(CMS_ContentInfo *cms) in ossl_cms_get0_enveloped()
100 cms_auth_enveloped_data_init(CMS_ContentInfo *cms) in cms_auth_enveloped_data_init()
188 void ossl_cms_RecipientInfos_set_cmsctx(CMS_ContentInfo *cms) in ossl_cms_RecipientInfos_set_cmsctx()
239 CMS_ContentInfo *cms; in CMS_EnvelopedData_create_ex()
264 CMS_ContentInfo *
268 CMS_ContentInfo *cms; in CMS_AuthEnvelopedData_create_ex()
535 static int cms_RecipientInfo_ktri_decrypt(CMS_ContentInfo *cms, in cms_RecipientInfo_ktri_decrypt()
[all …]
H A Dcms_dd.c20 CMS_ContentInfo *ossl_cms_DigestedData_create(const EVP_MD *md, in ossl_cms_DigestedData_create()
24 CMS_ContentInfo *cms; in ossl_cms_DigestedData_create()
51 BIO *ossl_cms_DigestedData_init_bio(const CMS_ContentInfo *cms) in ossl_cms_DigestedData_init_bio()
59 int ossl_cms_DigestedData_do_final(const CMS_ContentInfo *cms, BIO *chain, in ossl_cms_DigestedData_do_final()
H A Dcms_cd.c24 CMS_ContentInfo *ossl_cms_CompressedData_create(int comp_nid, in ossl_cms_CompressedData_create()
28 CMS_ContentInfo *cms; in ossl_cms_CompressedData_create()
65 BIO *ossl_cms_CompressedData_init_bio(const CMS_ContentInfo *cms) in ossl_cms_CompressedData_init_bio()
H A Dcms_sd.c27 static CMS_SignedData *cms_get0_signed(CMS_ContentInfo *cms) in cms_get0_signed()
36 static CMS_SignedData *cms_signed_data_init(CMS_ContentInfo *cms) in cms_signed_data_init()
57 int CMS_SignedData_init(CMS_ContentInfo *cms) in CMS_SignedData_init()
140 static int cms_copy_messageDigest(CMS_ContentInfo *cms, CMS_SignerInfo *si) in cms_copy_messageDigest()
305 CMS_SignerInfo *CMS_add1_signer(CMS_ContentInfo *cms, in CMS_add1_signer()
504 void ossl_cms_SignerInfos_set_cmsctx(CMS_ContentInfo *cms) in ossl_cms_SignerInfos_set_cmsctx()
561 STACK_OF(CMS_SignerInfo) *CMS_get0_SignerInfos(CMS_ContentInfo *cms) in STACK_OF()
568 STACK_OF(X509) *CMS_get0_signers(CMS_ContentInfo *cms) in STACK_OF()
678 static int cms_SignerInfo_content_sign(CMS_ContentInfo *cms, in cms_SignerInfo_content_sign()
769 int ossl_cms_SignedData_final(CMS_ContentInfo *cms, BIO *chain) in ossl_cms_SignedData_final()
[all …]
/freebsd/crypto/openssl/include/openssl/
H A Dcms.h.in35 typedef struct CMS_ContentInfo_st CMS_ContentInfo; typedef
52 DECLARE_ASN1_FUNCTIONS(CMS_ContentInfo)
54 DECLARE_ASN1_PRINT_FUNCTION(CMS_ContentInfo)
102 int CMS_is_detached(CMS_ContentInfo *cms);
106 DECLARE_PEM_rw(CMS, CMS_ContentInfo)
109 CMS_ContentInfo *d2i_CMS_bio(BIO *bp, CMS_ContentInfo **cms);
110 int i2d_CMS_bio(BIO *bp, CMS_ContentInfo *cms);
117 CMS_ContentInfo *SMIME_read_CMS_ex(BIO *bio, int flags, BIO **bcont, CMS_ContentInfo **ci);
167 int CMS_verify_receipt(CMS_ContentInfo *rcms, CMS_ContentInfo *ocms,
185 int CMS_decrypt_set1_key(CMS_ContentInfo *cms,
[all …]
H A Dcms.h34 typedef struct CMS_ContentInfo_st CMS_ContentInfo; typedef
150 DECLARE_ASN1_FUNCTIONS(CMS_ContentInfo)
152 DECLARE_ASN1_PRINT_FUNCTION(CMS_ContentInfo)
200 int CMS_is_detached(CMS_ContentInfo *cms);
204 DECLARE_PEM_rw(CMS, CMS_ContentInfo)
207 CMS_ContentInfo *d2i_CMS_bio(BIO *bp, CMS_ContentInfo **cms);
215 CMS_ContentInfo *SMIME_read_CMS_ex(BIO *bio, int flags, BIO **bcont, CMS_ContentInfo **ci);
265 int CMS_verify_receipt(CMS_ContentInfo *rcms, CMS_ContentInfo *ocms,
283 int CMS_decrypt_set1_key(CMS_ContentInfo *cms,
293 CMS_ContentInfo *
[all …]
/freebsd/crypto/openssl/doc/man3/
H A DCMS_EnvelopedData_create.pod13 CMS_ContentInfo *
16 CMS_ContentInfo *CMS_EnvelopedData_create(const EVP_CIPHER *cipher);
18 CMS_ContentInfo *
21 CMS_ContentInfo *CMS_AuthEnvelopedData_create(const EVP_CIPHER *cipher);
25 CMS_EnvelopedData_create_ex() creates a B<CMS_ContentInfo> structure
30 CMS_AuthEnvelopedData_create_ex() creates a B<CMS_ContentInfo>
42 The B<CMS_ContentInfo> structure needs to be finalized using L<CMS_final(3)>
53 a new B<CMS_ContentInfo> structure, they are not usually used in applications.
H A DCMS_get0_type.pod11 const ASN1_OBJECT *CMS_get0_type(const CMS_ContentInfo *cms);
12 int CMS_set1_eContentType(CMS_ContentInfo *cms, const ASN1_OBJECT *oid);
13 const ASN1_OBJECT *CMS_get0_eContentType(CMS_ContentInfo *cms);
14 ASN1_OCTET_STRING **CMS_get0_content(CMS_ContentInfo *cms);
18 CMS_get0_type() returns the content type of a CMS_ContentInfo structure as
20 CMS_ContentInfo structure based on this value.
22 CMS_set1_eContentType() sets the embedded content type of a CMS_ContentInfo
59 access, modify or create the embedded content in a B<CMS_ContentInfo> structure
H A DSMIME_read_CMS.pod11 CMS_ContentInfo *SMIME_read_CMS_ex(BIO *bio, int flags, BIO **bcont,
12 CMS_ContentInfo **cms);
13 CMS_ContentInfo *SMIME_read_CMS(BIO *in, BIO **bcont);
24 The parsed CMS_ContentInfo structure is returned or NULL if an
28 created I<cms> CMS_ContentInfo object can be supplied as well as some I<flags>.
48 CMS_ContentInfo *cms;
57 The parser assumes that the CMS_ContentInfo structure is always base64 encoded
67 SMIME_read_CMS_ex() and SMIME_read_CMS() return a valid B<CMS_ContentInfo>
H A DCMS_add0_cert.pod12 int CMS_add0_cert(CMS_ContentInfo *cms, X509 *cert);
13 int CMS_add1_cert(CMS_ContentInfo *cms, X509 *cert);
14 STACK_OF(X509) *CMS_get1_certs(CMS_ContentInfo *cms);
16 int CMS_add0_crl(CMS_ContentInfo *cms, X509_CRL *crl);
17 int CMS_add1_crl(CMS_ContentInfo *cms, X509_CRL *crl);
18 STACK_OF(X509_CRL) *CMS_get1_crls(CMS_ContentInfo *cms);
43 The CMS_ContentInfo structure I<cms> must be of type signed data or enveloped
H A DCMS_add1_recipient_cert.pod11 CMS_RecipientInfo *CMS_add1_recipient(CMS_ContentInfo *cms, X509 *recip,
15 CMS_RecipientInfo *CMS_add1_recipient_cert(CMS_ContentInfo *cms,
18 CMS_RecipientInfo *CMS_add0_recipient_key(CMS_ContentInfo *cms, int nid,
28 B<originatorPrivKey> and originator certificate B<originator> to CMS_ContentInfo.
32 CMS_add1_recipient_cert() adds recipient B<recip> to CMS_ContentInfo enveloped
37 values B<date>, B<otherTypeId> and B<otherType> to CMS_ContentInfo enveloped
40 The CMS_ContentInfo structure should be obtained from an initial call to
H A DCMS_add1_signer.pod5 CMS_add1_signer, CMS_SignerInfo_sign - add a signer to a CMS_ContentInfo signed data structure
11 CMS_SignerInfo *CMS_add1_signer(CMS_ContentInfo *cms, X509 *signcert,
20 key B<pkey> using message digest B<md> to CMS_ContentInfo SignedData
23 The CMS_ContentInfo structure should be obtained from an initial call to
25 valid CMS_ContentInfo SignedData structure.
30 Unless the B<CMS_REUSE_DIGEST> flag is set the returned CMS_ContentInfo
51 digest value from the CMS_ContentInfo structure: to add a signer to an existing
53 The returned CMS_ContentInfo structure will be valid and finalized when this
62 CMS_ContentInfo structure, the signer's certificate must still be supplied in
H A DCMS_compress.pod11 CMS_ContentInfo *CMS_compress(BIO *in, int comp_nid, unsigned int flags);
35 If the B<CMS_STREAM> flag is set a partial B<CMS_ContentInfo> structure is
38 The compressed data is included in the CMS_ContentInfo structure, unless
42 If the flag B<CMS_STREAM> is set the returned B<CMS_ContentInfo> structure is
44 properly finalize the B<CMS_ContentInfo> structure will give unpredictable
57 CMS_compress() returns either a CMS_ContentInfo structure or NULL if an error
H A DCMS_sign.pod11 CMS_ContentInfo *CMS_sign_ex(X509 *signcert, EVP_PKEY *pkey,
15 CMS_ContentInfo *CMS_sign(X509 *signcert, EVP_PKEY *pkey, STACK_OF(X509) *certs,
45 CMS_ContentInfo structure, the signer's certificate must still be supplied in
50 The data being signed is included in the CMS_ContentInfo structure, unless
52 CMS_ContentInfo detached signatures which are used in S/MIME plaintext signed
78 If the flags B<CMS_STREAM> is set then the returned B<CMS_ContentInfo>
84 If the B<CMS_PARTIAL> flag is set a partial B<CMS_ContentInfo> structure is
88 If the flag B<CMS_STREAM> is set the returned B<CMS_ContentInfo> structure is
90 properly finalize the B<CMS_ContentInfo> structure will give unpredictable
118 CMS_sign_ex() and CMS_sign() return either a valid CMS_ContentInfo
H A DCMS_encrypt.pod11 CMS_ContentInfo *CMS_encrypt_ex(STACK_OF(X509) *certs, BIO *in,
14 CMS_ContentInfo *CMS_encrypt(STACK_OF(X509) *certs, BIO *in,
58 If the B<CMS_STREAM> flag is set a partial B<CMS_ContentInfo> structure is
61 If the B<CMS_PARTIAL> flag is set a partial B<CMS_ContentInfo> structure is
65 The data being encrypted is included in the CMS_ContentInfo structure, unless
69 If the flag B<CMS_STREAM> is set the returned B<CMS_ContentInfo> structure is
71 properly finalize the B<CMS_ContentInfo> structure will give unpredictable
91 CMS_encrypt_ex() and CMS_encrypt() return either a CMS_ContentInfo
H A DCMS_data_create.pod12 CMS_ContentInfo *CMS_data_create_ex(BIO *in, unsigned int flags,
14 CMS_ContentInfo *CMS_data_create(BIO *in, unsigned int flags);
18 CMS_data_create_ex() creates a B<CMS_ContentInfo> structure
25 The B<CMS_ContentInfo> structure can be freed using L<CMS_ContentInfo_free(3)>.
H A DCMS_digest_create.pod12 CMS_ContentInfo *CMS_digest_create_ex(BIO *in, const EVP_MD *md,
16 CMS_ContentInfo *CMS_digest_create(BIO *in, const EVP_MD *md,
21 CMS_digest_create_ex() creates a B<CMS_ContentInfo> structure
28 The B<CMS_ContentInfo> structure can be freed using L<CMS_ContentInfo_free(3)>.
H A DPEM_write_bio_CMS_stream.pod5 PEM_write_bio_CMS_stream - output CMS_ContentInfo structure in PEM format
11 int PEM_write_bio_CMS_stream(BIO *out, CMS_ContentInfo *cms, BIO *data, int flags);
15 PEM_write_bio_CMS_stream() outputs a CMS_ContentInfo structure in PEM format.
H A DCMS_EncryptedData_encrypt.pod12 CMS_ContentInfo *CMS_EncryptedData_encrypt_ex(BIO *in,
20 CMS_ContentInfo *CMS_EncryptedData_encrypt(BIO *in,
26 CMS_EncryptedData_encrypt_ex() creates a B<CMS_ContentInfo> structure
39 The B<CMS_ContentInfo> structure can be freed using L<CMS_ContentInfo_free(3)>.
H A Di2d_CMS_bio_stream.pod5 i2d_CMS_bio_stream - output CMS_ContentInfo structure in BER format
11 int i2d_CMS_bio_stream(BIO *out, CMS_ContentInfo *cms, BIO *data, int flags);
15 i2d_CMS_bio_stream() outputs a CMS_ContentInfo structure in BER format.

123