Files
GopherGate/target/doc/openssl/pkey_ctx/struct.PkeyCtx.html
2026-02-26 12:00:21 -05:00

199 lines
89 KiB
HTML

<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="A context object which can perform asymmetric cryptography operations."><title>PkeyCtx in openssl::pkey_ctx - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2"href="../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../static.files/rustdoc-ca0dd0c4.css"><meta name="rustdoc-vars" data-root-path="../../" data-static-root-path="../../static.files/" data-current-crate="openssl" data-themes="" data-resource-suffix="" data-rustdoc-version="1.93.1 (01f6ddf75 2026-02-11) (Arch Linux rust 1:1.93.1-1)" data-channel="1.93.1" data-search-js="search-9e2438ea.js" data-stringdex-js="stringdex-a3946164.js" data-settings-js="settings-c38705f0.js" ><script src="../../static.files/storage-e2aeef58.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../static.files/main-a410ff4d.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-263c88ec.css"></noscript><link rel="alternate icon" type="image/png" href="../../static.files/favicon-32x32-eab170b8.png"><link rel="icon" type="image/svg+xml" href="../../static.files/favicon-044be391.svg"></head><body class="rustdoc struct"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><rustdoc-topbar><h2><a href="#">PkeyCtx</a></h2></rustdoc-topbar><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../openssl/index.html">openssl</a><span class="version">0.10.75</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">PkeyCtx</a></h2><h3><a href="#implementations">Methods</a></h3><ul class="block method"><li><a href="#method.new" title="new">new</a></li><li><a href="#method.new_id" title="new_id">new_id</a></li></ul><h3><a href="#deref-methods-PkeyCtxRef%3CT%3E">Methods from Deref&lt;<wbr>Target=<wbr>Pkey<wbr>CtxRef&lt;<wbr>T&gt;&gt;</a></h3><ul class="block deref-methods"><li><a href="#method.add_hkdf_info" title="add_hkdf_info">add_hkdf_info</a></li><li><a href="#method.decrypt" title="decrypt">decrypt</a></li><li><a href="#method.decrypt_init" title="decrypt_init">decrypt_init</a></li><li><a href="#method.decrypt_to_vec" title="decrypt_to_vec">decrypt_to_vec</a></li><li><a href="#method.derive" title="derive">derive</a></li><li><a href="#method.derive_init" title="derive_init">derive_init</a></li><li><a href="#method.derive_set_peer" title="derive_set_peer">derive_set_peer</a></li><li><a href="#method.derive_to_vec" title="derive_to_vec">derive_to_vec</a></li><li><a href="#method.encrypt" title="encrypt">encrypt</a></li><li><a href="#method.encrypt_init" title="encrypt_init">encrypt_init</a></li><li><a href="#method.encrypt_to_vec" title="encrypt_to_vec">encrypt_to_vec</a></li><li><a href="#method.keygen" title="keygen">keygen</a></li><li><a href="#method.keygen_init" title="keygen_init">keygen_init</a></li><li><a href="#method.nonce_type" title="nonce_type">nonce_type</a></li><li><a href="#method.paramgen" title="paramgen">paramgen</a></li><li><a href="#method.paramgen_init" title="paramgen_init">paramgen_init</a></li><li><a href="#method.rsa_padding" title="rsa_padding">rsa_padding</a></li><li><a href="#method.set_dh_paramgen_generator" title="set_dh_paramgen_generator">set_dh_paramgen_generator</a></li><li><a href="#method.set_dh_paramgen_prime_len" title="set_dh_paramgen_prime_len">set_dh_paramgen_prime_len</a></li><li><a href="#method.set_dsa_paramgen_bits" title="set_dsa_paramgen_bits">set_dsa_paramgen_bits</a></li><li><a href="#method.set_ec_paramgen_curve_nid" title="set_ec_paramgen_curve_nid">set_ec_paramgen_curve_nid</a></li><li><a href="#method.set_hkdf_key" title="set_hkdf_key">set_hkdf_key</a></li><li><a href="#method.set_hkdf_md" title="set_hkdf_md">set_hkdf_md</a></li><li><a href="#method.set_hkdf_mode" title="set_hkdf_mode">set_hkdf_mode</a></li><li><a href="#method.set_hkdf_salt" title="set_hkdf_salt">set_hkdf_salt</a></li><li><a href="#method.set_keygen_cipher" title="set_keygen_cipher">set_keygen_cipher</a></li><li><a href="#method.set_keygen_mac_key" title="set_keygen_mac_key">set_keygen_mac_key</a></li><li><a href="#method.set_nonce_type" title="set_nonce_type">set_nonce_type</a></li><li><a href="#method.set_rsa_keygen_bits" title="set_rsa_keygen_bits">set_rsa_keygen_bits</a></li><li><a href="#method.set_rsa_keygen_pubexp" title="set_rsa_keygen_pubexp">set_rsa_keygen_pubexp</a></li><li><a href="#method.set_rsa_mgf1_md" title="set_rsa_mgf1_md">set_rsa_mgf1_md</a></li><li><a href="#method.set_rsa_oaep_label" title="set_rsa_oaep_label">set_rsa_oaep_label</a></li><li><a href="#method.set_rsa_oaep_md" title="set_rsa_oaep_md">set_rsa_oaep_md</a></li><li><a href="#method.set_rsa_padding" title="set_rsa_padding">set_rsa_padding</a></li><li><a href="#method.set_rsa_pss_saltlen" title="set_rsa_pss_saltlen">set_rsa_pss_saltlen</a></li><li><a href="#method.set_signature_md" title="set_signature_md">set_signature_md</a></li><li><a href="#method.sign" title="sign">sign</a></li><li><a href="#method.sign_init" title="sign_init">sign_init</a></li><li><a href="#method.sign_to_vec" title="sign_to_vec">sign_to_vec</a></li><li><a href="#method.verify" title="verify">verify</a></li><li><a href="#method.verify_init" title="verify_init">verify_init</a></li><li><a href="#method.verify_recover" title="verify_recover">verify_recover</a></li><li><a href="#method.verify_recover_init" title="verify_recover_init">verify_recover_init</a></li></ul><h3><a href="#trait-implementations">Trait Implementations</a></h3><ul class="block trait-implementation"><li><a href="#impl-AsRef%3CPkeyCtxRef%3CT%3E%3E-for-PkeyCtx%3CT%3E" title="AsRef&#60;PkeyCtxRef&#60;T&#62;&#62;">AsRef&#60;PkeyCtxRef&#60;T&#62;&#62;</a></li><li><a href="#impl-Borrow%3CPkeyCtxRef%3CT%3E%3E-for-PkeyCtx%3CT%3E" title="Borrow&#60;PkeyCtxRef&#60;T&#62;&#62;">Borrow&#60;PkeyCtxRef&#60;T&#62;&#62;</a></li><li><a href="#impl-Deref-for-PkeyCtx%3CT%3E" title="Deref">Deref</a></li><li><a href="#impl-DerefMut-for-PkeyCtx%3CT%3E" title="DerefMut">DerefMut</a></li><li><a href="#impl-Drop-for-PkeyCtx%3CT%3E" title="Drop">Drop</a></li><li><a href="#impl-ForeignType-for-PkeyCtx%3CT%3E" title="ForeignType">ForeignType</a></li><li><a href="#impl-Send-for-PkeyCtx%3CT%3E" title="Send">Send</a></li><li><a href="#impl-Sync-for-PkeyCtx%3CT%3E" title="Sync">Sync</a></li></ul><h3><a href="#synthetic-implementations">Auto Trait Implementations</a></h3><ul class="block synthetic-implementation"><li><a href="#impl-Freeze-for-PkeyCtx%3CT%3E" title="Freeze">Freeze</a></li><li><a href="#impl-RefUnwindSafe-for-PkeyCtx%3CT%3E" title="RefUnwindSafe">RefUnwindSafe</a></li><li><a href="#impl-Unpin-for-PkeyCtx%3CT%3E" title="Unpin">Unpin</a></li><li><a href="#impl-UnwindSafe-for-PkeyCtx%3CT%3E" title="UnwindSafe">UnwindSafe</a></li></ul><h3><a href="#blanket-implementations">Blanket Implementations</a></h3><ul class="block blanket-implementation"><li><a href="#impl-Any-for-T" title="Any">Any</a></li><li><a href="#impl-Borrow%3CT%3E-for-T" title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a href="#impl-BorrowMut%3CT%3E-for-T" title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a href="#impl-From%3CT%3E-for-T" title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a href="#impl-Into%3CU%3E-for-T" title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a href="#impl-Receiver-for-P" title="Receiver">Receiver</a></li><li><a href="#impl-TryFrom%3CU%3E-for-T" title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a href="#impl-TryInto%3CU%3E-for-T" title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div id="rustdoc-modnav"><h2><a href="index.html">In openssl::<wbr>pkey_<wbr>ctx</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../index.html">openssl</a>::<wbr><a href="index.html">pkey_ctx</a></div><h1>Struct <span class="struct">PkeyCtx</span>&nbsp;<button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../../src/openssl/pkey_ctx.rs.html#130-138">Source</a> </span></div><pre class="rust item-decl"><code>pub struct PkeyCtx&lt;T&gt;(<span class="comment">/* private fields */</span>);</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>A context object which can perform asymmetric cryptography operations.</p>
</div></details><h2 id="implementations" class="section-header">Implementations<a href="#implementations" class="anchor">§</a></h2><div id="implementations-list"><details class="toggle implementors-toggle" open><summary><section id="impl-PkeyCtx%3CT%3E" class="impl"><a class="src rightside" href="../../src/openssl/pkey_ctx.rs.html#140-150">Source</a><a href="#impl-PkeyCtx%3CT%3E" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; <a class="struct" href="struct.PkeyCtx.html" title="struct openssl::pkey_ctx::PkeyCtx">PkeyCtx</a>&lt;T&gt;</h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.new" class="method"><a class="src rightside" href="../../src/openssl/pkey_ctx.rs.html#144-149">Source</a><h4 class="code-header">pub fn <a href="#method.new" class="fn">new</a>(pkey: &amp;<a class="struct" href="../pkey/struct.PKeyRef.html" title="struct openssl::pkey::PKeyRef">PKeyRef</a>&lt;T&gt;) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;Self, <a class="struct" href="../error/struct.ErrorStack.html" title="struct openssl::error::ErrorStack">ErrorStack</a>&gt;</h4></section></summary><div class="docblock"><p>Creates a new pkey context using the provided key.</p>
<p>This corresponds to <a href="https://www.openssl.org/docs/manmaster/man3/EVP_PKEY_CTX_new.html"><code>EVP_PKEY_CTX_new</code></a>.</p>
</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-PkeyCtx%3C()%3E" class="impl"><a class="src rightside" href="../../src/openssl/pkey_ctx.rs.html#152-162">Source</a><a href="#impl-PkeyCtx%3C()%3E" class="anchor">§</a><h3 class="code-header">impl <a class="struct" href="struct.PkeyCtx.html" title="struct openssl::pkey_ctx::PkeyCtx">PkeyCtx</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.unit.html">()</a>&gt;</h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.new_id" class="method"><a class="src rightside" href="../../src/openssl/pkey_ctx.rs.html#156-161">Source</a><h4 class="code-header">pub fn <a href="#method.new_id" class="fn">new_id</a>(id: <a class="struct" href="../pkey/struct.Id.html" title="struct openssl::pkey::Id">Id</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;Self, <a class="struct" href="../error/struct.ErrorStack.html" title="struct openssl::error::ErrorStack">ErrorStack</a>&gt;</h4></section></summary><div class="docblock"><p>Creates a new pkey context for the specified algorithm ID.</p>
<p>This corresponds to <a href="https://www.openssl.org/docs/manmaster/man3/EVP_PKEY_CTX_new_id.html"><code>EVP_PKEY_CTX_new_id</code></a>.</p>
</div></details></div></details></div><details class="toggle big-toggle" open><summary><h2 id="deref-methods-PkeyCtxRef%3CT%3E" class="section-header"><span>Methods from <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/ops/deref/trait.Deref.html" title="trait core::ops::deref::Deref">Deref</a>&lt;Target = <a class="struct" href="struct.PkeyCtxRef.html" title="struct openssl::pkey_ctx::PkeyCtxRef">PkeyCtxRef</a>&lt;T&gt;&gt;</span><a href="#deref-methods-PkeyCtxRef%3CT%3E" class="anchor">§</a></h2></summary><div id="deref-methods-PkeyCtxRef%3CT%3E-1" class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.encrypt_init" class="method"><a class="src rightside" href="../../src/openssl/pkey_ctx.rs.html#171-177">Source</a><h4 class="code-header">pub fn <a href="#method.encrypt_init" class="fn">encrypt_init</a>(&amp;mut self) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.unit.html">()</a>, <a class="struct" href="../error/struct.ErrorStack.html" title="struct openssl::error::ErrorStack">ErrorStack</a>&gt;</h4></section></summary><div class="docblock"><p>Prepares the context for encryption using the public key.</p>
<p>This corresponds to <a href="https://www.openssl.org/docs/manmaster/man3/EVP_PKEY_encrypt_init.html"><code>EVP_PKEY_encrypt_init</code></a>.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.verify_init" class="method"><a class="src rightside" href="../../src/openssl/pkey_ctx.rs.html#182-188">Source</a><h4 class="code-header">pub fn <a href="#method.verify_init" class="fn">verify_init</a>(&amp;mut self) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.unit.html">()</a>, <a class="struct" href="../error/struct.ErrorStack.html" title="struct openssl::error::ErrorStack">ErrorStack</a>&gt;</h4></section></summary><div class="docblock"><p>Prepares the context for signature verification using the public key.</p>
<p>This corresponds to <a href="https://www.openssl.org/docs/manmaster/man3/EVP_PKEY_verify_init.html"><code>EVP_PKEY_verify_init</code></a>.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.verify_recover_init" class="method"><a class="src rightside" href="../../src/openssl/pkey_ctx.rs.html#193-199">Source</a><h4 class="code-header">pub fn <a href="#method.verify_recover_init" class="fn">verify_recover_init</a>(&amp;mut self) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.unit.html">()</a>, <a class="struct" href="../error/struct.ErrorStack.html" title="struct openssl::error::ErrorStack">ErrorStack</a>&gt;</h4></section></summary><div class="docblock"><p>Prepares the context for signature recovery using the public key.</p>
<p>This corresponds to <a href="https://www.openssl.org/docs/manmaster/man3/EVP_PKEY_verify_recover_init.html"><code>EVP_PKEY_verify_recover_init</code></a>.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.encrypt" class="method"><a class="src rightside" href="../../src/openssl/pkey_ctx.rs.html#207-220">Source</a><h4 class="code-header">pub fn <a href="#method.encrypt" class="fn">encrypt</a>(
&amp;mut self,
from: &amp;[<a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.u8.html">u8</a>],
to: <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;&amp;mut [<a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.u8.html">u8</a>]&gt;,
) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.usize.html">usize</a>, <a class="struct" href="../error/struct.ErrorStack.html" title="struct openssl::error::ErrorStack">ErrorStack</a>&gt;</h4></section></summary><div class="docblock"><p>Encrypts data using the public key.</p>
<p>If <code>to</code> is set to <code>None</code>, an upper bound on the number of bytes required for the output buffer will be
returned.</p>
<p>This corresponds to <a href="https://www.openssl.org/docs/manmaster/man3/EVP_PKEY_encrypt.html"><code>EVP_PKEY_encrypt</code></a>.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.encrypt_to_vec" class="method"><a class="src rightside" href="../../src/openssl/pkey_ctx.rs.html#223-230">Source</a><h4 class="code-header">pub fn <a href="#method.encrypt_to_vec" class="fn">encrypt_to_vec</a>(
&amp;mut self,
from: &amp;[<a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.u8.html">u8</a>],
out: &amp;mut <a class="struct" href="https://doc.rust-lang.org/1.93.1/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.u8.html">u8</a>&gt;,
) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.usize.html">usize</a>, <a class="struct" href="../error/struct.ErrorStack.html" title="struct openssl::error::ErrorStack">ErrorStack</a>&gt;</h4></section></summary><div class="docblock"><p>Like <a href="struct.PkeyCtxRef.html#method.encrypt" title="method openssl::pkey_ctx::PkeyCtxRef::encrypt"><code>Self::encrypt</code></a> but appends ciphertext to a <a href="https://doc.rust-lang.org/1.93.1/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec"><code>Vec</code></a>.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.verify" class="method"><a class="src rightside" href="../../src/openssl/pkey_ctx.rs.html#244-267">Source</a><h4 class="code-header">pub fn <a href="#method.verify" class="fn">verify</a>(&amp;mut self, data: &amp;[<a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.u8.html">u8</a>], sig: &amp;[<a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.u8.html">u8</a>]) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.bool.html">bool</a>, <a class="struct" href="../error/struct.ErrorStack.html" title="struct openssl::error::ErrorStack">ErrorStack</a>&gt;</h4></section></summary><div class="docblock"><p>Verifies the signature of data using the public key.</p>
<p>Returns <code>Ok(true)</code> if the signature is valid, <code>Ok(false)</code> if the signature is invalid, and <code>Err</code> if an error
occurred.</p>
<h5 id="note"><a class="doc-anchor" href="#note">§</a>Note</h5>
<p>This verifies the signature of the <em>raw</em> data. It is more common to compute and verify the signature of the
cryptographic hash of an arbitrary amount of data. The <a href="../md_ctx/struct.MdCtx.html" title="struct openssl::md_ctx::MdCtx"><code>MdCtx</code></a> type can be used to do
that.</p>
<p>This corresponds to <a href="https://www.openssl.org/docs/manmaster/man3/EVP_PKEY_verify.html"><code>EVP_PKEY_verify</code></a>.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.verify_recover" class="method"><a class="src rightside" href="../../src/openssl/pkey_ctx.rs.html#276-293">Source</a><h4 class="code-header">pub fn <a href="#method.verify_recover" class="fn">verify_recover</a>(
&amp;mut self,
sig: &amp;[<a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.u8.html">u8</a>],
to: <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;&amp;mut [<a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.u8.html">u8</a>]&gt;,
) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.usize.html">usize</a>, <a class="struct" href="../error/struct.ErrorStack.html" title="struct openssl::error::ErrorStack">ErrorStack</a>&gt;</h4></section></summary><div class="docblock"><p>Recovers the original data signed by the private key. You almost
always want <code>verify</code> instead.</p>
<p>Returns the number of bytes written to <code>to</code>, or the number of bytes
that would be written, if <code>to</code> is `None.</p>
<p>This corresponds to <a href="https://www.openssl.org/docs/manmaster/man3/EVP_PKEY_verify_recover.html"><code>EVP_PKEY_verify_recover</code></a>.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.decrypt_init" class="method"><a class="src rightside" href="../../src/openssl/pkey_ctx.rs.html#303-309">Source</a><h4 class="code-header">pub fn <a href="#method.decrypt_init" class="fn">decrypt_init</a>(&amp;mut self) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.unit.html">()</a>, <a class="struct" href="../error/struct.ErrorStack.html" title="struct openssl::error::ErrorStack">ErrorStack</a>&gt;</h4></section></summary><div class="docblock"><p>Prepares the context for decryption using the private key.</p>
<p>This corresponds to <a href="https://www.openssl.org/docs/manmaster/man3/EVP_PKEY_decrypt_init.html"><code>EVP_PKEY_decrypt_init</code></a>.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.sign_init" class="method"><a class="src rightside" href="../../src/openssl/pkey_ctx.rs.html#314-320">Source</a><h4 class="code-header">pub fn <a href="#method.sign_init" class="fn">sign_init</a>(&amp;mut self) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.unit.html">()</a>, <a class="struct" href="../error/struct.ErrorStack.html" title="struct openssl::error::ErrorStack">ErrorStack</a>&gt;</h4></section></summary><div class="docblock"><p>Prepares the context for signing using the private key.</p>
<p>This corresponds to <a href="https://www.openssl.org/docs/manmaster/man3/EVP_PKEY_sign_init.html"><code>EVP_PKEY_sign_init</code></a>.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.derive_set_peer" class="method"><a class="src rightside" href="../../src/openssl/pkey_ctx.rs.html#324-333">Source</a><h4 class="code-header">pub fn <a href="#method.derive_set_peer" class="fn">derive_set_peer</a>&lt;U&gt;(&amp;mut self, key: &amp;<a class="struct" href="../pkey/struct.PKeyRef.html" title="struct openssl::pkey::PKeyRef">PKeyRef</a>&lt;U&gt;) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.unit.html">()</a>, <a class="struct" href="../error/struct.ErrorStack.html" title="struct openssl::error::ErrorStack">ErrorStack</a>&gt;<div class="where">where
U: <a class="trait" href="../pkey/trait.HasPublic.html" title="trait openssl::pkey::HasPublic">HasPublic</a>,</div></h4></section></summary><div class="docblock"><p>Sets the peer key used for secret derivation.</p>
<p>This corresponds to <a href="https://www.openssl.org/docs/manmaster/man3/EVP_PKEY_derive_set_peer.html"><code>EVP_PKEY_derive_set_peer</code></a>.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.decrypt" class="method"><a class="src rightside" href="../../src/openssl/pkey_ctx.rs.html#341-354">Source</a><h4 class="code-header">pub fn <a href="#method.decrypt" class="fn">decrypt</a>(
&amp;mut self,
from: &amp;[<a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.u8.html">u8</a>],
to: <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;&amp;mut [<a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.u8.html">u8</a>]&gt;,
) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.usize.html">usize</a>, <a class="struct" href="../error/struct.ErrorStack.html" title="struct openssl::error::ErrorStack">ErrorStack</a>&gt;</h4></section></summary><div class="docblock"><p>Decrypts data using the private key.</p>
<p>If <code>to</code> is set to <code>None</code>, an upper bound on the number of bytes required for the output buffer will be
returned.</p>
<p>This corresponds to <a href="https://www.openssl.org/docs/manmaster/man3/EVP_PKEY_decrypt.html"><code>EVP_PKEY_decrypt</code></a>.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.decrypt_to_vec" class="method"><a class="src rightside" href="../../src/openssl/pkey_ctx.rs.html#357-364">Source</a><h4 class="code-header">pub fn <a href="#method.decrypt_to_vec" class="fn">decrypt_to_vec</a>(
&amp;mut self,
from: &amp;[<a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.u8.html">u8</a>],
out: &amp;mut <a class="struct" href="https://doc.rust-lang.org/1.93.1/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.u8.html">u8</a>&gt;,
) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.usize.html">usize</a>, <a class="struct" href="../error/struct.ErrorStack.html" title="struct openssl::error::ErrorStack">ErrorStack</a>&gt;</h4></section></summary><div class="docblock"><p>Like <a href="struct.PkeyCtxRef.html#method.decrypt" title="method openssl::pkey_ctx::PkeyCtxRef::decrypt"><code>Self::decrypt</code></a> but appends plaintext to a <a href="https://doc.rust-lang.org/1.93.1/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec"><code>Vec</code></a>.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.sign" class="method"><a class="src rightside" href="../../src/openssl/pkey_ctx.rs.html#377-390">Source</a><h4 class="code-header">pub fn <a href="#method.sign" class="fn">sign</a>(
&amp;mut self,
data: &amp;[<a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.u8.html">u8</a>],
sig: <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;&amp;mut [<a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.u8.html">u8</a>]&gt;,
) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.usize.html">usize</a>, <a class="struct" href="../error/struct.ErrorStack.html" title="struct openssl::error::ErrorStack">ErrorStack</a>&gt;</h4></section></summary><div class="docblock"><p>Signs the contents of <code>data</code>.</p>
<p>If <code>sig</code> is set to <code>None</code>, an upper bound on the number of bytes required for the output buffer will be
returned.</p>
<h5 id="note-1"><a class="doc-anchor" href="#note-1">§</a>Note</h5>
<p>This computes the signature of the <em>raw</em> bytes of <code>data</code>. It is more common to sign the cryptographic hash of
an arbitrary amount of data. The <a href="../md_ctx/struct.MdCtx.html" title="struct openssl::md_ctx::MdCtx"><code>MdCtx</code></a> type can be used to do that.</p>
<p>This corresponds to <a href="https://www.openssl.org/docs/manmaster/man3/EVP_PKEY_sign.html"><code>EVP_PKEY_sign</code></a>.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.sign_to_vec" class="method"><a class="src rightside" href="../../src/openssl/pkey_ctx.rs.html#393-400">Source</a><h4 class="code-header">pub fn <a href="#method.sign_to_vec" class="fn">sign_to_vec</a>(
&amp;mut self,
data: &amp;[<a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.u8.html">u8</a>],
sig: &amp;mut <a class="struct" href="https://doc.rust-lang.org/1.93.1/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.u8.html">u8</a>&gt;,
) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.usize.html">usize</a>, <a class="struct" href="../error/struct.ErrorStack.html" title="struct openssl::error::ErrorStack">ErrorStack</a>&gt;</h4></section></summary><div class="docblock"><p>Like <a href="struct.PkeyCtxRef.html#method.sign" title="method openssl::pkey_ctx::PkeyCtxRef::sign"><code>Self::sign</code></a> but appends the signature to a <a href="https://doc.rust-lang.org/1.93.1/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec"><code>Vec</code></a>.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.derive_init" class="method"><a class="src rightside" href="../../src/openssl/pkey_ctx.rs.html#407-413">Source</a><h4 class="code-header">pub fn <a href="#method.derive_init" class="fn">derive_init</a>(&amp;mut self) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.unit.html">()</a>, <a class="struct" href="../error/struct.ErrorStack.html" title="struct openssl::error::ErrorStack">ErrorStack</a>&gt;</h4></section></summary><div class="docblock"><p>Prepares the context for shared secret derivation.</p>
<p>This corresponds to <a href="https://www.openssl.org/docs/manmaster/man3/EVP_PKEY_derive_init.html"><code>EVP_PKEY_derive_init</code></a>.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.keygen_init" class="method"><a class="src rightside" href="../../src/openssl/pkey_ctx.rs.html#418-424">Source</a><h4 class="code-header">pub fn <a href="#method.keygen_init" class="fn">keygen_init</a>(&amp;mut self) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.unit.html">()</a>, <a class="struct" href="../error/struct.ErrorStack.html" title="struct openssl::error::ErrorStack">ErrorStack</a>&gt;</h4></section></summary><div class="docblock"><p>Prepares the context for key generation.</p>
<p>This corresponds to <a href="https://www.openssl.org/docs/manmaster/man3/EVP_PKEY_keygen_init.html"><code>EVP_PKEY_keygen_init</code></a>.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.paramgen_init" class="method"><a class="src rightside" href="../../src/openssl/pkey_ctx.rs.html#429-435">Source</a><h4 class="code-header">pub fn <a href="#method.paramgen_init" class="fn">paramgen_init</a>(&amp;mut self) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.unit.html">()</a>, <a class="struct" href="../error/struct.ErrorStack.html" title="struct openssl::error::ErrorStack">ErrorStack</a>&gt;</h4></section></summary><div class="docblock"><p>Prepares the context for key parameter generation.</p>
<p>This corresponds to <a href="https://www.openssl.org/docs/manmaster/man3/EVP_PKEY_paramgen_init.html"><code>EVP_PKEY_paramgen_init</code></a>.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.set_signature_md" class="method"><a class="src rightside" href="../../src/openssl/pkey_ctx.rs.html#443-451">Source</a><h4 class="code-header">pub fn <a href="#method.set_signature_md" class="fn">set_signature_md</a>(&amp;self, md: &amp;<a class="struct" href="../md/struct.MdRef.html" title="struct openssl::md::MdRef">MdRef</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.unit.html">()</a>, <a class="struct" href="../error/struct.ErrorStack.html" title="struct openssl::error::ErrorStack">ErrorStack</a>&gt;</h4></section></summary><div class="docblock"><p>Sets which algorithm was used to compute the digest used in a
signature. With RSA signatures this causes the signature to be wrapped
in a <code>DigestInfo</code> structure. This is almost always what you want with
RSA signatures.</p>
<p>This corresponds to <a href="https://www.openssl.org/docs/manmaster/man3/EVP_PKEY_CTX_set_signature_md.html"><code>EVP_PKEY_CTX_set_signature_md</code></a>.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.set_dh_paramgen_prime_len" class="method"><a class="src rightside" href="../../src/openssl/pkey_ctx.rs.html#459-468">Source</a><h4 class="code-header">pub fn <a href="#method.set_dh_paramgen_prime_len" class="fn">set_dh_paramgen_prime_len</a>(&amp;mut self, bits: <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.u32.html">u32</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.unit.html">()</a>, <a class="struct" href="../error/struct.ErrorStack.html" title="struct openssl::error::ErrorStack">ErrorStack</a>&gt;</h4></section></summary><div class="docblock"><p>Sets the DH paramgen prime length.</p>
<p>This is only useful for DH keys.</p>
<p>This corresponds to <a href="https://www.openssl.org/docs/manmaster/man3/EVP_PKEY_CTX_set_dh_paramgen_prime_len.html"><code>EVP_PKEY_CTX_set_dh_paramgen_prime_len</code></a>.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.set_dh_paramgen_generator" class="method"><a class="src rightside" href="../../src/openssl/pkey_ctx.rs.html#476-485">Source</a><h4 class="code-header">pub fn <a href="#method.set_dh_paramgen_generator" class="fn">set_dh_paramgen_generator</a>(&amp;mut self, bits: <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.u32.html">u32</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.unit.html">()</a>, <a class="struct" href="../error/struct.ErrorStack.html" title="struct openssl::error::ErrorStack">ErrorStack</a>&gt;</h4></section></summary><div class="docblock"><p>Sets the DH paramgen generator.</p>
<p>This is only useful for DH keys.</p>
<p>This corresponds to <a href="https://www.openssl.org/docs/manmaster/man3/EVP_PKEY_CTX_set_dh_paramgen_generator.html"><code>EVP_PKEY_CTX_set_dh_paramgen_generator</code></a>.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.set_dsa_paramgen_bits" class="method"><a class="src rightside" href="../../src/openssl/pkey_ctx.rs.html#492-501">Source</a><h4 class="code-header">pub fn <a href="#method.set_dsa_paramgen_bits" class="fn">set_dsa_paramgen_bits</a>(&amp;mut self, bits: <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.u32.html">u32</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.unit.html">()</a>, <a class="struct" href="../error/struct.ErrorStack.html" title="struct openssl::error::ErrorStack">ErrorStack</a>&gt;</h4></section></summary><div class="docblock"><p>Sets the DSA paramgen bits.</p>
<p>This is only useful for DSA keys.</p>
<p>This corresponds to <a href="https://www.openssl.org/docs/manmaster/man3/EVP_PKEY_CTX_set_dsa_paramgen_bits.html"><code>EVP_PKEY_CTX_set_dsa_paramgen_bits</code></a>.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.set_ec_paramgen_curve_nid" class="method"><a class="src rightside" href="../../src/openssl/pkey_ctx.rs.html#508-517">Source</a><h4 class="code-header">pub fn <a href="#method.set_ec_paramgen_curve_nid" class="fn">set_ec_paramgen_curve_nid</a>(&amp;mut self, nid: <a class="struct" href="../nid/struct.Nid.html" title="struct openssl::nid::Nid">Nid</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.unit.html">()</a>, <a class="struct" href="../error/struct.ErrorStack.html" title="struct openssl::error::ErrorStack">ErrorStack</a>&gt;</h4></section></summary><div class="docblock"><p>Sets the EC paramgen curve NID.</p>
<p>This is only useful for EC keys.</p>
<p>This corresponds to <a href="https://www.openssl.org/docs/manmaster/man3/EVP_PKEY_CTX_set_ec_paramgen_curve_nid.html"><code>EVP_PKEY_CTX_set_ec_paramgen_curve_nid</code></a>.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.rsa_padding" class="method"><a class="src rightside" href="../../src/openssl/pkey_ctx.rs.html#524-531">Source</a><h4 class="code-header">pub fn <a href="#method.rsa_padding" class="fn">rsa_padding</a>(&amp;self) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="../rsa/struct.Padding.html" title="struct openssl::rsa::Padding">Padding</a>, <a class="struct" href="../error/struct.ErrorStack.html" title="struct openssl::error::ErrorStack">ErrorStack</a>&gt;</h4></section></summary><div class="docblock"><p>Returns the RSA padding mode in use.</p>
<p>This is only useful for RSA keys.</p>
<p>This corresponds to <a href="https://www.openssl.org/docs/manmaster/man3/EVP_PKEY_CTX_get_rsa_padding.html"><code>EVP_PKEY_CTX_get_rsa_padding</code></a>.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.set_rsa_padding" class="method"><a class="src rightside" href="../../src/openssl/pkey_ctx.rs.html#538-547">Source</a><h4 class="code-header">pub fn <a href="#method.set_rsa_padding" class="fn">set_rsa_padding</a>(&amp;mut self, padding: <a class="struct" href="../rsa/struct.Padding.html" title="struct openssl::rsa::Padding">Padding</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.unit.html">()</a>, <a class="struct" href="../error/struct.ErrorStack.html" title="struct openssl::error::ErrorStack">ErrorStack</a>&gt;</h4></section></summary><div class="docblock"><p>Sets the RSA padding mode.</p>
<p>This is only useful for RSA keys.</p>
<p>This corresponds to <a href="https://www.openssl.org/docs/manmaster/man3/EVP_PKEY_CTX_set_rsa_padding.html"><code>EVP_PKEY_CTX_set_rsa_padding</code></a>.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.set_rsa_keygen_bits" class="method"><a class="src rightside" href="../../src/openssl/pkey_ctx.rs.html#554-563">Source</a><h4 class="code-header">pub fn <a href="#method.set_rsa_keygen_bits" class="fn">set_rsa_keygen_bits</a>(&amp;mut self, bits: <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.u32.html">u32</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.unit.html">()</a>, <a class="struct" href="../error/struct.ErrorStack.html" title="struct openssl::error::ErrorStack">ErrorStack</a>&gt;</h4></section></summary><div class="docblock"><p>Sets the RSA keygen bits.</p>
<p>This is only useful for RSA keys.</p>
<p>This corresponds to <a href="https://www.openssl.org/docs/manmaster/man3/EVP_PKEY_CTX_set_rsa_keygen_bits.html"><code>EVP_PKEY_CTX_set_rsa_keygen_bits</code></a>.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.set_rsa_keygen_pubexp" class="method"><a class="src rightside" href="../../src/openssl/pkey_ctx.rs.html#570-589">Source</a><h4 class="code-header">pub fn <a href="#method.set_rsa_keygen_pubexp" class="fn">set_rsa_keygen_pubexp</a>(
&amp;mut self,
pubexp: &amp;<a class="struct" href="../bn/struct.BigNumRef.html" title="struct openssl::bn::BigNumRef">BigNumRef</a>,
) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.unit.html">()</a>, <a class="struct" href="../error/struct.ErrorStack.html" title="struct openssl::error::ErrorStack">ErrorStack</a>&gt;</h4></section></summary><div class="docblock"><p>Sets the RSA keygen public exponent.</p>
<p>This is only useful for RSA keys.</p>
<p>This corresponds to <a href="https://www.openssl.org/docs/manmaster/man3/EVP_PKEY_CTX_set1_rsa_keygen_pubexp.html"><code>EVP_PKEY_CTX_set1_rsa_keygen_pubexp</code></a>.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.set_rsa_pss_saltlen" class="method"><a class="src rightside" href="../../src/openssl/pkey_ctx.rs.html#596-604">Source</a><h4 class="code-header">pub fn <a href="#method.set_rsa_pss_saltlen" class="fn">set_rsa_pss_saltlen</a>(
&amp;mut self,
len: <a class="struct" href="../sign/struct.RsaPssSaltlen.html" title="struct openssl::sign::RsaPssSaltlen">RsaPssSaltlen</a>,
) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.unit.html">()</a>, <a class="struct" href="../error/struct.ErrorStack.html" title="struct openssl::error::ErrorStack">ErrorStack</a>&gt;</h4></section></summary><div class="docblock"><p>Sets the RSA PSS salt length.</p>
<p>This is only useful for RSA keys.</p>
<p>This corresponds to <a href="https://www.openssl.org/docs/manmaster/man3/EVP_PKEY_CTX_set_rsa_pss_saltlen.html"><code>EVP_PKEY_CTX_set_rsa_pss_saltlen</code></a>.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.set_rsa_mgf1_md" class="method"><a class="src rightside" href="../../src/openssl/pkey_ctx.rs.html#611-620">Source</a><h4 class="code-header">pub fn <a href="#method.set_rsa_mgf1_md" class="fn">set_rsa_mgf1_md</a>(&amp;mut self, md: &amp;<a class="struct" href="../md/struct.MdRef.html" title="struct openssl::md::MdRef">MdRef</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.unit.html">()</a>, <a class="struct" href="../error/struct.ErrorStack.html" title="struct openssl::error::ErrorStack">ErrorStack</a>&gt;</h4></section></summary><div class="docblock"><p>Sets the RSA MGF1 algorithm.</p>
<p>This is only useful for RSA keys.</p>
<p>This corresponds to <a href="https://www.openssl.org/docs/manmaster/man3/EVP_PKEY_CTX_set_rsa_mgf1_md.html"><code>EVP_PKEY_CTX_set_rsa_mgf1_md</code></a>.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.set_rsa_oaep_md" class="method"><a class="src rightside" href="../../src/openssl/pkey_ctx.rs.html#627-636">Source</a><h4 class="code-header">pub fn <a href="#method.set_rsa_oaep_md" class="fn">set_rsa_oaep_md</a>(&amp;mut self, md: &amp;<a class="struct" href="../md/struct.MdRef.html" title="struct openssl::md::MdRef">MdRef</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.unit.html">()</a>, <a class="struct" href="../error/struct.ErrorStack.html" title="struct openssl::error::ErrorStack">ErrorStack</a>&gt;</h4></section></summary><div class="docblock"><p>Sets the RSA OAEP algorithm.</p>
<p>This is only useful for RSA keys.</p>
<p>This corresponds to <a href="https://www.openssl.org/docs/manmaster/man3/EVP_PKEY_CTX_set_rsa_oaep_md.html"><code>EVP_PKEY_CTX_set_rsa_oaep_md</code></a>.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.set_rsa_oaep_label" class="method"><a class="src rightside" href="../../src/openssl/pkey_ctx.rs.html#642-662">Source</a><h4 class="code-header">pub fn <a href="#method.set_rsa_oaep_label" class="fn">set_rsa_oaep_label</a>(&amp;mut self, label: &amp;[<a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.u8.html">u8</a>]) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.unit.html">()</a>, <a class="struct" href="../error/struct.ErrorStack.html" title="struct openssl::error::ErrorStack">ErrorStack</a>&gt;</h4></section></summary><div class="docblock"><p>Sets the RSA OAEP label.</p>
<p>This is only useful for RSA keys.</p>
<p>This corresponds to <a href="https://www.openssl.org/docs/manmaster/man3/EVP_PKEY_CTX_set0_rsa_oaep_label.html"><code>EVP_PKEY_CTX_set0_rsa_oaep_label</code></a>.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.set_keygen_cipher" class="method"><a class="src rightside" href="../../src/openssl/pkey_ctx.rs.html#668-681">Source</a><h4 class="code-header">pub fn <a href="#method.set_keygen_cipher" class="fn">set_keygen_cipher</a>(
&amp;mut self,
cipher: &amp;<a class="struct" href="../cipher/struct.CipherRef.html" title="struct openssl::cipher::CipherRef">CipherRef</a>,
) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.unit.html">()</a>, <a class="struct" href="../error/struct.ErrorStack.html" title="struct openssl::error::ErrorStack">ErrorStack</a>&gt;</h4></section></summary><div class="docblock"><p>Sets the cipher used during key generation.</p>
<p>This corresponds to <a href="https://www.openssl.org/docs/manmaster/man3/EVP_PKEY_CTX_ctrl.html"><code>EVP_PKEY_CTX_ctrl</code></a>.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.set_keygen_mac_key" class="method"><a class="src rightside" href="../../src/openssl/pkey_ctx.rs.html#687-702">Source</a><h4 class="code-header">pub fn <a href="#method.set_keygen_mac_key" class="fn">set_keygen_mac_key</a>(&amp;mut self, key: &amp;[<a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.u8.html">u8</a>]) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.unit.html">()</a>, <a class="struct" href="../error/struct.ErrorStack.html" title="struct openssl::error::ErrorStack">ErrorStack</a>&gt;</h4></section></summary><div class="docblock"><p>Sets the key MAC key used during key generation.</p>
<p>This corresponds to <a href="https://www.openssl.org/docs/manmaster/man3/EVP_PKEY_CTX_ctrl.html"><code>EVP_PKEY_CTX_ctrl</code></a>.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.set_hkdf_md" class="method"><a class="src rightside" href="../../src/openssl/pkey_ctx.rs.html#710-719">Source</a><h4 class="code-header">pub fn <a href="#method.set_hkdf_md" class="fn">set_hkdf_md</a>(&amp;mut self, digest: &amp;<a class="struct" href="../md/struct.MdRef.html" title="struct openssl::md::MdRef">MdRef</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.unit.html">()</a>, <a class="struct" href="../error/struct.ErrorStack.html" title="struct openssl::error::ErrorStack">ErrorStack</a>&gt;</h4></section></summary><div class="docblock"><p>Sets the digest used for HKDF derivation.</p>
<p>Requires OpenSSL 1.1.0 or newer.</p>
<p>This corresponds to <a href="https://www.openssl.org/docs/manmaster/man3/EVP_PKEY_CTX_set_hkdf_md.html"><code>EVP_PKEY_CTX_set_hkdf_md</code></a>.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.set_hkdf_mode" class="method"><a class="src rightside" href="../../src/openssl/pkey_ctx.rs.html#733-739">Source</a><h4 class="code-header">pub fn <a href="#method.set_hkdf_mode" class="fn">set_hkdf_mode</a>(&amp;mut self, mode: <a class="struct" href="struct.HkdfMode.html" title="struct openssl::pkey_ctx::HkdfMode">HkdfMode</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.unit.html">()</a>, <a class="struct" href="../error/struct.ErrorStack.html" title="struct openssl::error::ErrorStack">ErrorStack</a>&gt;</h4></section></summary><div class="docblock"><p>Sets the HKDF mode of operation.</p>
<p>Defaults to <a href="struct.HkdfMode.html#associatedconstant.EXTRACT_THEN_EXPAND" title="associated constant openssl::pkey_ctx::HkdfMode::EXTRACT_THEN_EXPAND"><code>HkdfMode::EXTRACT_THEN_EXPAND</code></a>.</p>
<p>WARNING: Although this API calls it a “mode”, HKDF-Extract and HKDF-Expand are distinct
operations with distinct inputs and distinct kinds of keys. Callers should not pass input
secrets for one operation into the other.</p>
<p>Requires OpenSSL 1.1.1 or newer.</p>
<p>This corresponds to <a href="https://www.openssl.org/docs/manmaster/man3/EVP_PKEY_CTX_set_hkdf_mode.html"><code>EVP_PKEY_CTX_set_hkdf_mode</code></a>.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.set_hkdf_key" class="method"><a class="src rightside" href="../../src/openssl/pkey_ctx.rs.html#752-767">Source</a><h4 class="code-header">pub fn <a href="#method.set_hkdf_key" class="fn">set_hkdf_key</a>(&amp;mut self, key: &amp;[<a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.u8.html">u8</a>]) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.unit.html">()</a>, <a class="struct" href="../error/struct.ErrorStack.html" title="struct openssl::error::ErrorStack">ErrorStack</a>&gt;</h4></section></summary><div class="docblock"><p>Sets the input material for HKDF generation as the “key”.</p>
<p>Which input is the key depends on the “mode” (see <a href="struct.PkeyCtxRef.html#method.set_hkdf_mode" title="method openssl::pkey_ctx::PkeyCtxRef::set_hkdf_mode"><code>set_hkdf_mode</code></a>).
If <a href="struct.HkdfMode.html#associatedconstant.EXTRACT_THEN_EXPAND" title="associated constant openssl::pkey_ctx::HkdfMode::EXTRACT_THEN_EXPAND"><code>HkdfMode::EXTRACT_THEN_EXPAND</code></a> or <a href="struct.HkdfMode.html#associatedconstant.EXTRACT_ONLY" title="associated constant openssl::pkey_ctx::HkdfMode::EXTRACT_ONLY"><code>HkdfMode::EXTRACT_ONLY</code></a>, this function specifies
the input keying material (IKM) for HKDF-Extract. If <a href="struct.HkdfMode.html#associatedconstant.EXPAND_ONLY" title="associated constant openssl::pkey_ctx::HkdfMode::EXPAND_ONLY"><code>HkdfMode::EXPAND_ONLY</code></a>, it instead
specifies the pseudorandom key (PRK) for HKDF-Expand.</p>
<p>Requires OpenSSL 1.1.0 or newer.</p>
<p>This corresponds to <a href="https://www.openssl.org/docs/manmaster/man3/EVP_PKEY_CTX_set1_hkdf_key.html"><code>EVP_PKEY_CTX_set1_hkdf_key</code></a>.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.set_hkdf_salt" class="method"><a class="src rightside" href="../../src/openssl/pkey_ctx.rs.html#777-792">Source</a><h4 class="code-header">pub fn <a href="#method.set_hkdf_salt" class="fn">set_hkdf_salt</a>(&amp;mut self, salt: &amp;[<a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.u8.html">u8</a>]) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.unit.html">()</a>, <a class="struct" href="../error/struct.ErrorStack.html" title="struct openssl::error::ErrorStack">ErrorStack</a>&gt;</h4></section></summary><div class="docblock"><p>Sets the salt value for HKDF generation.</p>
<p>If performing HKDF-Expand only, this parameter is ignored.</p>
<p>Requires OpenSSL 1.1.0 or newer.</p>
<p>This corresponds to <a href="https://www.openssl.org/docs/manmaster/man3/EVP_PKEY_CTX_set1_hkdf_salt.html"><code>EVP_PKEY_CTX_set1_hkdf_salt</code></a>.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.add_hkdf_info" class="method"><a class="src rightside" href="../../src/openssl/pkey_ctx.rs.html#802-817">Source</a><h4 class="code-header">pub fn <a href="#method.add_hkdf_info" class="fn">add_hkdf_info</a>(&amp;mut self, info: &amp;[<a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.u8.html">u8</a>]) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.unit.html">()</a>, <a class="struct" href="../error/struct.ErrorStack.html" title="struct openssl::error::ErrorStack">ErrorStack</a>&gt;</h4></section></summary><div class="docblock"><p>Appends info bytes for HKDF generation.</p>
<p>If performing HKDF-Extract only, this parameter is ignored.</p>
<p>Requires OpenSSL 1.1.0 or newer.</p>
<p>This corresponds to <a href="https://www.openssl.org/docs/manmaster/man3/EVP_PKEY_CTX_add1_hkdf_info.html"><code>EVP_PKEY_CTX_add1_hkdf_info</code></a>.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.derive" class="method"><a class="src rightside" href="../../src/openssl/pkey_ctx.rs.html#823-834">Source</a><h4 class="code-header">pub fn <a href="#method.derive" class="fn">derive</a>(&amp;mut self, buf: <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;&amp;mut [<a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.u8.html">u8</a>]&gt;) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.usize.html">usize</a>, <a class="struct" href="../error/struct.ErrorStack.html" title="struct openssl::error::ErrorStack">ErrorStack</a>&gt;</h4></section></summary><div class="docblock"><p>Derives a shared secret between two keys.</p>
<p>If <code>buf</code> is set to <code>None</code>, an upper bound on the number of bytes required for the buffer will be returned.</p>
<p>This corresponds to <a href="https://www.openssl.org/docs/manmaster/man3/EVP_PKEY_derive.html"><code>EVP_PKEY_derive</code></a>.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.derive_to_vec" class="method"><a class="src rightside" href="../../src/openssl/pkey_ctx.rs.html#837-844">Source</a><h4 class="code-header">pub fn <a href="#method.derive_to_vec" class="fn">derive_to_vec</a>(&amp;mut self, buf: &amp;mut <a class="struct" href="https://doc.rust-lang.org/1.93.1/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.u8.html">u8</a>&gt;) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.usize.html">usize</a>, <a class="struct" href="../error/struct.ErrorStack.html" title="struct openssl::error::ErrorStack">ErrorStack</a>&gt;</h4></section></summary><div class="docblock"><p>Like <a href="struct.PkeyCtxRef.html#method.derive" title="method openssl::pkey_ctx::PkeyCtxRef::derive"><code>Self::derive</code></a> but appends the secret to a <a href="https://doc.rust-lang.org/1.93.1/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec"><code>Vec</code></a>.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.keygen" class="method"><a class="src rightside" href="../../src/openssl/pkey_ctx.rs.html#849-855">Source</a><h4 class="code-header">pub fn <a href="#method.keygen" class="fn">keygen</a>(&amp;mut self) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="../pkey/struct.PKey.html" title="struct openssl::pkey::PKey">PKey</a>&lt;<a class="enum" href="../pkey/enum.Private.html" title="enum openssl::pkey::Private">Private</a>&gt;, <a class="struct" href="../error/struct.ErrorStack.html" title="struct openssl::error::ErrorStack">ErrorStack</a>&gt;</h4></section></summary><div class="docblock"><p>Generates a new public/private keypair.</p>
<p>This corresponds to <a href="https://www.openssl.org/docs/manmaster/man3/EVP_PKEY_keygen.html"><code>EVP_PKEY_keygen</code></a>.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.paramgen" class="method"><a class="src rightside" href="../../src/openssl/pkey_ctx.rs.html#860-866">Source</a><h4 class="code-header">pub fn <a href="#method.paramgen" class="fn">paramgen</a>(&amp;mut self) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="../pkey/struct.PKey.html" title="struct openssl::pkey::PKey">PKey</a>&lt;<a class="enum" href="../pkey/enum.Params.html" title="enum openssl::pkey::Params">Params</a>&gt;, <a class="struct" href="../error/struct.ErrorStack.html" title="struct openssl::error::ErrorStack">ErrorStack</a>&gt;</h4></section></summary><div class="docblock"><p>Generates a new set of key parameters.</p>
<p>This corresponds to <a href="https://www.openssl.org/docs/manmaster/man3/EVP_PKEY_paramgen.html"><code>EVP_PKEY_paramgen</code></a>.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.set_nonce_type" class="method"><a class="src rightside" href="../../src/openssl/pkey_ctx.rs.html#876-888">Source</a><h4 class="code-header">pub fn <a href="#method.set_nonce_type" class="fn">set_nonce_type</a>(
&amp;mut self,
nonce_type: <a class="struct" href="struct.NonceType.html" title="struct openssl::pkey_ctx::NonceType">NonceType</a>,
) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.unit.html">()</a>, <a class="struct" href="../error/struct.ErrorStack.html" title="struct openssl::error::ErrorStack">ErrorStack</a>&gt;</h4></section></summary><div class="docblock"><p>Sets the nonce type for a private key context.</p>
<p>The nonce for DSA and ECDSA can be either random (the default) or deterministic (as defined by RFC 6979).</p>
<p>This is only useful for DSA and ECDSA.
Requires OpenSSL 3.2.0 or newer.</p>
<p>This corresponds to <a href="https://www.openssl.org/docs/manmaster/man3/EVP_PKEY_CTX_set_params.html"><code>EVP_PKEY_CTX_set_params</code></a>.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.nonce_type" class="method"><a class="src rightside" href="../../src/openssl/pkey_ctx.rs.html#898-913">Source</a><h4 class="code-header">pub fn <a href="#method.nonce_type" class="fn">nonce_type</a>(&amp;mut self) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="struct.NonceType.html" title="struct openssl::pkey_ctx::NonceType">NonceType</a>, <a class="struct" href="../error/struct.ErrorStack.html" title="struct openssl::error::ErrorStack">ErrorStack</a>&gt;</h4></section></summary><div class="docblock"><p>Gets the nonce type for a private key context.</p>
<p>The nonce for DSA and ECDSA can be either random (the default) or deterministic (as defined by RFC 6979).</p>
<p>This is only useful for DSA and ECDSA.
Requires OpenSSL 3.2.0 or newer.</p>
<p>This corresponds to <a href="https://www.openssl.org/docs/manmaster/man3/EVP_PKEY_CTX_get_params.html"><code>EVP_PKEY_CTX_get_params</code></a>.</p>
</div></details></div></details><h2 id="trait-implementations" class="section-header">Trait Implementations<a href="#trait-implementations" class="anchor">§</a></h2><div id="trait-implementations-list"><details class="toggle implementors-toggle" open><summary><section id="impl-AsRef%3CPkeyCtxRef%3CT%3E%3E-for-PkeyCtx%3CT%3E" class="impl"><a class="src rightside" href="../../src/openssl/pkey_ctx.rs.html#130-138">Source</a><a href="#impl-AsRef%3CPkeyCtxRef%3CT%3E%3E-for-PkeyCtx%3CT%3E" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a>&lt;<a class="struct" href="struct.PkeyCtxRef.html" title="struct openssl::pkey_ctx::PkeyCtxRef">PkeyCtxRef</a>&lt;T&gt;&gt; for <a class="struct" href="struct.PkeyCtx.html" title="struct openssl::pkey_ctx::PkeyCtx">PkeyCtx</a>&lt;T&gt;</h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.as_ref" class="method trait-impl"><a class="src rightside" href="../../src/openssl/pkey_ctx.rs.html#130-138">Source</a><a href="#method.as_ref" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.93.1/core/convert/trait.AsRef.html#tymethod.as_ref" class="fn">as_ref</a>(&amp;self) -&gt; &amp;<a class="struct" href="struct.PkeyCtxRef.html" title="struct openssl::pkey_ctx::PkeyCtxRef">PkeyCtxRef</a>&lt;T&gt;</h4></section></summary><div class='docblock'>Converts this type into a shared reference of the (usually inferred) input type.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Borrow%3CPkeyCtxRef%3CT%3E%3E-for-PkeyCtx%3CT%3E" class="impl"><a class="src rightside" href="../../src/openssl/pkey_ctx.rs.html#130-138">Source</a><a href="#impl-Borrow%3CPkeyCtxRef%3CT%3E%3E-for-PkeyCtx%3CT%3E" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a>&lt;<a class="struct" href="struct.PkeyCtxRef.html" title="struct openssl::pkey_ctx::PkeyCtxRef">PkeyCtxRef</a>&lt;T&gt;&gt; for <a class="struct" href="struct.PkeyCtx.html" title="struct openssl::pkey_ctx::PkeyCtx">PkeyCtx</a>&lt;T&gt;</h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.borrow" class="method trait-impl"><a class="src rightside" href="../../src/openssl/pkey_ctx.rs.html#130-138">Source</a><a href="#method.borrow" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.93.1/core/borrow/trait.Borrow.html#tymethod.borrow" class="fn">borrow</a>(&amp;self) -&gt; &amp;<a class="struct" href="struct.PkeyCtxRef.html" title="struct openssl::pkey_ctx::PkeyCtxRef">PkeyCtxRef</a>&lt;T&gt;</h4></section></summary><div class='docblock'>Immutably borrows from an owned value. <a href="https://doc.rust-lang.org/1.93.1/core/borrow/trait.Borrow.html#tymethod.borrow">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Deref-for-PkeyCtx%3CT%3E" class="impl"><a class="src rightside" href="../../src/openssl/pkey_ctx.rs.html#130-138">Source</a><a href="#impl-Deref-for-PkeyCtx%3CT%3E" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/ops/deref/trait.Deref.html" title="trait core::ops::deref::Deref">Deref</a> for <a class="struct" href="struct.PkeyCtx.html" title="struct openssl::pkey_ctx::PkeyCtx">PkeyCtx</a>&lt;T&gt;</h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Target" class="associatedtype trait-impl"><a class="src rightside" href="../../src/openssl/pkey_ctx.rs.html#130-138">Source</a><a href="#associatedtype.Target" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.93.1/core/ops/deref/trait.Deref.html#associatedtype.Target" class="associatedtype">Target</a> = <a class="struct" href="struct.PkeyCtxRef.html" title="struct openssl::pkey_ctx::PkeyCtxRef">PkeyCtxRef</a>&lt;T&gt;</h4></section></summary><div class='docblock'>The resulting type after dereferencing.</div></details><details class="toggle method-toggle" open><summary><section id="method.deref" class="method trait-impl"><a class="src rightside" href="../../src/openssl/pkey_ctx.rs.html#130-138">Source</a><a href="#method.deref" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.93.1/core/ops/deref/trait.Deref.html#tymethod.deref" class="fn">deref</a>(&amp;self) -&gt; &amp;<a class="struct" href="struct.PkeyCtxRef.html" title="struct openssl::pkey_ctx::PkeyCtxRef">PkeyCtxRef</a>&lt;T&gt;</h4></section></summary><div class='docblock'>Dereferences the value.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-DerefMut-for-PkeyCtx%3CT%3E" class="impl"><a class="src rightside" href="../../src/openssl/pkey_ctx.rs.html#130-138">Source</a><a href="#impl-DerefMut-for-PkeyCtx%3CT%3E" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/ops/deref/trait.DerefMut.html" title="trait core::ops::deref::DerefMut">DerefMut</a> for <a class="struct" href="struct.PkeyCtx.html" title="struct openssl::pkey_ctx::PkeyCtx">PkeyCtx</a>&lt;T&gt;</h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.deref_mut" class="method trait-impl"><a class="src rightside" href="../../src/openssl/pkey_ctx.rs.html#130-138">Source</a><a href="#method.deref_mut" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.93.1/core/ops/deref/trait.DerefMut.html#tymethod.deref_mut" class="fn">deref_mut</a>(&amp;mut self) -&gt; &amp;mut <a class="struct" href="struct.PkeyCtxRef.html" title="struct openssl::pkey_ctx::PkeyCtxRef">PkeyCtxRef</a>&lt;T&gt;</h4></section></summary><div class='docblock'>Mutably dereferences the value.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Drop-for-PkeyCtx%3CT%3E" class="impl"><a class="src rightside" href="../../src/openssl/pkey_ctx.rs.html#130-138">Source</a><a href="#impl-Drop-for-PkeyCtx%3CT%3E" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/ops/drop/trait.Drop.html" title="trait core::ops::drop::Drop">Drop</a> for <a class="struct" href="struct.PkeyCtx.html" title="struct openssl::pkey_ctx::PkeyCtx">PkeyCtx</a>&lt;T&gt;</h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.drop" class="method trait-impl"><a class="src rightside" href="../../src/openssl/pkey_ctx.rs.html#130-138">Source</a><a href="#method.drop" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.93.1/core/ops/drop/trait.Drop.html#tymethod.drop" class="fn">drop</a>(&amp;mut self)</h4></section></summary><div class='docblock'>Executes the destructor for this type. <a href="https://doc.rust-lang.org/1.93.1/core/ops/drop/trait.Drop.html#tymethod.drop">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-ForeignType-for-PkeyCtx%3CT%3E" class="impl"><a class="src rightside" href="../../src/openssl/pkey_ctx.rs.html#130-138">Source</a><a href="#impl-ForeignType-for-PkeyCtx%3CT%3E" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="../../foreign_types_shared/trait.ForeignType.html" title="trait foreign_types_shared::ForeignType">ForeignType</a> for <a class="struct" href="struct.PkeyCtx.html" title="struct openssl::pkey_ctx::PkeyCtx">PkeyCtx</a>&lt;T&gt;</h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.CType" class="associatedtype trait-impl"><a class="src rightside" href="../../src/openssl/pkey_ctx.rs.html#130-138">Source</a><a href="#associatedtype.CType" class="anchor">§</a><h4 class="code-header">type <a href="../../foreign_types_shared/trait.ForeignType.html#associatedtype.CType" class="associatedtype">CType</a> = <a class="enum" href="../../openssl_sys/openssl/handwritten/types/enum.EVP_PKEY_CTX.html" title="enum openssl_sys::openssl::handwritten::types::EVP_PKEY_CTX">EVP_PKEY_CTX</a></h4></section></summary><div class='docblock'>The raw C type.</div></details><details class="toggle" open><summary><section id="associatedtype.Ref" class="associatedtype trait-impl"><a class="src rightside" href="../../src/openssl/pkey_ctx.rs.html#130-138">Source</a><a href="#associatedtype.Ref" class="anchor">§</a><h4 class="code-header">type <a href="../../foreign_types_shared/trait.ForeignType.html#associatedtype.Ref" class="associatedtype">Ref</a> = <a class="struct" href="struct.PkeyCtxRef.html" title="struct openssl::pkey_ctx::PkeyCtxRef">PkeyCtxRef</a>&lt;T&gt;</h4></section></summary><div class='docblock'>The type representing a reference to this type.</div></details><details class="toggle method-toggle" open><summary><section id="method.from_ptr" class="method trait-impl"><a class="src rightside" href="../../src/openssl/pkey_ctx.rs.html#130-138">Source</a><a href="#method.from_ptr" class="anchor">§</a><h4 class="code-header">unsafe fn <a href="../../foreign_types_shared/trait.ForeignType.html#tymethod.from_ptr" class="fn">from_ptr</a>(ptr: <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.pointer.html">*mut </a><a class="enum" href="../../openssl_sys/openssl/handwritten/types/enum.EVP_PKEY_CTX.html" title="enum openssl_sys::openssl::handwritten::types::EVP_PKEY_CTX">EVP_PKEY_CTX</a>) -&gt; <a class="struct" href="struct.PkeyCtx.html" title="struct openssl::pkey_ctx::PkeyCtx">PkeyCtx</a>&lt;T&gt;</h4></section></summary><div class='docblock'>Constructs an instance of this type from its raw type.</div></details><details class="toggle method-toggle" open><summary><section id="method.as_ptr" class="method trait-impl"><a class="src rightside" href="../../src/openssl/pkey_ctx.rs.html#130-138">Source</a><a href="#method.as_ptr" class="anchor">§</a><h4 class="code-header">fn <a href="../../foreign_types_shared/trait.ForeignType.html#tymethod.as_ptr" class="fn">as_ptr</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.pointer.html">*mut </a><a class="enum" href="../../openssl_sys/openssl/handwritten/types/enum.EVP_PKEY_CTX.html" title="enum openssl_sys::openssl::handwritten::types::EVP_PKEY_CTX">EVP_PKEY_CTX</a></h4></section></summary><div class='docblock'>Returns a raw pointer to the wrapped value.</div></details></div></details><section id="impl-Send-for-PkeyCtx%3CT%3E" class="impl"><a class="src rightside" href="../../src/openssl/pkey_ctx.rs.html#130-138">Source</a><a href="#impl-Send-for-PkeyCtx%3CT%3E" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> for <a class="struct" href="struct.PkeyCtx.html" title="struct openssl::pkey_ctx::PkeyCtx">PkeyCtx</a>&lt;T&gt;</h3></section><section id="impl-Sync-for-PkeyCtx%3CT%3E" class="impl"><a class="src rightside" href="../../src/openssl/pkey_ctx.rs.html#130-138">Source</a><a href="#impl-Sync-for-PkeyCtx%3CT%3E" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> for <a class="struct" href="struct.PkeyCtx.html" title="struct openssl::pkey_ctx::PkeyCtx">PkeyCtx</a>&lt;T&gt;</h3></section></div><h2 id="synthetic-implementations" class="section-header">Auto Trait Implementations<a href="#synthetic-implementations" class="anchor">§</a></h2><div id="synthetic-implementations-list"><section id="impl-Freeze-for-PkeyCtx%3CT%3E" class="impl"><a href="#impl-Freeze-for-PkeyCtx%3CT%3E" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/marker/trait.Freeze.html" title="trait core::marker::Freeze">Freeze</a> for <a class="struct" href="struct.PkeyCtx.html" title="struct openssl::pkey_ctx::PkeyCtx">PkeyCtx</a>&lt;T&gt;</h3></section><section id="impl-RefUnwindSafe-for-PkeyCtx%3CT%3E" class="impl"><a href="#impl-RefUnwindSafe-for-PkeyCtx%3CT%3E" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/panic/unwind_safe/trait.RefUnwindSafe.html" title="trait core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a> for <a class="struct" href="struct.PkeyCtx.html" title="struct openssl::pkey_ctx::PkeyCtx">PkeyCtx</a>&lt;T&gt;<div class="where">where
T: <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/panic/unwind_safe/trait.RefUnwindSafe.html" title="trait core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>,</div></h3></section><section id="impl-Unpin-for-PkeyCtx%3CT%3E" class="impl"><a href="#impl-Unpin-for-PkeyCtx%3CT%3E" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> for <a class="struct" href="struct.PkeyCtx.html" title="struct openssl::pkey_ctx::PkeyCtx">PkeyCtx</a>&lt;T&gt;<div class="where">where
T: <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a>,</div></h3></section><section id="impl-UnwindSafe-for-PkeyCtx%3CT%3E" class="impl"><a href="#impl-UnwindSafe-for-PkeyCtx%3CT%3E" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/panic/unwind_safe/trait.UnwindSafe.html" title="trait core::panic::unwind_safe::UnwindSafe">UnwindSafe</a> for <a class="struct" href="struct.PkeyCtx.html" title="struct openssl::pkey_ctx::PkeyCtx">PkeyCtx</a>&lt;T&gt;<div class="where">where
T: <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/panic/unwind_safe/trait.UnwindSafe.html" title="trait core::panic::unwind_safe::UnwindSafe">UnwindSafe</a>,</div></h3></section></div><h2 id="blanket-implementations" class="section-header">Blanket Implementations<a href="#blanket-implementations" class="anchor">§</a></h2><div id="blanket-implementations-list"><details class="toggle implementors-toggle"><summary><section id="impl-Any-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.93.1/src/core/any.rs.html#138">Source</a><a href="#impl-Any-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/any/trait.Any.html" title="trait core::any::Any">Any</a> for T<div class="where">where
T: 'static + ?<a class="trait" href="https://doc.rust-lang.org/1.93.1/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.type_id" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.93.1/src/core/any.rs.html#139">Source</a><a href="#method.type_id" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.93.1/core/any/trait.Any.html#tymethod.type_id" class="fn">type_id</a>(&amp;self) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.93.1/core/any/struct.TypeId.html" title="struct core::any::TypeId">TypeId</a></h4></section></summary><div class='docblock'>Gets the <code>TypeId</code> of <code>self</code>. <a href="https://doc.rust-lang.org/1.93.1/core/any/trait.Any.html#tymethod.type_id">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Borrow%3CT%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.93.1/src/core/borrow.rs.html#212">Source</a><a href="#impl-Borrow%3CT%3E-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a>&lt;T&gt; for T<div class="where">where
T: ?<a class="trait" href="https://doc.rust-lang.org/1.93.1/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.borrow-1" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.93.1/src/core/borrow.rs.html#214">Source</a><a href="#method.borrow-1" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.93.1/core/borrow/trait.Borrow.html#tymethod.borrow" class="fn">borrow</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.reference.html">&amp;T</a></h4></section></summary><div class='docblock'>Immutably borrows from an owned value. <a href="https://doc.rust-lang.org/1.93.1/core/borrow/trait.Borrow.html#tymethod.borrow">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-BorrowMut%3CT%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.93.1/src/core/borrow.rs.html#221">Source</a><a href="#impl-BorrowMut%3CT%3E-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/borrow/trait.BorrowMut.html" title="trait core::borrow::BorrowMut">BorrowMut</a>&lt;T&gt; for T<div class="where">where
T: ?<a class="trait" href="https://doc.rust-lang.org/1.93.1/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.borrow_mut" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.93.1/src/core/borrow.rs.html#222">Source</a><a href="#method.borrow_mut" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.93.1/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut" class="fn">borrow_mut</a>(&amp;mut self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.reference.html">&amp;mut T</a></h4></section></summary><div class='docblock'>Mutably borrows from an owned value. <a href="https://doc.rust-lang.org/1.93.1/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-From%3CT%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.93.1/src/core/convert/mod.rs.html#785">Source</a><a href="#impl-From%3CT%3E-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;T&gt; for T</h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.from" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.93.1/src/core/convert/mod.rs.html#788">Source</a><a href="#method.from" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.93.1/core/convert/trait.From.html#tymethod.from" class="fn">from</a>(t: T) -&gt; T</h4></section></summary><div class="docblock"><p>Returns the argument unchanged.</p>
</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Into%3CU%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.93.1/src/core/convert/mod.rs.html#767-769">Source</a><a href="#impl-Into%3CU%3E-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T, U&gt; <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;U&gt; for T<div class="where">where
U: <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.into" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.93.1/src/core/convert/mod.rs.html#777">Source</a><a href="#method.into" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.93.1/core/convert/trait.Into.html#tymethod.into" class="fn">into</a>(self) -&gt; U</h4></section></summary><div class="docblock"><p>Calls <code>U::from(self)</code>.</p>
<p>That is, this conversion is whatever the implementation of
<code><a href="https://doc.rust-lang.org/1.93.1/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;T&gt; for U</code> chooses to do.</p>
</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Receiver-for-P" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.93.1/src/core/ops/deref.rs.html#378-380">Source</a><a href="#impl-Receiver-for-P" class="anchor">§</a><h3 class="code-header">impl&lt;P, T&gt; <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/ops/deref/trait.Receiver.html" title="trait core::ops::deref::Receiver">Receiver</a> for P<div class="where">where
P: <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/ops/deref/trait.Deref.html" title="trait core::ops::deref::Deref">Deref</a>&lt;Target = T&gt; + ?<a class="trait" href="https://doc.rust-lang.org/1.93.1/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,
T: ?<a class="trait" href="https://doc.rust-lang.org/1.93.1/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Target-1" class="associatedtype trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.93.1/src/core/ops/deref.rs.html#382">Source</a><a href="#associatedtype.Target-1" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.93.1/core/ops/deref/trait.Receiver.html#associatedtype.Target" class="associatedtype">Target</a> = T</h4></section></summary><span class="item-info"><div class="stab unstable"><span class="emoji">🔬</span><span>This is a nightly-only experimental API. (<code>arbitrary_self_types</code>)</span></div></span><div class='docblock'>The target type on which the method may be called.</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-TryFrom%3CU%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.93.1/src/core/convert/mod.rs.html#827-829">Source</a><a href="#impl-TryFrom%3CU%3E-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T, U&gt; <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a>&lt;U&gt; for T<div class="where">where
U: <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Error-1" class="associatedtype trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.93.1/src/core/convert/mod.rs.html#831">Source</a><a href="#associatedtype.Error-1" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.93.1/core/convert/trait.TryFrom.html#associatedtype.Error" class="associatedtype">Error</a> = <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/convert/enum.Infallible.html" title="enum core::convert::Infallible">Infallible</a></h4></section></summary><div class='docblock'>The type returned in the event of a conversion error.</div></details><details class="toggle method-toggle" open><summary><section id="method.try_from" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.93.1/src/core/convert/mod.rs.html#834">Source</a><a href="#method.try_from" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.93.1/core/convert/trait.TryFrom.html#tymethod.try_from" class="fn">try_from</a>(value: U) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;T, &lt;T as <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a>&lt;U&gt;&gt;::<a class="associatedtype" href="https://doc.rust-lang.org/1.93.1/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div class='docblock'>Performs the conversion.</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-TryInto%3CU%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.93.1/src/core/convert/mod.rs.html#811-813">Source</a><a href="#impl-TryInto%3CU%3E-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T, U&gt; <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/convert/trait.TryInto.html" title="trait core::convert::TryInto">TryInto</a>&lt;U&gt; for T<div class="where">where
U: <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Error" class="associatedtype trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.93.1/src/core/convert/mod.rs.html#815">Source</a><a href="#associatedtype.Error" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.93.1/core/convert/trait.TryInto.html#associatedtype.Error" class="associatedtype">Error</a> = &lt;U as <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a class="associatedtype" href="https://doc.rust-lang.org/1.93.1/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a></h4></section></summary><div class='docblock'>The type returned in the event of a conversion error.</div></details><details class="toggle method-toggle" open><summary><section id="method.try_into" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.93.1/src/core/convert/mod.rs.html#818">Source</a><a href="#method.try_into" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.93.1/core/convert/trait.TryInto.html#tymethod.try_into" class="fn">try_into</a>(self) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;U, &lt;U as <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a class="associatedtype" href="https://doc.rust-lang.org/1.93.1/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div class='docblock'>Performs the conversion.</div></details></div></details></div></section></div></main></body></html>