Home
last modified time | relevance | path

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

123

/openssl/crypto/cms/
H A Dcms_io.c18 int CMS_stream(unsigned char ***boundary, CMS_ContentInfo *cms) in CMS_stream()
37 CMS_ContentInfo *d2i_CMS_bio(BIO *bp, CMS_ContentInfo **cms) in d2i_CMS_bio()
39 CMS_ContentInfo *ci; in d2i_CMS_bio()
53 int i2d_CMS_bio(BIO *bp, CMS_ContentInfo *cms) in i2d_CMS_bio()
58 IMPLEMENT_PEM_rw(CMS, CMS_ContentInfo, PEM_STRING_CMS, CMS_ContentInfo) in IMPLEMENT_PEM_rw() argument
60 BIO *BIO_new_CMS(BIO *out, CMS_ContentInfo *cms) in IMPLEMENT_PEM_rw()
63 ASN1_ITEM_rptr(CMS_ContentInfo)); in IMPLEMENT_PEM_rw()
95 ASN1_ITEM_rptr(CMS_ContentInfo), in SMIME_write_CMS()
101 CMS_ContentInfo **cms) in SMIME_read_CMS_ex()
103 CMS_ContentInfo *ci; in SMIME_read_CMS_ex()
[all …]
H A Dcms_lib.c22 **cms_get0_certificate_choices(CMS_ContentInfo *cms);
24 IMPLEMENT_ASN1_ALLOC_FUNCTIONS(CMS_ContentInfo)
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()
85 void ossl_cms_resolve_libctx(CMS_ContentInfo *ci) in ossl_cms_resolve_libctx()
124 BIO *ossl_cms_content_bio(CMS_ContentInfo *cms) in ossl_cms_content_bio()
142 BIO *CMS_dataInit(CMS_ContentInfo *cms, BIO *icont) in CMS_dataInit()
[all …]
H A Dcms_local.h367 DECLARE_ASN1_FUNCTIONS(CMS_ContentInfo)
390 BIO *ossl_cms_content_bio(CMS_ContentInfo *cms);
394 void ossl_cms_resolve_libctx(CMS_ContentInfo *ci);
397 int ossl_cms_DataFinal(CMS_ContentInfo *cms, BIO *cmsbio,
405 int ossl_cms_DigestedData_do_final(const CMS_ContentInfo *cms,
408 BIO *ossl_cms_SignedData_init_bio(CMS_ContentInfo *cms);
420 CMS_ContentInfo *ossl_cms_CompressedData_create(int comp_nid,
443 int ossl_cms_Receipt_verify(CMS_ContentInfo *cms, CMS_ContentInfo *req_cms);
447 BIO *ossl_cms_EnvelopedData_init_bio(CMS_ContentInfo *cms);
460 void ossl_cms_RecipientInfos_set_cmsctx(CMS_ContentInfo *cms);
[all …]
H A Dcms_smime.c79 static int check_content(CMS_ContentInfo *cms) in check_content()
171 CMS_ContentInfo *cms; in CMS_digest_create_ex()
199 int CMS_EncryptedData_decrypt(CMS_ContentInfo *cms, in CMS_EncryptedData_decrypt()
230 CMS_ContentInfo *cms; in CMS_EncryptedData_encrypt_ex()
500 int CMS_verify_receipt(CMS_ContentInfo *rcms, CMS_ContentInfo *ocms, in CMS_verify_receipt()
518 CMS_ContentInfo *cms; in CMS_sign_ex()
572 CMS_ContentInfo *cms = NULL; in CMS_sign_receipt()
644 CMS_ContentInfo *cms; in CMS_encrypt_ex()
798 int CMS_decrypt_set1_key(CMS_ContentInfo *cms, in CMS_decrypt_set1_key()
930 int CMS_final_digest(CMS_ContentInfo *cms, in CMS_final_digest()
[all …]
H A Dcms_asn1.c291 ASN1_ADB_TEMPLATE(cms_default) = ASN1_EXP(CMS_ContentInfo, d.other, ASN1_ANY, 0);
293 ASN1_ADB(CMS_ContentInfo) = {
294 … ADB_ENTRY(NID_pkcs7_data, ASN1_NDEF_EXP(CMS_ContentInfo, d.data, ASN1_OCTET_STRING_NDEF, 0)),
295 … ADB_ENTRY(NID_pkcs7_signed, ASN1_NDEF_EXP(CMS_ContentInfo, d.signedData, CMS_SignedData, 0)),
302 } ASN1_ADB_END(CMS_ContentInfo, 0, contentType, 0, &cms_default_tt, NULL);
309 CMS_ContentInfo *cms = NULL; in cms_cb()
311 cms = (CMS_ContentInfo *)*pval; in cms_cb()
340 ASN1_NDEF_SEQUENCE_cb(CMS_ContentInfo, cms_cb) = {
341 ASN1_SIMPLE(CMS_ContentInfo, contentType, ASN1_OBJECT),
342 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 CMS_EnvelopedData *ossl_cms_get0_enveloped(CMS_ContentInfo *cms) in ossl_cms_get0_enveloped()
91 cms_auth_enveloped_data_init(CMS_ContentInfo *cms) in cms_auth_enveloped_data_init()
179 void ossl_cms_RecipientInfos_set_cmsctx(CMS_ContentInfo *cms) in ossl_cms_RecipientInfos_set_cmsctx()
230 CMS_ContentInfo *cms; in CMS_EnvelopedData_create_ex()
260 CMS_ContentInfo *ci; in CMS_EnvelopedData_decrypt()
295 CMS_ContentInfo *
299 CMS_ContentInfo *cms; in CMS_AuthEnvelopedData_create_ex()
565 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()
66 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()
56 int CMS_SignedData_init(CMS_ContentInfo *cms) in CMS_SignedData_init()
334 CMS_SignerInfo *CMS_add1_signer(CMS_ContentInfo *cms, in CMS_add1_signer()
538 void ossl_cms_SignerInfos_set_cmsctx(CMS_ContentInfo *cms) in ossl_cms_SignerInfos_set_cmsctx()
596 STACK_OF(CMS_SignerInfo) *CMS_get0_SignerInfos(CMS_ContentInfo *cms) in STACK_OF()
603 STACK_OF(X509) *CMS_get0_signers(CMS_ContentInfo *cms) in STACK_OF()
713 static int cms_SignerInfo_content_sign(CMS_ContentInfo *cms, in cms_SignerInfo_content_sign()
809 int ossl_cms_SignedData_final(CMS_ContentInfo *cms, BIO *chain, in ossl_cms_SignedData_final()
966 BIO *ossl_cms_SignedData_init_bio(CMS_ContentInfo *cms) in ossl_cms_SignedData_init_bio()
[all …]
/openssl/include/openssl/
H A Dcms.h.in36 typedef struct CMS_ContentInfo_st CMS_ContentInfo; typedef
56 DECLARE_ASN1_FUNCTIONS(CMS_ContentInfo)
58 DECLARE_ASN1_PRINT_FUNCTION(CMS_ContentInfo)
106 int CMS_is_detached(CMS_ContentInfo *cms);
110 DECLARE_PEM_rw(CMS, CMS_ContentInfo)
113 CMS_ContentInfo *d2i_CMS_bio(BIO *bp, CMS_ContentInfo **cms);
114 int i2d_CMS_bio(BIO *bp, CMS_ContentInfo *cms);
121 CMS_ContentInfo *SMIME_read_CMS_ex(BIO *bio, int flags, BIO **bcont, CMS_ContentInfo **ci);
126 int CMS_final_digest(CMS_ContentInfo *cms,
173 int CMS_verify_receipt(CMS_ContentInfo *rcms, CMS_ContentInfo *ocms,
[all …]
/openssl/doc/man3/
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 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)>
54 a new B<CMS_ContentInfo> structure, they are not usually used in applications.
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_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_add0_cert.pod13 int CMS_add0_cert(CMS_ContentInfo *cms, X509 *cert);
14 int CMS_add1_cert(CMS_ContentInfo *cms, X509 *cert);
15 STACK_OF(X509) *CMS_get1_certs(CMS_ContentInfo *cms);
17 int CMS_add0_crl(CMS_ContentInfo *cms, X509_CRL *crl);
18 int CMS_add1_crl(CMS_ContentInfo *cms, X509_CRL *crl);
19 STACK_OF(X509_CRL) *CMS_get1_crls(CMS_ContentInfo *cms);
48 The CMS_ContentInfo structure I<cms> must be of type signed data or enveloped
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_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_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_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 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 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 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.
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)>.
/openssl/test/
H A Dcmsapitest.c31 CMS_ContentInfo* content = NULL; in test_encrypt_decrypt()
93 CMS_ContentInfo *cms = NULL; in test_CMS_add1_cert()
107 CMS_ContentInfo *cms = NULL; in test_d2i_CMS_bio_NULL()
353 CMS_ContentInfo *cms = NULL; in test_d2i_CMS_decode()

Completed in 55 milliseconds

123