
#use wml::openssl-macros area=docs page=EVP_PKEY_new

<title>Documents, EVP_PKEY_new(3)</title>

<h1>EVP_PKEY_new(3)</h1>

#use wml::imp::generic

{:
## What's this? [[s|(<STRONG>[^<].+?)</A>(</STRONG><DD>)|$1$2|sg]]
[[s|<P>\s+<P>|<P>|sg]]
[[s|<P>\s+</|</|sg]]
[[s|<DD>\s*<DT>|<DD>&nbsp;<DT>|sg]]
[[s|<DD>\s*</DL>|<DD>&nbsp;</DL>|sg]]
[[s|\[|&#91;|sg]]
[[s|\]|&#93;|sg]]

<!-- INDEX BEGIN -->

<UL>

	<LI><A HREF="#NAME">NAME</A>
	<LI><A HREF="#SYNOPSIS">SYNOPSIS</A>
	<LI><A HREF="#DESCRIPTION">DESCRIPTION</A>
	<LI><A HREF="#NOTES">NOTES</A>
	<LI><A HREF="#RETURN_VALUES">RETURN VALUES</A>
	<LI><A HREF="#SEE_ALSO">SEE ALSO</A>
	<LI><A HREF="#HISTORY">HISTORY</A>
</UL>
<!-- INDEX END -->

<HR>
<P>
<HR>
<H1><A NAME="NAME">NAME</A></H1>
<P>
EVP_PKEY_new, EVP_PKEY_free - private key allocation functions.

</P>
<P>
<HR>
<H1><A NAME="SYNOPSIS">SYNOPSIS</A></H1>
<PRE> #include &lt;openssl/evp.h&gt;
</PRE>
<PRE> EVP_PKEY *EVP_PKEY_new(void);
 void EVP_PKEY_free(EVP_PKEY *key);
</PRE>
<P>
<HR>
<H1><A NAME="DESCRIPTION">DESCRIPTION</A></H1>
<P>
The <CODE>EVP_PKEY_new()</CODE> function allocates an empty <STRONG>EVP_PKEY</STRONG> 
structure which is used by OpenSSL to store private keys.

</P>
<P>
<CODE>EVP_PKEY_free()</CODE> frees up the private key <STRONG>key</STRONG>.

</P>
<P>
<HR>
<H1><A NAME="NOTES">NOTES</A></H1>
<P>
The <STRONG>EVP_PKEY</STRONG> structure is used by various OpenSSL functions which require a general
private key without reference to any particular algorithm.

</P>
<P>
The structure returned by <CODE>EVP_PKEY_new()</CODE> is empty. To add a
private key to this empty structure the functions described in
<A HREF="../crypto/EVP_PKEY_set1_RSA.html#">EVP_PKEY_set1_RSA(3)</A> should be used.

</P>
<P>
<HR>
<H1><A NAME="RETURN_VALUES">RETURN VALUES</A></H1>
<P>
<CODE>EVP_PKEY_new()</CODE> returns either the newly allocated <STRONG>EVP_PKEY</STRONG>
structure of <STRONG>NULL</STRONG> if an error occurred.

</P>
<P>
<CODE>EVP_PKEY_free()</CODE> does not return a value.

</P>
<P>
<HR>
<H1><A NAME="SEE_ALSO">SEE ALSO</A></H1>
<P>
<A HREF="../crypto/EVP_PKEY_set1_RSA.html#">EVP_PKEY_set1_RSA(3)</A>



</P>
<P>
<HR>
<H1><A NAME="HISTORY">HISTORY</A></H1>
<P>
TBA

</P>
:}


