Home
last modified time | relevance | path

Searched +full:no +full:- +full:cms (Results 1 – 25 of 125) sorted by relevance

12345

/third_party/openssl/apps/
Dcms.c2 * Copyright 2008-2021 The OpenSSL Project Authors. All Rights Reserved.
10 /* CMS utility function */
22 #include <openssl/cms.h>
26 static void receipt_request_print(CMS_ContentInfo *cms);
91 {OPT_HELP_STR, 1, '-', "Usage: %s [options] [cert...]\n"},
92 {"help", OPT_HELP, '-', "Display this summary"},
100 {"encrypt", OPT_ENCRYPT, '-', "Encrypt message"},
101 {"decrypt", OPT_DECRYPT, '-', "Decrypt encrypted message"},
102 {"sign", OPT_SIGN, '-', "Sign message"},
103 {"verify", OPT_VERIFY, '-', "Verify signed message"},
[all …]
/third_party/openssl/doc/man1/
Dopenssl-cms.pod.in2 {- OpenSSL::safe::output_do_not_edit_headers(); -}
6 openssl-cms - CMS command
10 B<openssl> B<cms>
11 [B<-help>]
15 [B<-in> I<filename>]
16 [B<-out> I<filename>]
17 {- $OpenSSL::safe::opt_config_synopsis -}
21 [B<-encrypt>]
22 [B<-decrypt>]
23 [B<-sign>]
[all …]
Dopenssl-format-options.pod5 openssl-format-options - OpenSSL command input and output format options
21 format is no more needed and the openssl commands will automatically try all
39 =item B<-inform> I<format>, B<-outform> I<format>
43 =item B<-keyform> I<format>
47 =item B<-CRLform> I<format>
71 An engine must be configured or specified using the B<-engine> option.
72 A password or PIN may be supplied to the engine using the B<-passin> option.
76 A DER-encoded file containing a PKCS#12 object.
83 a block of base-64 encoding (defined in IETF RFC 4648), with specific
87 ----- BEGIN object-type -----
[all …]
/third_party/openssl/doc/man3/
DBIO_new_CMS.pod5 BIO_new_CMS - CMS streaming filter BIO
9 #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
17 automatically translated to a BER format CMS structure of the appropriate type.
28 parameter of the B<cms> creation function.
32 is reached. If no additional data needs to be written BIO_free_all() can be
35 Any content written through the filter is used verbatim: no canonical
49 There is currently no corresponding inverse BIO: i.e. one which can decode
50 a CMS structure on the fly.
[all …]
DCMS_decrypt.pod5 CMS_decrypt, CMS_decrypt_set1_pkey_and_peer, CMS_decrypt_set1_pkey - decrypt
6 content from a CMS envelopedData structure
10 #include <openssl/cms.h>
12 int CMS_decrypt(CMS_ContentInfo *cms, EVP_PKEY *pkey, X509 *cert,
14 int CMS_decrypt_set1_pkey_and_peer(CMS_ContentInfo *cms,
16 int CMS_decrypt_set1_pkey(CMS_ContentInfo *cms, EVP_PKEY *pk, X509 *cert);
20 CMS_decrypt() extracts and decrypts the content from a CMS EnvelopedData
30 the CMS_ContentInfo structure B<cms>.
33 certificate B<cert> with the CMS_ContentInfo structure B<cms>.
38 needed to locate the appropriate (of possible several) recipients in the CMS
[all …]
DCMS_get0_SignerInfos.pod8 - CMS signedData signer functions
12 #include <openssl/cms.h>
14 STACK_OF(CMS_SignerInfo) *CMS_get0_SignerInfos(CMS_ContentInfo *cms);
25 associated with a CMS signedData structure.
52 CMS. It will then obtain the signer certificate by some unspecified means
59 there are no signers this is not a problem in practice because the only
60 error which can occur is if the B<cms> structure is not of type signedData
66 are no signers or an error occurs.
83 Copyright 2008-2018 The OpenSSL Project Authors. All Rights Reserved.
DCMS_get0_type.pod5 CMS_get0_type, CMS_set1_eContentType, CMS_get0_eContentType, CMS_get0_content - get and set CMS con…
9 #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);
23 structure. It should be called with CMS functions (such as L<CMS_sign(3)>,
56 ASN1_OCTET_STRING **pconf = CMS_get0_content(cms);
58 B<*pconf> could be NULL if there is no embedded content. Applications can
76 Copyright 2008-2016 The OpenSSL Project Authors. All Rights Reserved.
DCMS_sign.pod5 CMS_sign, CMS_sign_ex - create a CMS SignedData structure
9 #include <openssl/cms.h>
20 CMS_sign_ex() creates and returns a CMS SignedData structure.
23 in the CMS structure (for example any intermediate CAs in the chain). The
56 required by the S/MIME specifications) if B<CMS_BINARY> is set no translation
60 The SignedData structure includes several CMS signedAttributes including the
61 signing time, the CMS content type and the supported list of ciphers in an
62 SMIMECapabilities attribute. If B<CMS_NOATTR> is set then no signedAttributes
67 algorithms in preference order: 256 bit AES, Gost R3411-94, Gost 28147-89, 192
101 If B<signcert> and B<pkey> are NULL then a certificates only CMS structure is
[all …]
DCMS_add1_signer.pod5 CMS_add1_signer, CMS_SignerInfo_sign - add a signer to a CMS_ContentInfo signed data structure
9 #include <openssl/cms.h>
11 CMS_SignerInfo *CMS_add1_signer(CMS_ContentInfo *cms, X509 *signcert,
21 structure B<cms>.
24 CMS_sign() with the flag B<CMS_PARTIAL> set or in the case or re-signing a
41 over a CMS signed data structure where the simpler CMS_sign() function defaults
44 CMS_SignerInfo structure and the CMS attribute utility functions or the
45 CMS signed receipt request functions.
67 The SignedData structure includes several CMS signedAttributes including the
68 signing time, the CMS content type and the supported list of ciphers in an
[all …]
DCMS_encrypt.pod5 CMS_encrypt_ex, CMS_encrypt - create a CMS envelopedData structure
9 #include <openssl/cms.h>
19 CMS_encrypt_ex() creates and returns a CMS EnvelopedData or
26 Only certificates carrying RSA, Diffie-Hellman or EC keys are supported by this
48 required by the S/MIME specifications) if B<CMS_BINARY> is set no translation
59 returned suitable for streaming I/O: no data is read from the BIO B<in>.
79 The recipients specified in B<certs> use a CMS KeyTransRecipientInfo info
107 Copyright 2008-2020 The OpenSSL Project Authors. All Rights Reserved.
DCMS_compress.pod5 CMS_compress - create a CMS CompressedData structure
9 #include <openssl/cms.h>
15 CMS_compress() creates and returns a CMS CompressedData structure. B<comp_nid>
30 required by the S/MIME specifications) if B<CMS_BINARY> is set no translation
36 returned suitable for streaming I/O: no data is read from the BIO B<in>.
70 Copyright 2008-2016 The OpenSSL Project Authors. All Rights Reserved.
/third_party/openssl/crypto/cms/
Dcms_smime.c2 * Copyright 2008-2022 The OpenSSL Project Authors. All Rights Reserved.
15 #include <openssl/cms.h>
78 static int check_content(CMS_ContentInfo *cms) in check_content() argument
80 ASN1_OCTET_STRING **pos = CMS_get0_content(cms); in check_content()
104 int CMS_data(CMS_ContentInfo *cms, BIO *out, unsigned int flags) in CMS_data() argument
109 if (OBJ_obj2nid(CMS_get0_type(cms)) != NID_pkcs7_data) { in CMS_data()
113 cont = CMS_dataInit(cms, NULL); in CMS_data()
124 CMS_ContentInfo *cms = ossl_cms_Data_create(libctx, propq); in CMS_data_create_ex() local
126 if (cms == NULL) in CMS_data_create_ex()
129 if ((flags & CMS_STREAM) || CMS_final(cms, in, NULL, flags)) in CMS_data_create_ex()
[all …]
Dcms_env.c2 * Copyright 2008-2021 The OpenSSL Project Authors. All Rights Reserved.
15 #include <openssl/cms.h>
23 /* CMS EnvelopedData Utilities */
29 static int cms_get_enveloped_type(const CMS_ContentInfo *cms) in cms_get_enveloped_type() argument
31 int nid = OBJ_obj2nid(cms->contentType); in cms_get_enveloped_type()
46 CMS_EnvelopedData *ossl_cms_get0_enveloped(CMS_ContentInfo *cms) in ossl_cms_get0_enveloped() argument
48 if (OBJ_obj2nid(cms->contentType) != NID_pkcs7_enveloped) { in ossl_cms_get0_enveloped()
52 return cms->d.envelopedData; in ossl_cms_get0_enveloped()
55 CMS_AuthEnvelopedData *ossl_cms_get0_auth_enveloped(CMS_ContentInfo *cms) in ossl_cms_get0_auth_enveloped() argument
57 if (OBJ_obj2nid(cms->contentType) != NID_id_smime_ct_authEnvelopedData) { in ossl_cms_get0_auth_enveloped()
[all …]
Dcms_local.h2 * Copyright 2008-2021 The OpenSSL Project Authors. All Rights Reserved.
16 * Cryptographic message syntax (CMS) structures: taken from RFC3852
140 /* Set to 1 if we have no cert and need extra safety measures for MMA */
332 * This is also defined in pkcs7.h but we duplicate it to allow the CMS code
391 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);
[all …]
Dcms_att.c2 * Copyright 2008-2021 The OpenSSL Project Authors. All Rights Reserved.
14 #include <openssl/cms.h>
18 /*-
20 * CMS attribute restrictions are discussed in
21 * - RFC 5652 Section 11.
23 * - RFC 2634 Section 1.3.4 AND
24 * - RFC 5035 Section 5.4
67 /* CMS SignedData Attribute utilities */
71 return X509at_get_attr_count(si->signedAttrs); in CMS_signed_get_attr_count()
76 return X509at_get_attr_by_NID(si->signedAttrs, nid, lastpos); in CMS_signed_get_attr_by_NID()
[all …]
Dcms_kari.c2 * Copyright 2013-2021 The OpenSSL Project Authors. All Rights Reserved.
21 #include <openssl/cms.h>
32 if (ri->type != CMS_RECIPINFO_AGREE) { in CMS_RecipientInfo_kari_get0_alg()
37 *palg = ri->d.kari->keyEncryptionAlgorithm; in CMS_RecipientInfo_kari_get0_alg()
39 *pukm = ri->d.kari->ukm; in CMS_RecipientInfo_kari_get0_alg()
48 if (ri->type != CMS_RECIPINFO_AGREE) { in STACK_OF()
52 return ri->d.kari->recipientEncryptedKeys; in STACK_OF()
64 if (ri->type != CMS_RECIPINFO_AGREE) { in CMS_RecipientInfo_kari_get0_orig_id()
68 oik = ri->d.kari->originator; in CMS_RecipientInfo_kari_get0_orig_id()
79 if (oik->type == CMS_OIK_ISSUER_SERIAL) { in CMS_RecipientInfo_kari_get0_orig_id()
[all …]
Dcms_err.c3 * Copyright 1995-2021 The OpenSSL Project Authors. All Rights Reserved.
25 "certificate has no keyid"},
36 "cms datafinal error"},
37 {ERR_PACK(ERR_LIB_CMS, 0, CMS_R_CMS_LIB), "cms lib"},
94 {ERR_PACK(ERR_LIB_CMS, 0, CMS_R_NO_CIPHER), "no cipher"},
95 {ERR_PACK(ERR_LIB_CMS, 0, CMS_R_NO_CONTENT), "no content"},
96 {ERR_PACK(ERR_LIB_CMS, 0, CMS_R_NO_CONTENT_TYPE), "no content type"},
97 {ERR_PACK(ERR_LIB_CMS, 0, CMS_R_NO_DEFAULT_DIGEST), "no default digest"},
98 {ERR_PACK(ERR_LIB_CMS, 0, CMS_R_NO_DIGEST_SET), "no digest set"},
99 {ERR_PACK(ERR_LIB_CMS, 0, CMS_R_NO_KEY), "no key"},
[all …]
/third_party/openssl/test/recipes/
D80-test_cms.t2 # Copyright 2015-2021 The OpenSSL Project Authors. All Rights Reserved.
29 plan skip_all => "CMS is not supported by this OpenSSL build"
30 if disabled("cms");
35 my @legacyprov = ("-provider-path", $provpath,
36 "-provider", "default",
37 "-provider", "legacy" );
38 my @defaultprov = ("-provider-path", $provpath,
39 "-provider", "default");
44 my $datadir = srctop_dir("test", "recipes", "80-test_cms_data");
45 my $smdir = srctop_dir("test", "smime-certs");
[all …]
D25-test_d2i.t2 # Copyright 2015-2016 The OpenSSL Project Authors. All Rights Reserved.
22 srctop_file('test','d2i-tests','bad_cert.der')])),
26 srctop_file('test','d2i-tests','bad_generalname.der')])),
30 srctop_file('test','d2i-tests','bad_bio.der')])),
32 # This test checks CVE-2016-2108. The data consists of an tag 258 and
39 srctop_file('test','d2i-tests','high_tag.der')])),
45 srctop_file('test','d2i-tests','high_tag.der')])),
48 # Parse valid 0, 1 and -1 ASN.1 INTEGER as INTEGER or ANY.
51 srctop_file('test','d2i-tests','int0.der')])),
55 srctop_file('test','d2i-tests','int1.der')])),
[all …]
/third_party/openssl/.github/workflows/
Drun-checker-ci.yml1 # Copyright 2021-2022 The OpenSSL Project Authors. All Rights Reserved.
9 name: Run-checker CI
15 run-checker:
17 fail-fast: false
20 no-cmp,
21 no-cms,
22 no-ct,
23 no-dtls,
24 no-ec,
25 no-ec2m,
[all …]
/third_party/skia/third_party/externals/libjpeg-turbo/testimages/
Dtest1.icc.txt1 Little CMS
2 Copyright (c) 1998-2011 Marti Maria Saguer
16 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
Dtest2.icc.txt1 Little CMS
2 Copyright (c) 1998-2011 Marti Maria Saguer
16 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
/third_party/flutter/skia/third_party/externals/libjpeg-turbo/testimages/
Dtest2.icc.txt1 Little CMS
2 Copyright (c) 1998-2011 Marti Maria Saguer
16 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
Dtest1.icc.txt1 Little CMS
2 Copyright (c) 1998-2011 Marti Maria Saguer
16 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
/third_party/libjpeg-turbo/testimages/
Dtest1.icc.txt1 Little CMS
2 Copyright (c) 1998-2011 Marti Maria Saguer
16 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE

12345