Home
last modified time | relevance | path

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

12

/freebsd-13.1/crypto/openssl/include/openssl/
H A Dcms.h23 typedef struct CMS_ContentInfo_st CMS_ContentInfo; typedef
37 DECLARE_ASN1_FUNCTIONS(CMS_ContentInfo)
39 DECLARE_ASN1_PRINT_FUNCTION(CMS_ContentInfo)
83 int CMS_is_detached(CMS_ContentInfo *cms);
87 DECLARE_PEM_rw_const(CMS, CMS_ContentInfo)
90 CMS_ContentInfo *d2i_CMS_bio(BIO *bp, CMS_ContentInfo **cms);
91 int i2d_CMS_bio(BIO *bp, CMS_ContentInfo *cms);
93 BIO *BIO_new_CMS(BIO *out, CMS_ContentInfo *cms);
133 int CMS_verify_receipt(CMS_ContentInfo *rcms, CMS_ContentInfo *ocms,
146 int CMS_decrypt_set1_key(CMS_ContentInfo *cms,
[all …]
/freebsd-13.1/crypto/openssl/crypto/cms/
H A 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()
40 int i2d_CMS_bio(BIO *bp, CMS_ContentInfo *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()
58 ASN1_ITEM_rptr(CMS_ContentInfo)); in i2d_CMS_bio_stream()
80 ASN1_ITEM_rptr(CMS_ContentInfo)); in SMIME_write_CMS()
83 CMS_ContentInfo *SMIME_read_CMS(BIO *bio, BIO **bcont) in SMIME_read_CMS()
85 return (CMS_ContentInfo *)SMIME_read_ASN1(bio, bcont, in SMIME_read_CMS()
[all …]
H A Dcms_lib.c19 IMPLEMENT_ASN1_FUNCTIONS(CMS_ContentInfo)
20 IMPLEMENT_ASN1_PRINT_FUNCTION(CMS_ContentInfo) in IMPLEMENT_ASN1_PRINT_FUNCTION() argument
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()
250 int CMS_is_detached(CMS_ContentInfo *cms) in CMS_is_detached()
382 int CMS_add0_cert(CMS_ContentInfo *cms, X509 *cert) in CMS_add0_cert()
408 int CMS_add1_cert(CMS_ContentInfo *cms, X509 *cert) in CMS_add1_cert()
[all …]
H A Dcms_local.h343 DECLARE_ASN1_FUNCTIONS(CMS_ContentInfo)
365 BIO *cms_content_bio(CMS_ContentInfo *cms);
367 CMS_ContentInfo *cms_Data_create(void);
370 BIO *cms_DigestedData_init_bio(CMS_ContentInfo *cms);
373 BIO *cms_SignedData_init_bio(CMS_ContentInfo *cms);
383 CMS_ContentInfo *cms_CompressedData_create(int comp_nid);
384 BIO *cms_CompressedData_init_bio(CMS_ContentInfo *cms);
396 BIO *cms_EncryptedData_init_bio(CMS_ContentInfo *cms);
401 int cms_Receipt_verify(CMS_ContentInfo *cms, CMS_ContentInfo *req_cms);
405 BIO *cms_EnvelopedData_init_bio(CMS_ContentInfo *cms);
[all …]
H A Dcms_smime.c78 static int check_content(CMS_ContentInfo *cms) in check_content()
120 CMS_ContentInfo *cms; in CMS_data_create()
159 CMS_ContentInfo *cms; in CMS_digest_create()
176 int CMS_EncryptedData_decrypt(CMS_ContentInfo *cms, in CMS_EncryptedData_decrypt()
205 CMS_ContentInfo *cms; in CMS_EncryptedData_encrypt()
423 int CMS_verify_receipt(CMS_ContentInfo *rcms, CMS_ContentInfo *ocms, in CMS_verify_receipt()
439 CMS_ContentInfo *cms; in CMS_sign()
483 CMS_ContentInfo *cms = NULL; in CMS_sign_receipt()
549 CMS_ContentInfo *cms; in CMS_encrypt()
672 int CMS_decrypt_set1_key(CMS_ContentInfo *cms, in CMS_decrypt_set1_key()
[all …]
H A 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)),
278 } ASN1_ADB_END(CMS_ContentInfo, 0, contentType, 0, &cms_default_tt, NULL);
285 CMS_ContentInfo *cms = NULL; in cms_cb()
287 cms = (CMS_ContentInfo *)*pval; in cms_cb()
312 ASN1_NDEF_SEQUENCE_cb(CMS_ContentInfo, cms_cb) = {
313 ASN1_SIMPLE(CMS_ContentInfo, contentType, ASN1_OBJECT),
314 ASN1_ADB_OBJECT(CMS_ContentInfo)
[all …]
H A 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()
H A 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()
H A 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()
629 static int cms_RecipientInfo_kekri_encrypt(CMS_ContentInfo *cms, in cms_RecipientInfo_kekri_encrypt()
684 static int cms_RecipientInfo_kekri_decrypt(CMS_ContentInfo *cms, in cms_RecipientInfo_kekri_decrypt()
[all …]
H A 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()
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()
641 int cms_SignedData_final(CMS_ContentInfo *cms, BIO *chain) in cms_SignedData_final()
[all …]
H A 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()
/freebsd-13.1/crypto/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
58 access, modify or create the embedded content in a B<CMS_ContentInfo> structure
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);
32 The CMS_ContentInfo structure B<cms> must be of type signed data or enveloped
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);
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
H A 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>
H A 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
H A 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
H A 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
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 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
H A DCMS_final.pod5 CMS_final - finalise a CMS_ContentInfo structure
11 int CMS_final(CMS_ContentInfo *cms, BIO *data, BIO *dcont, unsigned int flags);
H A 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
H A DCMS_verify_receipt.pod11 int CMS_verify_receipt(CMS_ContentInfo *rcms, CMS_ContentInfo *ocms,

12