Changeset 94082 in vbox for trunk/src/libs/openssl-3.0.1/doc/man3/CMS_encrypt.pod
- Timestamp:
- Mar 3, 2022 7:17:34 PM (3 years ago)
- svn:sync-xref-src-repo-rev:
- 150325
- Location:
- trunk/src/libs/openssl-3.0.1
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/libs/openssl-3.0.1
- Property svn:mergeinfo
-
old new 12 12 /vendor/openssl/1.1.1c:131722-131725 13 13 /vendor/openssl/1.1.1k:145841-145843 14 /vendor/openssl/3.0.1:150323-150324 15 /vendor/openssl/current:147554-150322
-
- Property svn:mergeinfo
-
trunk/src/libs/openssl-3.0.1/doc/man3/CMS_encrypt.pod
r91772 r94082 3 3 =head1 NAME 4 4 5 CMS_encrypt - create a CMS envelopedData structure5 CMS_encrypt_ex, CMS_encrypt - create a CMS envelopedData structure 6 6 7 7 =head1 SYNOPSIS … … 9 9 #include <openssl/cms.h> 10 10 11 CMS_ContentInfo *CMS_encrypt_ex(STACK_OF(X509) *certs, BIO *in, 12 const EVP_CIPHER *cipher, unsigned int flags, 13 OSSL_LIB_CTX *libctx, const char *propq); 11 14 CMS_ContentInfo *CMS_encrypt(STACK_OF(X509) *certs, BIO *in, 12 15 const EVP_CIPHER *cipher, unsigned int flags); … … 14 17 =head1 DESCRIPTION 15 18 16 CMS_encrypt() creates and returns a CMS EnvelopedData structure. B<certs> 17 is a list of recipient certificates. B<in> is the content to be encrypted. 18 B<cipher> is the symmetric cipher to use. B<flags> is an optional set of flags. 19 20 =head1 NOTES 19 CMS_encrypt_ex() creates and returns a CMS EnvelopedData or 20 AuthEnvelopedData structure. I<certs> is a list of recipient certificates. 21 I<in> is the content to be encrypted. I<cipher> is the symmetric cipher to use. 22 I<flags> is an optional set of flags. The library context I<libctx> and the 23 property query I<propq> are used internally when retrieving algorithms from 24 providers. 21 25 22 26 Only certificates carrying RSA, Diffie-Hellman or EC keys are supported by this … … 27 31 28 32 The algorithm passed in the B<cipher> parameter must support ASN1 encoding of 29 its parameters. 33 its parameters. If the cipher mode is GCM, then an AuthEnvelopedData structure 34 containing MAC is used. Otherwise an EnvelopedData structure is used. Currently 35 the AES variants with GCM mode are the only supported AEAD algorithms. 30 36 31 37 Many browsers implement a "sign and encrypt" option which is simply an S/MIME … … 61 67 practice and is not supported by SMIME_write_CMS(). 62 68 63 =head1 NOTES64 65 69 If the flag B<CMS_STREAM> is set the returned B<CMS_ContentInfo> structure is 66 70 B<not> complete and outputting its contents via a function that does not … … 80 84 added later using CMS_add1_recipient_cert() or CMS_add0_recipient_key(). 81 85 86 CMS_encrypt() is similar to CMS_encrypt_ex() but uses default values 87 of NULL for the library context I<libctx> and the property query I<propq>. 88 82 89 =head1 RETURN VALUES 83 90 84 CMS_encrypt() returns either a CMS_ContentInfo structure or NULL if an error 85 occurred. The error can be obtained from ERR_get_error(3). 91 CMS_encrypt_ex() and CMS_encrypt() return either a CMS_ContentInfo 92 structure or NULL if an error occurred. The error can be obtained from 93 ERR_get_error(3). 86 94 87 95 =head1 SEE ALSO … … 91 99 =head1 HISTORY 92 100 101 The function CMS_encrypt_ex() was added in OpenSSL 3.0. 102 93 103 The B<CMS_STREAM> flag was first supported in OpenSSL 1.0.0. 94 104 95 105 =head1 COPYRIGHT 96 106 97 Copyright 2008-20 18The OpenSSL Project Authors. All Rights Reserved.107 Copyright 2008-2020 The OpenSSL Project Authors. All Rights Reserved. 98 108 99 Licensed under the OpenSSL license(the "License"). You may not use109 Licensed under the Apache License 2.0 (the "License"). You may not use 100 110 this file except in compliance with the License. You can obtain a copy 101 111 in the file LICENSE in the source distribution or at
Note:
See TracChangeset
for help on using the changeset viewer.