Home
last modified time | relevance | path

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

12

/third_party/openssl/include/openssl/
Dcms.h23 typedef struct CMS_ContentInfo_st CMS_ContentInfo; typedef
37 DECLARE_ASN1_FUNCTIONS(CMS_ContentInfo)
39 DECLARE_ASN1_PRINT_FUNCTION(CMS_ContentInfo)
77 const ASN1_OBJECT *CMS_get0_type(const CMS_ContentInfo *cms);
79 BIO *CMS_dataInit(CMS_ContentInfo *cms, BIO *icont);
80 int CMS_dataFinal(CMS_ContentInfo *cms, BIO *bio);
82 ASN1_OCTET_STRING **CMS_get0_content(CMS_ContentInfo *cms);
83 int CMS_is_detached(CMS_ContentInfo *cms);
84 int CMS_set_detached(CMS_ContentInfo *cms, int detached);
87 DECLARE_PEM_rw_const(CMS, CMS_ContentInfo)
[all …]
/third_party/openssl/crypto/cms/
Dcms_io.c17 int CMS_stream(unsigned char ***boundary, CMS_ContentInfo *cms) in CMS_stream()
35 CMS_ContentInfo *d2i_CMS_bio(BIO *bp, CMS_ContentInfo **cms) in d2i_CMS_bio()
37 return ASN1_item_d2i_bio(ASN1_ITEM_rptr(CMS_ContentInfo), bp, cms); in d2i_CMS_bio()
40 int i2d_CMS_bio(BIO *bp, CMS_ContentInfo *cms) in i2d_CMS_bio()
42 return ASN1_item_i2d_bio(ASN1_ITEM_rptr(CMS_ContentInfo), bp, cms); in i2d_CMS_bio()
45 IMPLEMENT_PEM_rw_const(CMS, CMS_ContentInfo, PEM_STRING_CMS, CMS_ContentInfo) in IMPLEMENT_PEM_rw_const() argument
47 BIO *BIO_new_CMS(BIO *out, CMS_ContentInfo *cms) in IMPLEMENT_PEM_rw_const()
50 ASN1_ITEM_rptr(CMS_ContentInfo)); in IMPLEMENT_PEM_rw_const()
55 int i2d_CMS_bio_stream(BIO *out, CMS_ContentInfo *cms, BIO *in, int flags) in i2d_CMS_bio_stream()
58 ASN1_ITEM_rptr(CMS_ContentInfo)); in i2d_CMS_bio_stream()
[all …]
Dcms_lib.c19 IMPLEMENT_ASN1_FUNCTIONS(CMS_ContentInfo)
20 IMPLEMENT_ASN1_PRINT_FUNCTION(CMS_ContentInfo) in IMPLEMENT_ASN1_PRINT_FUNCTION() argument
22 const ASN1_OBJECT *CMS_get0_type(const CMS_ContentInfo *cms) in IMPLEMENT_ASN1_PRINT_FUNCTION()
27 CMS_ContentInfo *cms_Data_create(void) in cms_Data_create()
29 CMS_ContentInfo *cms; in cms_Data_create()
39 BIO *cms_content_bio(CMS_ContentInfo *cms) in cms_content_bio()
56 BIO *CMS_dataInit(CMS_ContentInfo *cms, BIO *icont) in CMS_dataInit()
108 int CMS_dataFinal(CMS_ContentInfo *cms, BIO *cmsbio) in CMS_dataFinal()
157 ASN1_OCTET_STRING **CMS_get0_content(CMS_ContentInfo *cms) in CMS_get0_content()
196 static ASN1_OBJECT **cms_get0_econtent_type(CMS_ContentInfo *cms) in cms_get0_econtent_type()
[all …]
Dcms_local.h343 DECLARE_ASN1_FUNCTIONS(CMS_ContentInfo)
365 BIO *cms_content_bio(CMS_ContentInfo *cms);
367 CMS_ContentInfo *cms_Data_create(void);
369 CMS_ContentInfo *cms_DigestedData_create(const EVP_MD *md);
370 BIO *cms_DigestedData_init_bio(CMS_ContentInfo *cms);
371 int cms_DigestedData_do_final(CMS_ContentInfo *cms, BIO *chain, int verify);
373 BIO *cms_SignedData_init_bio(CMS_ContentInfo *cms);
374 int cms_SignedData_final(CMS_ContentInfo *cms, BIO *chain);
383 CMS_ContentInfo *cms_CompressedData_create(int comp_nid);
384 BIO *cms_CompressedData_init_bio(CMS_ContentInfo *cms);
[all …]
Dcms_smime.c78 static int check_content(CMS_ContentInfo *cms) in check_content()
102 int CMS_data(CMS_ContentInfo *cms, BIO *out, unsigned int flags) in CMS_data()
118 CMS_ContentInfo *CMS_data_create(BIO *in, unsigned int flags) in CMS_data_create()
120 CMS_ContentInfo *cms; in CMS_data_create()
133 int CMS_digest_verify(CMS_ContentInfo *cms, BIO *dcont, BIO *out, in CMS_digest_verify()
156 CMS_ContentInfo *CMS_digest_create(BIO *in, const EVP_MD *md, in CMS_digest_create()
159 CMS_ContentInfo *cms; in CMS_digest_create()
176 int CMS_EncryptedData_decrypt(CMS_ContentInfo *cms, in CMS_EncryptedData_decrypt()
201 CMS_ContentInfo *CMS_EncryptedData_encrypt(BIO *in, const EVP_CIPHER *cipher, in CMS_EncryptedData_encrypt()
205 CMS_ContentInfo *cms; in CMS_EncryptedData_encrypt()
[all …]
Dcms_asn1.c268 ASN1_ADB_TEMPLATE(cms_default) = ASN1_EXP(CMS_ContentInfo, d.other, ASN1_ANY, 0);
270 ASN1_ADB(CMS_ContentInfo) = {
271 … ADB_ENTRY(NID_pkcs7_data, ASN1_NDEF_EXP(CMS_ContentInfo, d.data, ASN1_OCTET_STRING_NDEF, 0)),
272 … ADB_ENTRY(NID_pkcs7_signed, ASN1_NDEF_EXP(CMS_ContentInfo, d.signedData, CMS_SignedData, 0)),
273 …ADB_ENTRY(NID_pkcs7_enveloped, ASN1_NDEF_EXP(CMS_ContentInfo, d.envelopedData, CMS_EnvelopedData, …
274 … ADB_ENTRY(NID_pkcs7_digest, ASN1_NDEF_EXP(CMS_ContentInfo, d.digestedData, CMS_DigestedData, 0)),
275 …ADB_ENTRY(NID_pkcs7_encrypted, ASN1_NDEF_EXP(CMS_ContentInfo, d.encryptedData, CMS_EncryptedData, …
276 …ADB_ENTRY(NID_id_smime_ct_authData, ASN1_NDEF_EXP(CMS_ContentInfo, d.authenticatedData, CMS_Authen…
277 …ADB_ENTRY(NID_id_smime_ct_compressedData, ASN1_NDEF_EXP(CMS_ContentInfo, d.compressedData, CMS_Com…
278 } ASN1_ADB_END(CMS_ContentInfo, 0, contentType, 0, &cms_default_tt, NULL);
[all …]
Dcms_dd.c20 CMS_ContentInfo *cms_DigestedData_create(const EVP_MD *md) in cms_DigestedData_create()
22 CMS_ContentInfo *cms; in cms_DigestedData_create()
48 BIO *cms_DigestedData_init_bio(CMS_ContentInfo *cms) in cms_DigestedData_init_bio()
55 int cms_DigestedData_do_final(CMS_ContentInfo *cms, BIO *chain, int verify) in cms_DigestedData_do_final()
Dcms_cd.c24 CMS_ContentInfo *cms_CompressedData_create(int comp_nid) in cms_CompressedData_create()
26 CMS_ContentInfo *cms; in cms_CompressedData_create()
63 BIO *cms_CompressedData_init_bio(CMS_ContentInfo *cms) in cms_CompressedData_init_bio()
Dcms_env.c23 CMS_EnvelopedData *cms_get0_enveloped(CMS_ContentInfo *cms) in cms_get0_enveloped()
33 static CMS_EnvelopedData *cms_enveloped_data_init(CMS_ContentInfo *cms) in cms_enveloped_data_init()
81 STACK_OF(CMS_RecipientInfo) *CMS_get0_RecipientInfos(CMS_ContentInfo *cms) in STACK_OF()
104 CMS_ContentInfo *CMS_EnvelopedData_create(const EVP_CIPHER *cipher) in CMS_EnvelopedData_create()
106 CMS_ContentInfo *cms; in CMS_EnvelopedData_create()
178 CMS_RecipientInfo *CMS_add1_recipient_cert(CMS_ContentInfo *cms, in CMS_add1_recipient_cert()
292 static int cms_RecipientInfo_ktri_encrypt(CMS_ContentInfo *cms, in cms_RecipientInfo_ktri_encrypt()
358 static int cms_RecipientInfo_ktri_decrypt(CMS_ContentInfo *cms, in cms_RecipientInfo_ktri_decrypt()
478 CMS_RecipientInfo *CMS_add0_recipient_key(CMS_ContentInfo *cms, int nid, in CMS_add0_recipient_key()
629 static int cms_RecipientInfo_kekri_encrypt(CMS_ContentInfo *cms, in cms_RecipientInfo_kekri_encrypt()
[all …]
Dcms_sd.c23 static CMS_SignedData *cms_get0_signed(CMS_ContentInfo *cms) in cms_get0_signed()
32 static CMS_SignedData *cms_signed_data_init(CMS_ContentInfo *cms) in cms_signed_data_init()
53 int CMS_SignedData_init(CMS_ContentInfo *cms) in CMS_SignedData_init()
124 static int cms_set_si_contentType_attr(CMS_ContentInfo *cms, CMS_SignerInfo *si) in cms_set_si_contentType_attr()
135 static int cms_copy_messageDigest(CMS_ContentInfo *cms, CMS_SignerInfo *si) in cms_copy_messageDigest()
241 CMS_SignerInfo *CMS_add1_signer(CMS_ContentInfo *cms, in CMS_add1_signer()
435 STACK_OF(CMS_SignerInfo) *CMS_get0_SignerInfos(CMS_ContentInfo *cms) in STACK_OF()
444 STACK_OF(X509) *CMS_get0_signers(CMS_ContentInfo *cms) in STACK_OF()
491 int CMS_set1_signers_certs(CMS_ContentInfo *cms, STACK_OF(X509) *scerts, in CMS_set1_signers_certs()
556 static int cms_SignerInfo_content_sign(CMS_ContentInfo *cms, in cms_SignerInfo_content_sign()
[all …]
Dcms_enc.c183 int CMS_EncryptedData_set1_key(CMS_ContentInfo *cms, const EVP_CIPHER *ciph, in CMS_EncryptedData_set1_key()
207 BIO *cms_EncryptedData_init_bio(CMS_ContentInfo *cms) in cms_EncryptedData_init_bio()
/third_party/openssl/doc/man3/
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
58 access, modify or create the embedded content in a B<CMS_ContentInfo> structure
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);
32 The CMS_ContentInfo structure B<cms> must be of type signed data or enveloped
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
DCMS_compress.pod11 CMS_ContentInfo *CMS_compress(BIO *in, int comp_nid, unsigned int flags);
37 If the B<CMS_STREAM> flag is set a partial B<CMS_ContentInfo> structure is
40 The compressed data is included in the CMS_ContentInfo structure, unless
46 If the flag B<CMS_STREAM> is set the returned B<CMS_ContentInfo> structure is
48 properly finalize the B<CMS_ContentInfo> structure will give unpredictable
61 CMS_compress() returns either a CMS_ContentInfo structure or NULL if an error
DSMIME_read_CMS.pod11 CMS_ContentInfo *SMIME_read_CMS(BIO *in, BIO **bcont);
22 The parsed CMS_ContentInfo structure is returned or NULL if an
37 CMS_ContentInfo *cms;
46 The parser assumes that the CMS_ContentInfo structure is always base64 encoded
56 SMIME_read_CMS() returns a valid B<CMS_ContentInfo> structure or B<NULL>
DCMS_encrypt.pod11 CMS_ContentInfo *CMS_encrypt(STACK_OF(X509) *certs, BIO *in,
52 If the B<CMS_STREAM> flag is set a partial B<CMS_ContentInfo> structure is
55 If the B<CMS_PARTIAL> flag is set a partial B<CMS_ContentInfo> structure is
59 The data being encrypted is included in the CMS_ContentInfo structure, unless
65 If the flag B<CMS_STREAM> is set the returned B<CMS_ContentInfo> structure is
67 properly finalize the B<CMS_ContentInfo> structure will give unpredictable
84 CMS_encrypt() returns either a CMS_ContentInfo structure or NULL if an error
DCMS_sign.pod11 CMS_ContentInfo *CMS_sign(X509 *signcert, EVP_PKEY *pkey, STACK_OF(X509) *certs,
36 CMS_ContentInfo structure, the signer's certificate must still be supplied in
41 The data being signed is included in the CMS_ContentInfo structure, unless
43 CMS_ContentInfo detached signatures which are used in S/MIME plaintext signed
68 If the flags B<CMS_STREAM> is set then the returned B<CMS_ContentInfo>
74 If the B<CMS_PARTIAL> flag is set a partial B<CMS_ContentInfo> structure is
78 If the flag B<CMS_STREAM> is set the returned B<CMS_ContentInfo> structure is
80 properly finalize the B<CMS_ContentInfo> structure will give unpredictable
108 CMS_sign() returns either a valid CMS_ContentInfo structure or NULL if an error
DCMS_add1_recipient_cert.pod11 CMS_RecipientInfo *CMS_add1_recipient_cert(CMS_ContentInfo *cms,
14 CMS_RecipientInfo *CMS_add0_recipient_key(CMS_ContentInfo *cms, int nid,
23 CMS_add1_recipient_cert() adds recipient B<recip> to CMS_ContentInfo enveloped
28 values B<date>, B<otherTypeId> and B<otherType> to CMS_ContentInfo enveloped
31 The CMS_ContentInfo structure should be obtained from an initial call to
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.
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.
DSMIME_write_CMS.pod11 int SMIME_write_CMS(BIO *out, CMS_ContentInfo *cms, BIO *data, int flags);
19 B<CMS_ContentInfo> structure. If streaming is enabled then the content must be
34 be set if B<CMS_STREAM> was also set in the previous call to a CMS_ContentInfo
DCMS_final.pod5 CMS_final - finalise a CMS_ContentInfo structure
11 int CMS_final(CMS_ContentInfo *cms, BIO *data, BIO *dcont, unsigned int flags);
DCMS_verify_receipt.pod11 int CMS_verify_receipt(CMS_ContentInfo *rcms, CMS_ContentInfo *ocms,
DCMS_sign_receipt.pod11 CMS_ContentInfo *CMS_sign_receipt(CMS_SignerInfo *si, X509 *signcert,
34 CMS_sign_receipt() returns either a valid CMS_ContentInfo structure or NULL if

12