/freebsd/crypto/openssl/crypto/cms/ |
H A D | cms_io.c | 18 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() 41 ci = ASN1_item_d2i_bio_ex(ASN1_ITEM_rptr(CMS_ContentInfo), bp, cms, in d2i_CMS_bio() 52 int i2d_CMS_bio(BIO *bp, CMS_ContentInfo *cms) in i2d_CMS_bio() 54 return ASN1_item_i2d_bio(ASN1_ITEM_rptr(CMS_ContentInfo), bp, 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() 67 int i2d_CMS_bio_stream(BIO *out, CMS_ContentInfo *cms, BIO *in, int flags) in i2d_CMS_bio_stream() [all …]
|
H A D | cms_lib.c | 23 **cms_get0_certificate_choices(CMS_ContentInfo *cms); 25 IMPLEMENT_ASN1_ALLOC_FUNCTIONS(CMS_ContentInfo) 26 IMPLEMENT_ASN1_PRINT_FUNCTION(CMS_ContentInfo) in IMPLEMENT_ASN1_PRINT_FUNCTION() argument 28 CMS_ContentInfo *d2i_CMS_ContentInfo(CMS_ContentInfo **a, in IMPLEMENT_ASN1_PRINT_FUNCTION() 31 CMS_ContentInfo *ci; in IMPLEMENT_ASN1_PRINT_FUNCTION() 34 ci = (CMS_ContentInfo *)ASN1_item_d2i_ex((ASN1_VALUE **)a, in, len, in IMPLEMENT_ASN1_PRINT_FUNCTION() 46 int i2d_CMS_ContentInfo(const CMS_ContentInfo *a, unsigned char **out) in i2d_CMS_ContentInfo() 51 CMS_ContentInfo *CMS_ContentInfo_new_ex(OSSL_LIB_CTX *libctx, const char *propq) in CMS_ContentInfo_new_ex() 53 CMS_ContentInfo *ci; in CMS_ContentInfo_new_ex() 55 ci = (CMS_ContentInfo *)ASN1_item_new_ex(ASN1_ITEM_rptr(CMS_ContentInfo), in CMS_ContentInfo_new_ex() [all …]
|
H A D | cms_local.h | 369 DECLARE_ASN1_FUNCTIONS(CMS_ContentInfo) 392 BIO *ossl_cms_content_bio(CMS_ContentInfo *cms); 393 const CMS_CTX *ossl_cms_get0_cmsctx(const CMS_ContentInfo *cms); 396 void ossl_cms_resolve_libctx(CMS_ContentInfo *ci); 398 CMS_ContentInfo *ossl_cms_Data_create(OSSL_LIB_CTX *ctx, const char *propq); 400 CMS_ContentInfo *ossl_cms_DigestedData_create(const EVP_MD *md, 403 BIO *ossl_cms_DigestedData_init_bio(const CMS_ContentInfo *cms); 404 int ossl_cms_DigestedData_do_final(const CMS_ContentInfo *cms, 407 BIO *ossl_cms_SignedData_init_bio(CMS_ContentInfo *cms); 408 int ossl_cms_SignedData_final(CMS_ContentInfo *cms, BIO *chain); [all …]
|
H A D | cms_smime.c | 78 static int check_content(CMS_ContentInfo *cms) in check_content() 104 int CMS_data(CMS_ContentInfo *cms, BIO *out, unsigned int flags) in CMS_data() 121 CMS_ContentInfo *CMS_data_create_ex(BIO *in, unsigned int flags, in CMS_data_create_ex() 124 CMS_ContentInfo *cms = ossl_cms_Data_create(libctx, propq); in CMS_data_create_ex() 136 CMS_ContentInfo *CMS_data_create(BIO *in, unsigned int flags) in CMS_data_create() 141 int CMS_digest_verify(CMS_ContentInfo *cms, BIO *dcont, BIO *out, in CMS_digest_verify() 166 CMS_ContentInfo *CMS_digest_create_ex(BIO *in, const EVP_MD *md, in CMS_digest_create_ex() 170 CMS_ContentInfo *cms; in CMS_digest_create_ex() 192 CMS_ContentInfo *CMS_digest_create(BIO *in, const EVP_MD *md, in CMS_digest_create() 198 int CMS_EncryptedData_decrypt(CMS_ContentInfo *cms, in CMS_EncryptedData_decrypt() [all …]
|
H A D | cms_asn1.c | 290 ASN1_ADB_TEMPLATE(cms_default) = ASN1_EXP(CMS_ContentInfo, d.other, ASN1_ANY, 0); 292 ASN1_ADB(CMS_ContentInfo) = { 293 … ADB_ENTRY(NID_pkcs7_data, ASN1_NDEF_EXP(CMS_ContentInfo, d.data, ASN1_OCTET_STRING_NDEF, 0)), 294 … ADB_ENTRY(NID_pkcs7_signed, ASN1_NDEF_EXP(CMS_ContentInfo, d.signedData, CMS_SignedData, 0)), 295 …ADB_ENTRY(NID_pkcs7_enveloped, ASN1_NDEF_EXP(CMS_ContentInfo, d.envelopedData, CMS_EnvelopedData, … 296 … ADB_ENTRY(NID_pkcs7_digest, ASN1_NDEF_EXP(CMS_ContentInfo, d.digestedData, CMS_DigestedData, 0)), 297 …ADB_ENTRY(NID_pkcs7_encrypted, ASN1_NDEF_EXP(CMS_ContentInfo, d.encryptedData, CMS_EncryptedData, … 298 …ADB_ENTRY(NID_id_smime_ct_authEnvelopedData, ASN1_NDEF_EXP(CMS_ContentInfo, d.authEnvelopedData, C… 299 …ADB_ENTRY(NID_id_smime_ct_authData, ASN1_NDEF_EXP(CMS_ContentInfo, d.authenticatedData, CMS_Authen… 300 …ADB_ENTRY(NID_id_smime_ct_compressedData, ASN1_NDEF_EXP(CMS_ContentInfo, d.compressedData, CMS_Com… [all …]
|
H A D | cms_env.c | 29 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() 63 CMS_AuthEnvelopedData *ossl_cms_get0_auth_enveloped(CMS_ContentInfo *cms) in ossl_cms_get0_auth_enveloped() 72 static CMS_EnvelopedData *cms_enveloped_data_init(CMS_ContentInfo *cms) in cms_enveloped_data_init() 91 cms_auth_enveloped_data_init(CMS_ContentInfo *cms) in cms_auth_enveloped_data_init() 149 CMS_EncryptedContentInfo *ossl_cms_get0_env_enc_content(const CMS_ContentInfo *cms) in ossl_cms_get0_env_enc_content() 165 STACK_OF(CMS_RecipientInfo) *CMS_get0_RecipientInfos(CMS_ContentInfo *cms) in STACK_OF() 179 void ossl_cms_RecipientInfos_set_cmsctx(CMS_ContentInfo *cms) in ossl_cms_RecipientInfos_set_cmsctx() 226 CMS_ContentInfo *CMS_EnvelopedData_create_ex(const EVP_CIPHER *cipher, in CMS_EnvelopedData_create_ex() [all …]
|
H A D | cms_dd.c | 20 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 D | cms_cd.c | 24 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 D | cms_sd.c | 27 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() 129 static int cms_set_si_contentType_attr(CMS_ContentInfo *cms, CMS_SignerInfo *si) in cms_set_si_contentType_attr() 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() 508 void ossl_cms_SignerInfos_set_cmsctx(CMS_ContentInfo *cms) in ossl_cms_SignerInfos_set_cmsctx() 565 STACK_OF(CMS_SignerInfo) *CMS_get0_SignerInfos(CMS_ContentInfo *cms) in STACK_OF() 572 STACK_OF(X509) *CMS_get0_signers(CMS_ContentInfo *cms) in STACK_OF() 616 int CMS_set1_signers_certs(CMS_ContentInfo *cms, STACK_OF(X509) *scerts, in CMS_set1_signers_certs() [all …]
|
/freebsd/crypto/openssl/include/openssl/ |
H A D | cms.h.in | 35 typedef struct CMS_ContentInfo_st CMS_ContentInfo; typedef 52 DECLARE_ASN1_FUNCTIONS(CMS_ContentInfo) 54 DECLARE_ASN1_PRINT_FUNCTION(CMS_ContentInfo) 56 CMS_ContentInfo *CMS_ContentInfo_new_ex(OSSL_LIB_CTX *libctx, const char *propq); 96 const ASN1_OBJECT *CMS_get0_type(const CMS_ContentInfo *cms); 98 BIO *CMS_dataInit(CMS_ContentInfo *cms, BIO *icont); 99 int CMS_dataFinal(CMS_ContentInfo *cms, BIO *bio); 101 ASN1_OCTET_STRING **CMS_get0_content(CMS_ContentInfo *cms); 102 int CMS_is_detached(CMS_ContentInfo *cms); 103 int CMS_set_detached(CMS_ContentInfo *cms, int detached); [all …]
|
H A D | cms.h | 34 typedef struct CMS_ContentInfo_st CMS_ContentInfo; typedef 150 DECLARE_ASN1_FUNCTIONS(CMS_ContentInfo) 152 DECLARE_ASN1_PRINT_FUNCTION(CMS_ContentInfo) 154 CMS_ContentInfo *CMS_ContentInfo_new_ex(OSSL_LIB_CTX *libctx, const char *propq); 194 const ASN1_OBJECT *CMS_get0_type(const CMS_ContentInfo *cms); 196 BIO *CMS_dataInit(CMS_ContentInfo *cms, BIO *icont); 197 int CMS_dataFinal(CMS_ContentInfo *cms, BIO *bio); 199 ASN1_OCTET_STRING **CMS_get0_content(CMS_ContentInfo *cms); 200 int CMS_is_detached(CMS_ContentInfo *cms); 201 int CMS_set_detached(CMS_ContentInfo *cms, int detached); [all …]
|
/freebsd/crypto/openssl/doc/man3/ |
H A D | CMS_EnvelopedData_create.pod | 13 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 D | CMS_get0_type.pod | 11 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 D | SMIME_read_CMS.pod | 11 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 D | CMS_add0_cert.pod | 12 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 D | CMS_add1_recipient_cert.pod | 11 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 D | CMS_add1_signer.pod | 5 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 D | CMS_compress.pod | 11 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 D | CMS_sign.pod | 11 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 D | CMS_encrypt.pod | 11 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 D | CMS_data_create.pod | 12 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 D | CMS_digest_create.pod | 12 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 D | PEM_write_bio_CMS_stream.pod | 5 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 D | CMS_EncryptedData_encrypt.pod | 12 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 D | i2d_CMS_bio_stream.pod | 5 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.
|