Home
last modified time | relevance | path

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

123

/freebsd-13.1/crypto/openssl/crypto/cms/
H A Dcms_lib.c24 return cms->contentType; in IMPLEMENT_ASN1_PRINT_FUNCTION()
29 CMS_ContentInfo *cms; in cms_Data_create() local
30 cms = CMS_ContentInfo_new(); in cms_Data_create()
31 if (cms != NULL) { in cms_Data_create()
34 CMS_set_detached(cms, 0); in cms_Data_create()
36 return cms; in cms_Data_create()
62 cont = cms_content_bio(cms); in CMS_dataInit()
162 return &cms->d.data; in CMS_get0_content()
253 pos = CMS_get0_content(cms); in CMS_is_detached()
264 pos = CMS_get0_content(cms); in CMS_set_detached()
[all …]
H A Dcms_smime.c122 if (!cms) in CMS_data_create()
126 return cms; in CMS_data_create()
163 if (!cms) in CMS_digest_create()
170 return cms; in CMS_digest_create()
211 if (cms == NULL) in CMS_EncryptedData_encrypt()
221 return cms; in CMS_EncryptedData_encrypt()
443 if (cms == NULL || !CMS_SignedData_init(cms)) in CMS_sign()
466 return cms; in CMS_sign()
499 if (!cms) in CMS_sign_receipt()
553 if (!cms) in CMS_encrypt()
[all …]
H A Dcms_io.c17 int CMS_stream(unsigned char ***boundary, CMS_ContentInfo *cms) in CMS_stream() argument
20 pos = CMS_get0_content(cms); in CMS_stream()
35 CMS_ContentInfo *d2i_CMS_bio(BIO *bp, CMS_ContentInfo **cms) in d2i_CMS_bio() argument
40 int i2d_CMS_bio(BIO *bp, CMS_ContentInfo *cms) in i2d_CMS_bio() argument
47 BIO *BIO_new_CMS(BIO *out, CMS_ContentInfo *cms) in IMPLEMENT_PEM_rw_const()
49 return BIO_new_NDEF(out, (ASN1_VALUE *)cms, in IMPLEMENT_PEM_rw_const()
57 return i2d_ASN1_bio_stream(out, (ASN1_VALUE *)cms, in, flags, in i2d_CMS_bio_stream()
71 int ctype_nid = OBJ_obj2nid(cms->contentType); in SMIME_write_CMS()
72 int econt_nid = OBJ_obj2nid(CMS_get0_eContentType(cms)); in SMIME_write_CMS()
74 mdalgs = cms->d.signedData->digestAlgorithms; in SMIME_write_CMS()
[all …]
H A Dcms_env.c30 return cms->d.envelopedData; in cms_get0_enveloped()
35 if (cms->d.other == NULL) { in cms_enveloped_data_init()
37 if (!cms->d.envelopedData) { in cms_enveloped_data_init()
46 return cms->d.envelopedData; in cms_enveloped_data_init()
48 return cms_get0_enveloped(cms); in cms_enveloped_data_init()
84 env = cms_get0_enveloped(cms); in STACK_OF()
106 CMS_ContentInfo *cms; in CMS_EnvelopedData_create() local
108 cms = CMS_ContentInfo_new(); in CMS_EnvelopedData_create()
109 if (cms == NULL) in CMS_EnvelopedData_create()
117 return cms; in CMS_EnvelopedData_create()
[all …]
H A Dcms_cd.c26 CMS_ContentInfo *cms; in cms_CompressedData_create() local
37 cms = CMS_ContentInfo_new(); in cms_CompressedData_create()
38 if (cms == NULL) in cms_CompressedData_create()
46 cms->contentType = OBJ_nid2obj(NID_id_smime_ct_compressedData); in cms_CompressedData_create()
47 cms->d.compressedData = cd; in cms_CompressedData_create()
56 return cms; in cms_CompressedData_create()
59 CMS_ContentInfo_free(cms); in cms_CompressedData_create()
63 BIO *cms_CompressedData_init_bio(CMS_ContentInfo *cms) in cms_CompressedData_init_bio() argument
67 if (OBJ_obj2nid(cms->contentType) != NID_id_smime_ct_compressedData) { in cms_CompressedData_init_bio()
72 cd = cms->d.compressedData; in cms_CompressedData_init_bio()
H A Dcms_dd.c22 CMS_ContentInfo *cms; in cms_DigestedData_create() local
24 cms = CMS_ContentInfo_new(); in cms_DigestedData_create()
25 if (cms == NULL) in cms_DigestedData_create()
33 cms->contentType = OBJ_nid2obj(NID_pkcs7_digest); in cms_DigestedData_create()
34 cms->d.digestedData = dd; in cms_DigestedData_create()
41 return cms; in cms_DigestedData_create()
44 CMS_ContentInfo_free(cms); in cms_DigestedData_create()
48 BIO *cms_DigestedData_init_bio(CMS_ContentInfo *cms) in cms_DigestedData_init_bio() argument
51 dd = cms->d.digestedData; in cms_DigestedData_init_bio()
55 int cms_DigestedData_do_final(CMS_ContentInfo *cms, BIO *chain, int verify) in cms_DigestedData_do_final() argument
[all …]
H A Dcms_sd.c29 return cms->d.signedData; in cms_get0_signed()
34 if (cms->d.other == NULL) { in cms_signed_data_init()
36 if (!cms->d.signedData) { in cms_signed_data_init()
40 cms->d.signedData->version = 1; in cms_signed_data_init()
46 return cms->d.signedData; in cms_signed_data_init()
48 return cms_get0_signed(cms); in cms_signed_data_init()
55 if (cms_signed_data_init(cms)) in CMS_SignedData_init()
254 sd = cms_signed_data_init(cms); in CMS_add1_signer()
438 sd = cms_get0_signed(cms); in STACK_OF()
501 sd = cms_get0_signed(cms); in CMS_set1_signers_certs()
[all …]
H A Dcms_enc.c183 int CMS_EncryptedData_set1_key(CMS_ContentInfo *cms, const EVP_CIPHER *ciph, in CMS_EncryptedData_set1_key() argument
192 cms->d.encryptedData = M_ASN1_new_of(CMS_EncryptedData); in CMS_EncryptedData_set1_key()
193 if (!cms->d.encryptedData) { in CMS_EncryptedData_set1_key()
197 cms->contentType = OBJ_nid2obj(NID_pkcs7_encrypted); in CMS_EncryptedData_set1_key()
198 cms->d.encryptedData->version = 0; in CMS_EncryptedData_set1_key()
199 } else if (OBJ_obj2nid(cms->contentType) != NID_pkcs7_encrypted) { in CMS_EncryptedData_set1_key()
203 ec = cms->d.encryptedData->encryptedContentInfo; in CMS_EncryptedData_set1_key()
207 BIO *cms_EncryptedData_init_bio(CMS_ContentInfo *cms) in cms_EncryptedData_init_bio() argument
209 CMS_EncryptedData *enc = cms->d.encryptedData; in cms_EncryptedData_init_bio()
H A Dcms_local.h365 BIO *cms_content_bio(CMS_ContentInfo *cms);
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);
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);
406 CMS_EnvelopedData *cms_get0_enveloped(CMS_ContentInfo *cms);
[all …]
H A Dcms_ess.c171 int cms_Receipt_verify(CMS_ContentInfo *cms, CMS_ContentInfo *req_cms) in cms_Receipt_verify() argument
185 sis = CMS_get0_SignerInfos(cms); in cms_Receipt_verify()
195 if (OBJ_obj2nid(CMS_get0_eContentType(cms)) != NID_id_smime_ct_receipt) { in cms_Receipt_verify()
201 pcont = CMS_get0_content(cms); in cms_Receipt_verify()
/freebsd-13.1/crypto/openssl/include/openssl/
H A Dcms.h79 BIO *CMS_dataInit(CMS_ContentInfo *cms, BIO *icont);
80 int CMS_dataFinal(CMS_ContentInfo *cms, BIO *bio);
83 int CMS_is_detached(CMS_ContentInfo *cms);
91 int i2d_CMS_bio(BIO *bp, CMS_ContentInfo *cms);
93 BIO *BIO_new_CMS(BIO *out, CMS_ContentInfo *cms);
119 int CMS_EncryptedData_decrypt(CMS_ContentInfo *cms,
146 int CMS_decrypt_set1_key(CMS_ContentInfo *cms,
149 int CMS_decrypt_set1_password(CMS_ContentInfo *cms,
210 int CMS_add0_cert(CMS_ContentInfo *cms, X509 *cert);
211 int CMS_add1_cert(CMS_ContentInfo *cms, X509 *cert);
[all …]
/freebsd-13.1/crypto/heimdal/lib/hx509/
H A Dtest_cms.in69 ${hxtool} cms-create-sd \
75 ${hxtool} cms-verify-sd \
82 ${hxtool} cms-create-sd \
89 ${hxtool} cms-verify-sd \
98 ${hxtool} cms-verify-sd \
105 ${hxtool} cms-create-sd \
404 ${hxtool} cms-sign \
419 ${hxtool} cms-sign \
428 ${hxtool} cms-sign \
437 ${hxtool} cms-sign \
[all …]
H A DChangeLog195 * cms.c: Doxygen documentation.
278 * cms.c: remove stale comment.
344 * cms.c: Use hx509_crypto_random_iv.
474 * test_cms.in: Test cms peer-alg.
941 * cms.c: move _hx509_set_digest_alg from cms.c to crypto.c since
945 from cms.c since its only used here.
1281 * cms.c: Sprinkle error strings.
2485 * cms.c: Use _hx509_abort.
2672 * test_cms.in: add more cms tests
2725 * cms.c: add checks for KeyUsage
[all …]
/freebsd-13.1/crypto/openssl/doc/man3/
H 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 …]
H 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);
55 ASN1_OCTET_STRING **pconf = CMS_get0_content(cms);
H A DCMS_final.pod9 #include <openssl/cms.h>
11 int CMS_final(CMS_ContentInfo *cms, BIO *data, BIO *dcont, unsigned int flags);
15 CMS_final() finalises the structure B<cms>. Its purpose is to perform any
16 operations necessary on B<cms> (digest computation for example) and set the
H A DCMS_verify.pod9 #include <openssl/cms.h>
11 int CMS_verify(CMS_ContentInfo *cms, STACK_OF(X509) *certs, X509_STORE *store,
14 STACK_OF(X509) *CMS_get0_signers(CMS_ContentInfo *cms);
18 CMS_verify() verifies a CMS SignedData structure. B<cms> is the CMS_ContentInfo
22 present in B<cms>. The content is written to B<out> if it is not NULL.
27 CMS_get0_signers() retrieves the signing certificate(s) from B<cms>, it may only
34 Initially some sanity checks are performed on B<cms>. The type of B<cms> must
40 certificates contained in the B<cms> structure itself. If any signing
H A DCMS_add1_recipient_cert.pod9 #include <openssl/cms.h>
11 CMS_RecipientInfo *CMS_add1_recipient_cert(CMS_ContentInfo *cms,
14 CMS_RecipientInfo *CMS_add0_recipient_key(CMS_ContentInfo *cms, int nid,
24 data structure B<cms> as a KeyTransRecipientInfo structure.
29 data structure B<cms> as a KEKRecipientInfo structure.
H A DBIO_new_CMS.pod9 #include <openssl/cms.h>
11 BIO *BIO_new_CMS(BIO *out, CMS_ContentInfo *cms);
15 BIO_new_CMS() returns a streaming filter BIO chain based on B<cms>. The output
28 parameter of the B<cms> creation function.
H A DCMS_get0_RecipientInfos.pod14 #include <openssl/cms.h>
16 STACK_OF(CMS_RecipientInfo) *CMS_get0_RecipientInfos(CMS_ContentInfo *cms);
36 int CMS_RecipientInfo_decrypt(CMS_ContentInfo *cms, CMS_RecipientInfo *ri);
37 int CMS_RecipientInfo_encrypt(CMS_ContentInfo *cms, CMS_RecipientInfo *ri);
81 B<ri> in structure B<cms>. A key must have been associated with the structure
85 B<ri> in structure B<cms>. A key must have been associated with the structure
H A DCMS_uncompress.pod9 #include <openssl/cms.h>
11 int CMS_uncompress(CMS_ContentInfo *cms, BIO *dcont, BIO *out, unsigned int flags);
16 CompressedData structure B<cms>. B<data> is a BIO to write the content to and
/freebsd-13.1/crypto/openssl/apps/
H A Dcms.c741 cms = d2i_CMS_bio(in, NULL); in cms_main()
747 if (cms == NULL) { in cms_main()
819 if (cms == NULL) in cms_main()
888 CMS_ContentInfo_free(cms); in cms_main()
889 cms = srcms; in cms_main()
904 if (cms == NULL) in cms_main()
966 if (cms == NULL) { in cms_main()
1004 if (!CMS_data(cms, out, flags)) in cms_main()
1041 receipt_request_print(cms); in cms_main()
1106 CMS_ContentInfo_free(cms); in cms_main()
[all …]
/freebsd-13.1/crypto/heimdal/lib/asn1/
H A DMakefile.am200 cms_asn1_files: asn1_compile$(EXEEXT) $(srcdir)/cms.asn1 $(srcdir)/cms.opt
201 …$(ASN1_COMPILE) --one-code-file --option-file=$(srcdir)/cms.opt $(srcdir)/cms.asn1 cms_asn1 || (rm…
232 cms.asn1 \
233 cms.opt \
/freebsd-13.1/secure/usr.bin/openssl/
H A DMakefile.man6 MAN+= cms.1
55 MLINKS+= cms.1 openssl-cms.1
/freebsd-13.1/crypto/openssl/doc/man1/
H A Dcms.pod5 openssl-cms,
6 cms - CMS utility
10 B<openssl> B<cms>
614 openssl cms -sign -in message.txt -text -out mail.msg \
625 openssl cms -sign -in in.txt -text -out mail.msg \
630 openssl cms -sign -in message.txt -text -out mail.msg \
635 openssl cms -sign -in in.txt -text -signer mycert.pem \
651 openssl cms -sign -in ml.txt -signer my.pem -text \
652 | openssl cms -encrypt -out mail.msg \
694 openssl cms -encrypt -in plain.txt -out mail.msg \
[all …]

123