ve value for failure.</p>

<p>EVP_PKEY_get1_encoded_public_key() returns the length of the encoded key or 0 for failure.</p>

<h1 id="EXAMPLES">EXAMPLES</h1>

<p>See <a href="../man3/EVP_PKEY_derive_init.html">EVP_PKEY_derive_init(3)</a> and <a href="../man3/EVP_PKEY_derive.html">EVP_PKEY_derive(3)</a> for information about performing a key exchange operation.</p>

<h2 id="Set-up-a-peers-EVP_PKEY-ready-for-a-key-exchange-operation">Set up a peer&#39;s EVP_PKEY ready for a key exchange operation</h2>

<pre><