Home
last modified time | relevance | path

Searched refs:cms (Results 1 – 25 of 71) sorted by relevance

123

/openssl-master/crypto/cms/
A Dcms_lib.c75 if (cms != NULL) { in CMS_ContentInfo_free()
83 return cms != NULL ? &cms->ctx : NULL; in ossl_cms_get0_cmsctx()
120 return cms->contentType; in CMS_get0_type()
127 if (cms != NULL) { in ossl_cms_Data_create()
130 CMS_set_detached(cms, 0); in ossl_cms_Data_create()
132 return cms; in ossl_cms_Data_create()
269 return &cms->d.data; in CMS_get0_content()
369 pos = CMS_get0_content(cms); in CMS_is_detached()
381 pos = CMS_get0_content(cms); in CMS_set_detached()
549 r = CMS_add0_cert(cms, cert); in CMS_add1_cert()
[all …]
A Dcms_smime.c126 if (cms == NULL) in CMS_data_create_ex()
130 return cms; in CMS_data_create_ex()
179 if (cms == NULL) in CMS_digest_create_ex()
186 return cms; in CMS_digest_create_ex()
236 if (cms == NULL) in CMS_EncryptedData_encrypt_ex()
246 return cms; in CMS_EncryptedData_encrypt_ex()
512 if (cms == NULL || !CMS_SignedData_init(cms)) in CMS_sign_ex()
536 return cms; in CMS_sign_ex()
620 return cms; in CMS_sign_receipt()
653 return cms; in CMS_encrypt_ex()
[all …]
A Dcms_io.c21 pos = CMS_get0_content(cms); in CMS_stream()
36 CMS_ContentInfo *d2i_CMS_bio(BIO *bp, CMS_ContentInfo **cms) in d2i_CMS_bio() argument
39 const CMS_CTX *ctx = ossl_cms_get0_cmsctx(cms == NULL ? NULL : *cms); in d2i_CMS_bio()
49 int i2d_CMS_bio(BIO *bp, CMS_ContentInfo *cms) in i2d_CMS_bio() argument
56 BIO *BIO_new_CMS(BIO *out, CMS_ContentInfo *cms) in IMPLEMENT_PEM_rw()
58 return BIO_new_NDEF(out, (ASN1_VALUE *)cms, in IMPLEMENT_PEM_rw()
80 int ctype_nid = OBJ_obj2nid(cms->contentType); in SMIME_write_CMS()
82 const CMS_CTX *ctx = ossl_cms_get0_cmsctx(cms); in SMIME_write_CMS()
85 mdalgs = cms->d.signedData->digestAlgorithms; in SMIME_write_CMS()
97 CMS_ContentInfo **cms) in SMIME_read_CMS_ex() argument
[all …]
A Dcms_env.c52 return cms->d.envelopedData; in ossl_cms_get0_enveloped()
66 if (cms->d.other == NULL) { in cms_enveloped_data_init()
85 if (cms->d.other == NULL) { in cms_auth_enveloped_data_init()
220 CMS_ContentInfo *cms; in CMS_EnvelopedData_create_ex() local
224 if (cms == NULL) in CMS_EnvelopedData_create_ex()
233 return cms; in CMS_EnvelopedData_create_ex()
235 CMS_ContentInfo_free(cms); in CMS_EnvelopedData_create_ex()
249 CMS_ContentInfo *cms; in CMS_AuthEnvelopedData_create_ex() local
253 if (cms == NULL) in CMS_AuthEnvelopedData_create_ex()
262 return cms; in CMS_AuthEnvelopedData_create_ex()
[all …]
A Dcms_dd.c24 CMS_ContentInfo *cms; in ossl_cms_DigestedData_create() local
27 cms = CMS_ContentInfo_new_ex(libctx, propq); in ossl_cms_DigestedData_create()
28 if (cms == NULL) in ossl_cms_DigestedData_create()
36 cms->contentType = OBJ_nid2obj(NID_pkcs7_digest); in ossl_cms_DigestedData_create()
37 cms->d.digestedData = dd; in ossl_cms_DigestedData_create()
44 return cms; in ossl_cms_DigestedData_create()
47 CMS_ContentInfo_free(cms); in ossl_cms_DigestedData_create()
51 BIO *ossl_cms_DigestedData_init_bio(const CMS_ContentInfo *cms) in ossl_cms_DigestedData_init_bio() argument
53 CMS_DigestedData *dd = cms->d.digestedData; in ossl_cms_DigestedData_init_bio()
56 ossl_cms_get0_cmsctx(cms)); in ossl_cms_DigestedData_init_bio()
[all …]
A Dcms_cd.c28 CMS_ContentInfo *cms; in ossl_cms_CompressedData_create() local
39 cms = CMS_ContentInfo_new_ex(libctx, propq); in ossl_cms_CompressedData_create()
40 if (cms == NULL) in ossl_cms_CompressedData_create()
48 cms->contentType = OBJ_nid2obj(NID_id_smime_ct_compressedData); in ossl_cms_CompressedData_create()
49 cms->d.compressedData = cd; in ossl_cms_CompressedData_create()
58 return cms; in ossl_cms_CompressedData_create()
61 CMS_ContentInfo_free(cms); in ossl_cms_CompressedData_create()
65 BIO *ossl_cms_CompressedData_init_bio(const CMS_ContentInfo *cms) in ossl_cms_CompressedData_init_bio() argument
70 if (OBJ_obj2nid(cms->contentType) != NID_id_smime_ct_compressedData) { in ossl_cms_CompressedData_init_bio()
74 cd = cms->d.compressedData; in ossl_cms_CompressedData_init_bio()
A Dcms_sd.c33 return cms->d.signedData; in cms_get0_signed()
38 if (cms->d.other == NULL) { in cms_signed_data_init()
40 if (!cms->d.signedData) { in cms_signed_data_init()
44 cms->d.signedData->version = 1; in cms_signed_data_init()
50 return cms->d.signedData; in cms_signed_data_init()
52 return cms_get0_signed(cms); in cms_signed_data_init()
59 if (cms_signed_data_init(cms)) in CMS_SignedData_init()
146 sinfos = CMS_get0_SignerInfos(cms); in cms_copy_messageDigest()
319 sd = cms_signed_data_init(cms); in CMS_add1_signer()
615 sd = cms_get0_signed(cms); in CMS_set1_signers_certs()
[all …]
A Dcms_local.h391 BIO *ossl_cms_content_bio(CMS_ContentInfo *cms);
392 const CMS_CTX *ossl_cms_get0_cmsctx(const CMS_ContentInfo *cms);
402 BIO *ossl_cms_DigestedData_init_bio(const CMS_ContentInfo *cms);
403 int ossl_cms_DigestedData_do_final(const CMS_ContentInfo *cms,
406 BIO *ossl_cms_SignedData_init_bio(CMS_ContentInfo *cms);
407 int ossl_cms_SignedData_final(CMS_ContentInfo *cms, BIO *chain);
433 BIO *ossl_cms_EncryptedData_init_bio(const CMS_ContentInfo *cms);
443 BIO *ossl_cms_EnvelopedData_init_bio(CMS_ContentInfo *cms);
445 BIO *ossl_cms_AuthEnvelopedData_init_bio(CMS_ContentInfo *cms);
456 void ossl_cms_RecipientInfos_set_cmsctx(CMS_ContentInfo *cms);
[all …]
A Dcms_enc.c216 int CMS_EncryptedData_set1_key(CMS_ContentInfo *cms, const EVP_CIPHER *ciph, in CMS_EncryptedData_set1_key() argument
226 cms->d.encryptedData = M_ASN1_new_of(CMS_EncryptedData); in CMS_EncryptedData_set1_key()
227 if (!cms->d.encryptedData) { in CMS_EncryptedData_set1_key()
231 cms->contentType = OBJ_nid2obj(NID_pkcs7_encrypted); in CMS_EncryptedData_set1_key()
232 cms->d.encryptedData->version = 0; in CMS_EncryptedData_set1_key()
233 } else if (OBJ_obj2nid(cms->contentType) != NID_pkcs7_encrypted) { in CMS_EncryptedData_set1_key()
237 ec = cms->d.encryptedData->encryptedContentInfo; in CMS_EncryptedData_set1_key()
239 ossl_cms_get0_cmsctx(cms)); in CMS_EncryptedData_set1_key()
242 BIO *ossl_cms_EncryptedData_init_bio(const CMS_ContentInfo *cms) in ossl_cms_EncryptedData_init_bio() argument
244 CMS_EncryptedData *enc = cms->d.encryptedData; in ossl_cms_EncryptedData_init_bio()
[all …]
/openssl-master/include/openssl/
A Dcms.h.in98 BIO *CMS_dataInit(CMS_ContentInfo *cms, BIO *icont);
99 int CMS_dataFinal(CMS_ContentInfo *cms, BIO *bio);
102 int CMS_is_detached(CMS_ContentInfo *cms);
110 int i2d_CMS_bio(BIO *bp, CMS_ContentInfo *cms);
112 BIO *BIO_new_CMS(BIO *out, CMS_ContentInfo *cms);
148 int CMS_EncryptedData_decrypt(CMS_ContentInfo *cms,
185 int CMS_decrypt_set1_key(CMS_ContentInfo *cms,
188 int CMS_decrypt_set1_password(CMS_ContentInfo *cms,
259 int CMS_add0_cert(CMS_ContentInfo *cms, X509 *cert);
260 int CMS_add1_cert(CMS_ContentInfo *cms, X509 *cert);
[all …]
/openssl-master/doc/man3/
A DCMS_add0_cert.pod10 #include <openssl/cms.h>
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);
22 CMS_add0_cert() and CMS_add1_cert() add certificate B<cert> to B<cms>.
25 CMS_get1_certs() returns all certificates in B<cms>.
28 returns any CRLs in B<cms>.
[all …]
A DCMS_get0_type.pod9 #include <openssl/cms.h>
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);
56 ASN1_OCTET_STRING **pconf = CMS_get0_content(cms);
A DSMIME_read_CMS.pod9 #include <openssl/cms.h>
12 CMS_ContentInfo **cms);
28 created I<cms> CMS_ContentInfo object can be supplied as well as some I<flags>.
29 To create a I<cms> object use L<CMS_ContentInfo_new_ex(3)>.
34 If I<flags> is 0 and I<cms> is NULL then it is identical to SMIME_read_CMS().
48 CMS_ContentInfo *cms;
50 cms = SMIME_read_CMS(in, &cont);
/openssl-master/demos/cms/
A Dcms_sign2.c20 CMS_ContentInfo *cms = NULL; in main() local
58 cms = CMS_sign(NULL, NULL, NULL, in, CMS_STREAM | CMS_PARTIAL); in main()
60 if (!cms) in main()
65 if (!CMS_add1_signer(cms, scert, skey, NULL, 0)) in main()
68 if (!CMS_add1_signer(cms, scert2, skey2, NULL, 0)) in main()
77 if (!SMIME_write_CMS(out, cms, in, CMS_STREAM)) in main()
89 CMS_ContentInfo_free(cms); in main()
A Dcms_uncomp.c18 CMS_ContentInfo *cms = NULL; in main() local
32 cms = SMIME_read_CMS(in, NULL); in main()
34 if (!cms) in main()
42 if (!CMS_uncompress(cms, out, NULL, 0)) in main()
54 CMS_ContentInfo_free(cms); in main()
A Dcms_denc.c23 CMS_ContentInfo *cms = NULL; in main() local
64 cms = CMS_encrypt(recips, in, EVP_des_ede3_cbc(), flags); in main()
66 if (!cms) in main()
73 if (!CMS_final(cms, in, dout, flags)) in main()
77 if (!PEM_write_bio_CMS(out, cms)) in main()
89 CMS_ContentInfo_free(cms); in main()
A Dcms_comp.c18 CMS_ContentInfo *cms = NULL; in main() local
38 cms = CMS_compress(in, NID_zlib_compression, flags); in main()
40 if (!cms) in main()
48 if (!SMIME_write_CMS(out, cms, in, flags)) in main()
60 CMS_ContentInfo_free(cms); in main()
A Dcms_dec.c20 CMS_ContentInfo *cms = NULL; in main() local
49 cms = SMIME_read_CMS(in, NULL); in main()
51 if (!cms) in main()
59 if (!CMS_decrypt(cms, rkey, rcert, NULL, out, 0)) in main()
71 CMS_ContentInfo_free(cms); in main()
A Dcms_ver.c20 CMS_ContentInfo *cms = NULL; in main() local
53 cms = SMIME_read_CMS(in, &cont); in main()
55 if (!cms) in main()
63 if (!CMS_verify(cms, NULL, st, cont, out, 0)) { in main()
79 CMS_ContentInfo_free(cms); in main()
A Dcms_ddec.c23 CMS_ContentInfo *cms = NULL; in main() local
52 cms = PEM_read_bio_CMS(in, NULL, 0, NULL); in main()
54 if (!cms) in main()
68 if (!CMS_decrypt(cms, rkey, rcert, dcont, out, 0)) in main()
80 CMS_ContentInfo_free(cms); in main()
A Dcms_enc.c20 CMS_ContentInfo *cms = NULL; in main() local
63 cms = CMS_encrypt(recips, in, EVP_des_ede3_cbc(), flags); in main()
65 if (!cms) in main()
73 if (!SMIME_write_CMS(out, cms, in, flags)) in main()
85 CMS_ContentInfo_free(cms); in main()
A Dcms_sign.c20 CMS_ContentInfo *cms = NULL; in main() local
56 cms = CMS_sign(scert, skey, NULL, in, flags); in main()
58 if (!cms) in main()
69 if (!SMIME_write_CMS(out, cms, in, flags)) in main()
81 CMS_ContentInfo_free(cms); in main()
/openssl-master/fuzz/
A Dcms.c30 CMS_ContentInfo *cms; in FuzzerTestOneInput() local
38 cms = d2i_CMS_bio(in, NULL); in FuzzerTestOneInput()
39 if (cms != NULL) { in FuzzerTestOneInput()
42 i2d_CMS_bio(out, cms); in FuzzerTestOneInput()
44 CMS_ContentInfo_free(cms); in FuzzerTestOneInput()
A Dbuild.info18 IF[{- !$disabled{"cms"} -}]
19 PROGRAMS{noinst}=cms
50 SOURCE[cms]=cms.c driver.c
51 INCLUDE[cms]=../include {- $ex_inc -}
52 DEPEND[cms]=../libcrypto {- $ex_lib -}
82 IF[{- !$disabled{"cms"} -}]
83 PROGRAMS{noinst}=cms-test
115 SOURCE[cms-test]=cms.c test-corpus.c
116 INCLUDE[cms-test]=../include
117 DEPEND[cms-test]=../libcrypto
/openssl-master/apps/
A Dcms.c896 if (cms == NULL) in cms_main()
957 if (cms == NULL) in cms_main()
1029 sis = CMS_get0_SignerInfos(cms); in cms_main()
1036 CMS_ContentInfo_free(cms); in cms_main()
1037 cms = srcms; in cms_main()
1052 if (cms == NULL) in cms_main()
1113 if (cms == NULL) { in cms_main()
1151 if (!CMS_data(cms, out, flags)) in cms_main()
1190 receipt_request_print(cms); in cms_main()
1269 CMS_ContentInfo_free(cms); in cms_main()
[all …]

Completed in 50 milliseconds

123