Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
CMS_ENVELOPEDDATA_CREATE(3)	    OpenSSL	   CMS_ENVELOPEDDATA_CREATE(3)

NAME
       CMS_EnvelopedData_create	- Create CMS envelope

SYNOPSIS
	#include <openssl/cms.h>

	CMS_ContentInfo	*CMS_EnvelopedData_create(const	EVP_CIPHER *cipher);

DESCRIPTION
       CMS_EnvelopedData_create() creates a CMS_ContentInfo structure with a
       type NID_pkcs7_enveloped. cipher	is the symmetric cipher	to use.

       The algorithm passed in the cipher parameter must support ASN1 encoding
       of its parameters.

       The recipients can be added later using CMS_add1_recipient_cert(3) or
       CMS_add0_recipient_key(3).

       The CMS_ContentInfo structure needs to be finalized using CMS_final(3)
       and then	freed using CMS_ContentInfo_free(3).

NOTES
       Although	CMS_EnvelopedData_create() allocates a new CMS_ContentInfo
       structure it is usually not used	in applications. The wrappers
       CMS_encrypt(3) and CMS_decrypt(3) are often used	instead.

RETURN VALUES
       If the allocation fails,	CMS_EnvelopedData_create() returns NULL	and
       sets an error code that can be obtained by ERR_get_error(3).  Otherwise
       it returns a pointer to the newly allocated structure.

SEE ALSO
       ERR_get_error(3), CMS_encrypt(3), CMS_decrypt(3), CMS_final(3)

COPYRIGHT
       Copyright 2020 The OpenSSL Project Authors. All Rights Reserved.

       Licensed	under the Apache License 2.0 (the "License").  You may not use
       this file except	in compliance with the License.	 You can obtain	a copy
       in the file LICENSE in the source distribution or at
       <https://www.openssl.org/source/license.html>.

3.0.0-alpha6			  2020-08-06	   CMS_ENVELOPEDDATA_CREATE(3)

NAME | SYNOPSIS | DESCRIPTION | NOTES | RETURN VALUES | SEE ALSO | COPYRIGHT

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=CMS_EnvelopedData_create&sektion=3&manpath=FreeBSD+12.1-RELEASE+and+Ports>

home | help