VirtualBox

Ignore:
Timestamp:
Mar 3, 2022 7:17:34 PM (3 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
150325
Message:

libs/openssl-3.0.1: started applying and adjusting our OpenSSL changes to 3.0.1. bugref:10128

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  
        1212/vendor/openssl/1.1.1c:131722-131725
        1313/vendor/openssl/1.1.1k:145841-145843
         14/vendor/openssl/3.0.1:150323-150324
         15/vendor/openssl/current:147554-150322
  • trunk/src/libs/openssl-3.0.1/doc/man3/CMS_encrypt.pod

    r91772 r94082  
    33=head1 NAME
    44
    5 CMS_encrypt - create a CMS envelopedData structure
     5CMS_encrypt_ex, CMS_encrypt - create a CMS envelopedData structure
    66
    77=head1 SYNOPSIS
     
    99 #include <openssl/cms.h>
    1010
     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);
    1114 CMS_ContentInfo *CMS_encrypt(STACK_OF(X509) *certs, BIO *in,
    1215                              const EVP_CIPHER *cipher, unsigned int flags);
     
    1417=head1 DESCRIPTION
    1518
    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
     19CMS_encrypt_ex() creates and returns a CMS EnvelopedData or
     20AuthEnvelopedData structure. I<certs> is a list of recipient certificates.
     21I<in> is the content to be encrypted. I<cipher> is the symmetric cipher to use.
     22I<flags> is an optional set of flags. The library context I<libctx> and the
     23property query I<propq> are used internally when retrieving algorithms from
     24providers.
    2125
    2226Only certificates carrying RSA, Diffie-Hellman or EC keys are supported by this
     
    2731
    2832The algorithm passed in the B<cipher> parameter must support ASN1 encoding of
    29 its parameters.
     33its parameters. If the cipher mode is GCM, then an AuthEnvelopedData structure
     34containing MAC is used. Otherwise an EnvelopedData structure is used. Currently
     35the AES variants with GCM mode are the only supported AEAD algorithms.
    3036
    3137Many browsers implement a "sign and encrypt" option which is simply an S/MIME
     
    6167practice and is not supported by SMIME_write_CMS().
    6268
    63 =head1 NOTES
    64 
    6569If the flag B<CMS_STREAM> is set the returned B<CMS_ContentInfo> structure is
    6670B<not> complete and outputting its contents via a function that does not
     
    8084added later using CMS_add1_recipient_cert() or CMS_add0_recipient_key().
    8185
     86CMS_encrypt() is similar to CMS_encrypt_ex() but uses default values
     87of NULL for the library context I<libctx> and the property query I<propq>.
     88
    8289=head1 RETURN VALUES
    8390
    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).
     91CMS_encrypt_ex() and CMS_encrypt() return either a CMS_ContentInfo
     92structure or NULL if an error occurred. The error can be obtained from
     93ERR_get_error(3).
    8694
    8795=head1 SEE ALSO
     
    9199=head1 HISTORY
    92100
     101The function CMS_encrypt_ex() was added in OpenSSL 3.0.
     102
    93103The B<CMS_STREAM> flag was first supported in OpenSSL 1.0.0.
    94104
    95105=head1 COPYRIGHT
    96106
    97 Copyright 2008-2018 The OpenSSL Project Authors. All Rights Reserved.
     107Copyright 2008-2020 The OpenSSL Project Authors. All Rights Reserved.
    98108
    99 Licensed under the OpenSSL license (the "License").  You may not use
     109Licensed under the Apache License 2.0 (the "License").  You may not use
    100110this file except in compliance with the License.  You can obtain a copy
    101111in the file LICENSE in the source distribution or at
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette