| /freebsd/crypto/openssl/crypto/cms/ |
| H A D | cms_io.c | 18 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() 42 ci = ASN1_item_d2i_bio_ex(ASN1_ITEM_rptr(CMS_ContentInfo), bp, cms, in d2i_CMS_bio() 53 int i2d_CMS_bio(BIO *bp, CMS_ContentInfo *cms) in i2d_CMS_bio() 55 return ASN1_item_i2d_bio(ASN1_ITEM_rptr(CMS_ContentInfo), bp, 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() 68 int i2d_CMS_bio_stream(BIO *out, CMS_ContentInfo *cms, BIO *in, int flags) in i2d_CMS_bio_stream() [all …]
|
| H A D | cms_local.h | 368 DECLARE_ASN1_FUNCTIONS(CMS_ContentInfo) 391 BIO *ossl_cms_content_bio(CMS_ContentInfo *cms); 392 const CMS_CTX *ossl_cms_get0_cmsctx(const CMS_ContentInfo *cms); 395 void ossl_cms_resolve_libctx(CMS_ContentInfo *ci); 397 CMS_ContentInfo *ossl_cms_Data_create(OSSL_LIB_CTX *ctx, const char *propq); 398 int ossl_cms_DataFinal(CMS_ContentInfo *cms, BIO *cmsbio, 402 CMS_ContentInfo *ossl_cms_DigestedData_create(const EVP_MD *md, 405 BIO *ossl_cms_DigestedData_init_bio(const CMS_ContentInfo *cms); 406 int ossl_cms_DigestedData_do_final(const CMS_ContentInfo *cms, 409 BIO *ossl_cms_SignedData_init_bio(CMS_ContentInfo *cms); [all …]
|
| H A D | cms_lib.c | 26 cms_get0_certificate_choices(CMS_ContentInfo *cms); 28 IMPLEMENT_ASN1_ALLOC_FUNCTIONS(CMS_ContentInfo) 29 IMPLEMENT_ASN1_PRINT_FUNCTION(CMS_ContentInfo) in IMPLEMENT_ASN1_PRINT_FUNCTION() argument 31 CMS_ContentInfo *d2i_CMS_ContentInfo(CMS_ContentInfo **a, in IMPLEMENT_ASN1_PRINT_FUNCTION() 34 CMS_ContentInfo *ci; in IMPLEMENT_ASN1_PRINT_FUNCTION() 37 ci = (CMS_ContentInfo *)ASN1_item_d2i_ex((ASN1_VALUE **)a, in, len, in IMPLEMENT_ASN1_PRINT_FUNCTION() 49 int i2d_CMS_ContentInfo(const CMS_ContentInfo *a, unsigned char **out) in i2d_CMS_ContentInfo() 54 CMS_ContentInfo *CMS_ContentInfo_new_ex(OSSL_LIB_CTX *libctx, const char *propq) in CMS_ContentInfo_new_ex() 56 CMS_ContentInfo *ci; in CMS_ContentInfo_new_ex() 58 ci = (CMS_ContentInfo *)ASN1_item_new_ex(ASN1_ITEM_rptr(CMS_ContentInfo), in CMS_ContentInfo_new_ex() [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 | 274 ASN1_ADB_TEMPLATE(cms_default) = ASN1_EXP(CMS_ContentInfo, d.other, ASN1_ANY, 0); 276 ASN1_ADB(CMS_ContentInfo) = { 277 ADB_ENTRY(NID_pkcs7_data, ASN1_NDEF_EXP(CMS_ContentInfo, d.data, ASN1_OCTET_STRING_NDEF, 0)), 278 ADB_ENTRY(NID_pkcs7_signed, ASN1_NDEF_EXP(CMS_ContentInfo, d.signedData, CMS_SignedData, 0)), 279 …ADB_ENTRY(NID_pkcs7_enveloped, ASN1_NDEF_EXP(CMS_ContentInfo, d.envelopedData, CMS_EnvelopedData, … 280 … ADB_ENTRY(NID_pkcs7_digest, ASN1_NDEF_EXP(CMS_ContentInfo, d.digestedData, CMS_DigestedData, 0)), 281 …ADB_ENTRY(NID_pkcs7_encrypted, ASN1_NDEF_EXP(CMS_ContentInfo, d.encryptedData, CMS_EncryptedData, … 282 …ADB_ENTRY(NID_id_smime_ct_authEnvelopedData, ASN1_NDEF_EXP(CMS_ContentInfo, d.authEnvelopedData, C… 283 …ADB_ENTRY(NID_id_smime_ct_authData, ASN1_NDEF_EXP(CMS_ContentInfo, d.authenticatedData, CMS_Authen… 284 …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() 90 cms_auth_enveloped_data_init(CMS_ContentInfo *cms) in cms_auth_enveloped_data_init() 147 CMS_EncryptedContentInfo *ossl_cms_get0_env_enc_content(const CMS_ContentInfo *cms) in ossl_cms_get0_env_enc_content() 163 STACK_OF(CMS_RecipientInfo) *CMS_get0_RecipientInfos(CMS_ContentInfo *cms) in STACK_OF() 177 void ossl_cms_RecipientInfos_set_cmsctx(CMS_ContentInfo *cms) in ossl_cms_RecipientInfos_set_cmsctx() 224 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() 66 BIO *ossl_cms_CompressedData_init_bio(const CMS_ContentInfo *cms) in ossl_cms_CompressedData_init_bio()
|
| /freebsd/crypto/openssl/include/openssl/ |
| H A D | cms.h.in | 38 typedef struct CMS_ContentInfo_st CMS_ContentInfo; typedef 60 DECLARE_ASN1_FUNCTIONS(CMS_ContentInfo) 62 DECLARE_ASN1_PRINT_FUNCTION(CMS_ContentInfo) 66 CMS_ContentInfo *CMS_ContentInfo_new_ex(OSSL_LIB_CTX *libctx, const char *propq); 107 const ASN1_OBJECT *CMS_get0_type(const CMS_ContentInfo *cms); 109 BIO *CMS_dataInit(CMS_ContentInfo *cms, BIO *icont); 110 int CMS_dataFinal(CMS_ContentInfo *cms, BIO *bio); 112 ASN1_OCTET_STRING **CMS_get0_content(CMS_ContentInfo *cms); 113 int CMS_is_detached(CMS_ContentInfo *cms); 114 int CMS_set_detached(CMS_ContentInfo *cms, int detached); [all …]
|
| H A D | cms.h | 37 typedef struct CMS_ContentInfo_st CMS_ContentInfo; typedef 158 DECLARE_ASN1_FUNCTIONS(CMS_ContentInfo) 160 DECLARE_ASN1_PRINT_FUNCTION(CMS_ContentInfo) 164 CMS_ContentInfo *CMS_ContentInfo_new_ex(OSSL_LIB_CTX *libctx, const char *propq); 205 const ASN1_OBJECT *CMS_get0_type(const CMS_ContentInfo *cms); 207 BIO *CMS_dataInit(CMS_ContentInfo *cms, BIO *icont); 208 int CMS_dataFinal(CMS_ContentInfo *cms, BIO *bio); 210 ASN1_OCTET_STRING **CMS_get0_content(CMS_ContentInfo *cms); 211 int CMS_is_detached(CMS_ContentInfo *cms); 212 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)> 54 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_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_add0_cert.pod | 13 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 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_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_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 79 If the flags B<CMS_STREAM> is set then the returned B<CMS_ContentInfo> 85 If the B<CMS_PARTIAL> flag is set a partial B<CMS_ContentInfo> structure is 89 If the flag B<CMS_STREAM> is set the returned B<CMS_ContentInfo> structure is 91 properly finalize the B<CMS_ContentInfo> structure will give unpredictable 119 CMS_sign_ex() and CMS_sign() return either a valid CMS_ContentInfo
|
| 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.
|
| /freebsd/crypto/openssl/test/ |
| H A D | cmsapitest.c | 32 CMS_ContentInfo *content = NULL; in test_encrypt_decrypt() 94 CMS_ContentInfo *cms = NULL; in test_CMS_add1_cert() 108 CMS_ContentInfo *cms = NULL; in test_d2i_CMS_bio_NULL() 353 CMS_ContentInfo *cms = NULL; in test_d2i_CMS_decode() 390 CMS_ContentInfo *cms; in test_CMS_set1_key_mem_leak() 417 CMS_ContentInfo *cms; in test_encrypted_data() 448 CMS_ContentInfo *cms; in test_encrypted_data_aead() 487 CMS_ContentInfo *cms = NULL; in test_cms_aesgcm_iv_too_long()
|