mirror of
https://github.com/NotAShelf/mpvrc.git
synced 2026-04-17 08:19:51 +00:00
34 lines
No EOL
64 KiB
HTML
34 lines
No EOL
64 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="Represents a particular cipher algorithm."><title>Cipher in openssl::symm - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Regular-0fe48ade.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" crossorigin href="../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../static.files/rustdoc-42caa33d.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.84.1 (e71f9a9a9 2025-01-27)" data-channel="1.84.1" data-search-js="search-92e6798f.js" data-settings-js="settings-0f613d39.js" ><script src="../../static.files/storage-59e33391.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../static.files/main-5f194d8c.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-893ab5e7.css"></noscript><link rel="alternate icon" type="image/png" href="../../static.files/favicon-32x32-6580c154.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]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../openssl/index.html">openssl</a><span class="version">0.10.68</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Cipher</a></h2><h3><a href="#implementations">Methods</a></h3><ul class="block method"><li><a href="#method.aes_128_cbc" title="aes_128_cbc">aes_128_cbc</a></li><li><a href="#method.aes_128_ccm" title="aes_128_ccm">aes_128_ccm</a></li><li><a href="#method.aes_128_cfb1" title="aes_128_cfb1">aes_128_cfb1</a></li><li><a href="#method.aes_128_cfb128" title="aes_128_cfb128">aes_128_cfb128</a></li><li><a href="#method.aes_128_cfb8" title="aes_128_cfb8">aes_128_cfb8</a></li><li><a href="#method.aes_128_ctr" title="aes_128_ctr">aes_128_ctr</a></li><li><a href="#method.aes_128_ecb" title="aes_128_ecb">aes_128_ecb</a></li><li><a href="#method.aes_128_gcm" title="aes_128_gcm">aes_128_gcm</a></li><li><a href="#method.aes_128_ocb" title="aes_128_ocb">aes_128_ocb</a></li><li><a href="#method.aes_128_ofb" title="aes_128_ofb">aes_128_ofb</a></li><li><a href="#method.aes_128_xts" title="aes_128_xts">aes_128_xts</a></li><li><a href="#method.aes_192_cbc" title="aes_192_cbc">aes_192_cbc</a></li><li><a href="#method.aes_192_ccm" title="aes_192_ccm">aes_192_ccm</a></li><li><a href="#method.aes_192_cfb1" title="aes_192_cfb1">aes_192_cfb1</a></li><li><a href="#method.aes_192_cfb128" title="aes_192_cfb128">aes_192_cfb128</a></li><li><a href="#method.aes_192_cfb8" title="aes_192_cfb8">aes_192_cfb8</a></li><li><a href="#method.aes_192_ctr" title="aes_192_ctr">aes_192_ctr</a></li><li><a href="#method.aes_192_ecb" title="aes_192_ecb">aes_192_ecb</a></li><li><a href="#method.aes_192_gcm" title="aes_192_gcm">aes_192_gcm</a></li><li><a href="#method.aes_192_ocb" title="aes_192_ocb">aes_192_ocb</a></li><li><a href="#method.aes_192_ofb" title="aes_192_ofb">aes_192_ofb</a></li><li><a href="#method.aes_256_cbc" title="aes_256_cbc">aes_256_cbc</a></li><li><a href="#method.aes_256_ccm" title="aes_256_ccm">aes_256_ccm</a></li><li><a href="#method.aes_256_cfb1" title="aes_256_cfb1">aes_256_cfb1</a></li><li><a href="#method.aes_256_cfb128" title="aes_256_cfb128">aes_256_cfb128</a></li><li><a href="#method.aes_256_cfb8" title="aes_256_cfb8">aes_256_cfb8</a></li><li><a href="#method.aes_256_ctr" title="aes_256_ctr">aes_256_ctr</a></li><li><a href="#method.aes_256_ecb" title="aes_256_ecb">aes_256_ecb</a></li><li><a href="#method.aes_256_gcm" title="aes_256_gcm">aes_256_gcm</a></li><li><a href="#method.aes_256_ocb" title="aes_256_ocb">aes_256_ocb</a></li><li><a href="#method.aes_256_ofb" title="aes_256_ofb">aes_256_ofb</a></li><li><a href="#method.aes_256_xts" title="aes_256_xts">aes_256_xts</a></li><li><a href="#method.as_ptr" title="as_ptr">as_ptr</a></li><li><a href="#method.bf_cbc" title="bf_cbc">bf_cbc</a></li><li><a href="#method.bf_cfb64" title="bf_cfb64">bf_cfb64</a></li><li><a href="#method.bf_ecb" title="bf_ecb">bf_ecb</a></li><li><a href="#method.bf_ofb" title="bf_ofb">bf_ofb</a></li><li><a href="#method.block_size" title="block_size">block_size</a></li><li><a href="#method.camellia_128_cbc" title="camellia_128_cbc">camellia_128_cbc</a></li><li><a href="#method.camellia_128_cfb128" title="camellia_128_cfb128">camellia_128_cfb128</a></li><li><a href="#method.camellia_128_ecb" title="camellia_128_ecb">camellia_128_ecb</a></li><li><a href="#method.camellia_128_ofb" title="camellia_128_ofb">camellia_128_ofb</a></li><li><a href="#method.camellia_192_cbc" title="camellia_192_cbc">camellia_192_cbc</a></li><li><a href="#method.camellia_192_cfb128" title="camellia_192_cfb128">camellia_192_cfb128</a></li><li><a href="#method.camellia_192_ecb" title="camellia_192_ecb">camellia_192_ecb</a></li><li><a href="#method.camellia_192_ofb" title="camellia_192_ofb">camellia_192_ofb</a></li><li><a href="#method.camellia_256_cbc" title="camellia_256_cbc">camellia_256_cbc</a></li><li><a href="#method.camellia_256_cfb128" title="camellia_256_cfb128">camellia_256_cfb128</a></li><li><a href="#method.camellia_256_ecb" title="camellia_256_ecb">camellia_256_ecb</a></li><li><a href="#method.camellia_256_ofb" title="camellia_256_ofb">camellia_256_ofb</a></li><li><a href="#method.cast5_cbc" title="cast5_cbc">cast5_cbc</a></li><li><a href="#method.cast5_cfb64" title="cast5_cfb64">cast5_cfb64</a></li><li><a href="#method.cast5_ecb" title="cast5_ecb">cast5_ecb</a></li><li><a href="#method.cast5_ofb" title="cast5_ofb">cast5_ofb</a></li><li><a href="#method.chacha20" title="chacha20">chacha20</a></li><li><a href="#method.chacha20_poly1305" title="chacha20_poly1305">chacha20_poly1305</a></li><li><a href="#method.des_cbc" title="des_cbc">des_cbc</a></li><li><a href="#method.des_ecb" title="des_ecb">des_ecb</a></li><li><a href="#method.des_ede3" title="des_ede3">des_ede3</a></li><li><a href="#method.des_ede3_cbc" title="des_ede3_cbc">des_ede3_cbc</a></li><li><a href="#method.des_ede3_cfb64" title="des_ede3_cfb64">des_ede3_cfb64</a></li><li><a href="#method.des_ede3_cfb8" title="des_ede3_cfb8">des_ede3_cfb8</a></li><li><a href="#method.des_ede3_ecb" title="des_ede3_ecb">des_ede3_ecb</a></li><li><a href="#method.des_ede3_ofb" title="des_ede3_ofb">des_ede3_ofb</a></li><li><a href="#method.from_nid" title="from_nid">from_nid</a></li><li><a href="#method.from_ptr" title="from_ptr">from_ptr</a></li><li><a href="#method.iv_len" title="iv_len">iv_len</a></li><li><a href="#method.key_len" title="key_len">key_len</a></li><li><a href="#method.nid" title="nid">nid</a></li><li><a href="#method.rc4" title="rc4">rc4</a></li><li><a href="#method.seed_cbc" title="seed_cbc">seed_cbc</a></li><li><a href="#method.seed_cfb128" title="seed_cfb128">seed_cfb128</a></li><li><a href="#method.seed_ecb" title="seed_ecb">seed_ecb</a></li><li><a href="#method.seed_ofb" title="seed_ofb">seed_ofb</a></li><li><a href="#method.sm4_cbc" title="sm4_cbc">sm4_cbc</a></li><li><a href="#method.sm4_cfb128" title="sm4_cfb128">sm4_cfb128</a></li><li><a href="#method.sm4_ctr" title="sm4_ctr">sm4_ctr</a></li><li><a href="#method.sm4_ecb" title="sm4_ecb">sm4_ecb</a></li><li><a href="#method.sm4_ofb" title="sm4_ofb">sm4_ofb</a></li></ul><h3><a href="#trait-implementations">Trait Implementations</a></h3><ul class="block trait-implementation"><li><a href="#impl-Clone-for-Cipher" title="Clone">Clone</a></li><li><a href="#impl-Copy-for-Cipher" title="Copy">Copy</a></li><li><a href="#impl-Eq-for-Cipher" title="Eq">Eq</a></li><li><a href="#impl-PartialEq-for-Cipher" title="PartialEq">PartialEq</a></li><li><a href="#impl-Send-for-Cipher" title="Send">Send</a></li><li><a href="#impl-StructuralPartialEq-for-Cipher" title="StructuralPartialEq">StructuralPartialEq</a></li><li><a href="#impl-Sync-for-Cipher" 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-Cipher" title="Freeze">Freeze</a></li><li><a href="#impl-RefUnwindSafe-for-Cipher" title="RefUnwindSafe">RefUnwindSafe</a></li><li><a href="#impl-Unpin-for-Cipher" title="Unpin">Unpin</a></li><li><a href="#impl-UnwindSafe-for-Cipher" 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<T>">Borrow<T></a></li><li><a href="#impl-BorrowMut%3CT%3E-for-T" title="BorrowMut<T>">BorrowMut<T></a></li><li><a href="#impl-CloneToUninit-for-T" title="CloneToUninit">CloneToUninit</a></li><li><a href="#impl-From%3CT%3E-for-T" title="From<T>">From<T></a></li><li><a href="#impl-Into%3CU%3E-for-T" title="Into<U>">Into<U></a></li><li><a href="#impl-ToOwned-for-T" title="ToOwned">ToOwned</a></li><li><a href="#impl-TryFrom%3CU%3E-for-T" title="TryFrom<U>">TryFrom<U></a></li><li><a href="#impl-TryInto%3CU%3E-for-T" title="TryInto<U>">TryInto<U></a></li></ul></section><div id="rustdoc-modnav"><h2><a href="index.html">In openssl::<wbr>symm</a></h2></div></div></nav><div class="sidebar-resizer"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><span class="rustdoc-breadcrumbs"><a href="../index.html">openssl</a>::<wbr><a href="index.html">symm</a></span><h1>Struct <span class="struct">Cipher</span><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/symm.rs.html#74">Source</a> </span></div><pre class="rust item-decl"><code>pub struct Cipher(<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>Represents a particular cipher algorithm.</p>
|
||
<p>See OpenSSL doc at <a href="https://www.openssl.org/docs/manmaster/crypto/EVP_EncryptInit.html"><code>EVP_EncryptInit</code></a> for more information on each algorithms.</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-Cipher" class="impl"><a class="src rightside" href="../../src/openssl/symm.rs.html#76-525">Source</a><a href="#impl-Cipher" class="anchor">§</a><h3 class="code-header">impl <a class="struct" href="struct.Cipher.html" title="struct openssl::symm::Cipher">Cipher</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.from_nid" class="method"><a class="src rightside" href="../../src/openssl/symm.rs.html#79-86">Source</a><h4 class="code-header">pub fn <a href="#method.from_nid" class="fn">from_nid</a>(nid: <a class="struct" href="../nid/struct.Nid.html" title="struct openssl::nid::Nid">Nid</a>) -> <a class="enum" href="https://doc.rust-lang.org/1.84.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="struct.Cipher.html" title="struct openssl::symm::Cipher">Cipher</a>></h4></section></summary><div class="docblock"><p>Looks up the cipher for a certain nid.</p>
|
||
<p>This corresponds to <a href="https://www.openssl.org/docs/manmaster/man3/EVP_get_cipherbynid.html"><code>EVP_get_cipherbynid</code></a>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.nid" class="method"><a class="src rightside" href="../../src/openssl/symm.rs.html#90-93">Source</a><h4 class="code-header">pub fn <a href="#method.nid" class="fn">nid</a>(&self) -> <a class="struct" href="../nid/struct.Nid.html" title="struct openssl::nid::Nid">Nid</a></h4></section></summary><div class="docblock"><p>Returns the cipher’s Nid.</p>
|
||
<p>This corresponds to <a href="https://www.openssl.org/docs/manmaster/man3/EVP_CIPHER_nid.html"><code>EVP_CIPHER_nid</code></a>.</p>
|
||
</div></details><section id="method.aes_128_ecb" class="method"><a class="src rightside" href="../../src/openssl/symm.rs.html#95-97">Source</a><h4 class="code-header">pub fn <a href="#method.aes_128_ecb" class="fn">aes_128_ecb</a>() -> <a class="struct" href="struct.Cipher.html" title="struct openssl::symm::Cipher">Cipher</a></h4></section><section id="method.aes_128_cbc" class="method"><a class="src rightside" href="../../src/openssl/symm.rs.html#99-101">Source</a><h4 class="code-header">pub fn <a href="#method.aes_128_cbc" class="fn">aes_128_cbc</a>() -> <a class="struct" href="struct.Cipher.html" title="struct openssl::symm::Cipher">Cipher</a></h4></section><section id="method.aes_128_xts" class="method"><a class="src rightside" href="../../src/openssl/symm.rs.html#104-106">Source</a><h4 class="code-header">pub fn <a href="#method.aes_128_xts" class="fn">aes_128_xts</a>() -> <a class="struct" href="struct.Cipher.html" title="struct openssl::symm::Cipher">Cipher</a></h4></section><section id="method.aes_128_ctr" class="method"><a class="src rightside" href="../../src/openssl/symm.rs.html#108-110">Source</a><h4 class="code-header">pub fn <a href="#method.aes_128_ctr" class="fn">aes_128_ctr</a>() -> <a class="struct" href="struct.Cipher.html" title="struct openssl::symm::Cipher">Cipher</a></h4></section><section id="method.aes_128_cfb1" class="method"><a class="src rightside" href="../../src/openssl/symm.rs.html#113-115">Source</a><h4 class="code-header">pub fn <a href="#method.aes_128_cfb1" class="fn">aes_128_cfb1</a>() -> <a class="struct" href="struct.Cipher.html" title="struct openssl::symm::Cipher">Cipher</a></h4></section><section id="method.aes_128_cfb128" class="method"><a class="src rightside" href="../../src/openssl/symm.rs.html#117-119">Source</a><h4 class="code-header">pub fn <a href="#method.aes_128_cfb128" class="fn">aes_128_cfb128</a>() -> <a class="struct" href="struct.Cipher.html" title="struct openssl::symm::Cipher">Cipher</a></h4></section><section id="method.aes_128_cfb8" class="method"><a class="src rightside" href="../../src/openssl/symm.rs.html#122-124">Source</a><h4 class="code-header">pub fn <a href="#method.aes_128_cfb8" class="fn">aes_128_cfb8</a>() -> <a class="struct" href="struct.Cipher.html" title="struct openssl::symm::Cipher">Cipher</a></h4></section><section id="method.aes_128_gcm" class="method"><a class="src rightside" href="../../src/openssl/symm.rs.html#126-128">Source</a><h4 class="code-header">pub fn <a href="#method.aes_128_gcm" class="fn">aes_128_gcm</a>() -> <a class="struct" href="struct.Cipher.html" title="struct openssl::symm::Cipher">Cipher</a></h4></section><section id="method.aes_128_ccm" class="method"><a class="src rightside" href="../../src/openssl/symm.rs.html#131-133">Source</a><h4 class="code-header">pub fn <a href="#method.aes_128_ccm" class="fn">aes_128_ccm</a>() -> <a class="struct" href="struct.Cipher.html" title="struct openssl::symm::Cipher">Cipher</a></h4></section><section id="method.aes_128_ofb" class="method"><a class="src rightside" href="../../src/openssl/symm.rs.html#135-137">Source</a><h4 class="code-header">pub fn <a href="#method.aes_128_ofb" class="fn">aes_128_ofb</a>() -> <a class="struct" href="struct.Cipher.html" title="struct openssl::symm::Cipher">Cipher</a></h4></section><details class="toggle method-toggle" open><summary><section id="method.aes_128_ocb" class="method"><a class="src rightside" href="../../src/openssl/symm.rs.html#141-143">Source</a><h4 class="code-header">pub fn <a href="#method.aes_128_ocb" class="fn">aes_128_ocb</a>() -> <a class="struct" href="struct.Cipher.html" title="struct openssl::symm::Cipher">Cipher</a></h4></section></summary><div class="docblock"><p>Requires OpenSSL 1.1.0 or newer.</p>
|
||
</div></details><section id="method.aes_192_ecb" class="method"><a class="src rightside" href="../../src/openssl/symm.rs.html#145-147">Source</a><h4 class="code-header">pub fn <a href="#method.aes_192_ecb" class="fn">aes_192_ecb</a>() -> <a class="struct" href="struct.Cipher.html" title="struct openssl::symm::Cipher">Cipher</a></h4></section><section id="method.aes_192_cbc" class="method"><a class="src rightside" href="../../src/openssl/symm.rs.html#149-151">Source</a><h4 class="code-header">pub fn <a href="#method.aes_192_cbc" class="fn">aes_192_cbc</a>() -> <a class="struct" href="struct.Cipher.html" title="struct openssl::symm::Cipher">Cipher</a></h4></section><section id="method.aes_192_ctr" class="method"><a class="src rightside" href="../../src/openssl/symm.rs.html#153-155">Source</a><h4 class="code-header">pub fn <a href="#method.aes_192_ctr" class="fn">aes_192_ctr</a>() -> <a class="struct" href="struct.Cipher.html" title="struct openssl::symm::Cipher">Cipher</a></h4></section><section id="method.aes_192_cfb1" class="method"><a class="src rightside" href="../../src/openssl/symm.rs.html#158-160">Source</a><h4 class="code-header">pub fn <a href="#method.aes_192_cfb1" class="fn">aes_192_cfb1</a>() -> <a class="struct" href="struct.Cipher.html" title="struct openssl::symm::Cipher">Cipher</a></h4></section><section id="method.aes_192_cfb128" class="method"><a class="src rightside" href="../../src/openssl/symm.rs.html#162-164">Source</a><h4 class="code-header">pub fn <a href="#method.aes_192_cfb128" class="fn">aes_192_cfb128</a>() -> <a class="struct" href="struct.Cipher.html" title="struct openssl::symm::Cipher">Cipher</a></h4></section><section id="method.aes_192_cfb8" class="method"><a class="src rightside" href="../../src/openssl/symm.rs.html#167-169">Source</a><h4 class="code-header">pub fn <a href="#method.aes_192_cfb8" class="fn">aes_192_cfb8</a>() -> <a class="struct" href="struct.Cipher.html" title="struct openssl::symm::Cipher">Cipher</a></h4></section><section id="method.aes_192_gcm" class="method"><a class="src rightside" href="../../src/openssl/symm.rs.html#171-173">Source</a><h4 class="code-header">pub fn <a href="#method.aes_192_gcm" class="fn">aes_192_gcm</a>() -> <a class="struct" href="struct.Cipher.html" title="struct openssl::symm::Cipher">Cipher</a></h4></section><section id="method.aes_192_ccm" class="method"><a class="src rightside" href="../../src/openssl/symm.rs.html#176-178">Source</a><h4 class="code-header">pub fn <a href="#method.aes_192_ccm" class="fn">aes_192_ccm</a>() -> <a class="struct" href="struct.Cipher.html" title="struct openssl::symm::Cipher">Cipher</a></h4></section><section id="method.aes_192_ofb" class="method"><a class="src rightside" href="../../src/openssl/symm.rs.html#180-182">Source</a><h4 class="code-header">pub fn <a href="#method.aes_192_ofb" class="fn">aes_192_ofb</a>() -> <a class="struct" href="struct.Cipher.html" title="struct openssl::symm::Cipher">Cipher</a></h4></section><details class="toggle method-toggle" open><summary><section id="method.aes_192_ocb" class="method"><a class="src rightside" href="../../src/openssl/symm.rs.html#186-188">Source</a><h4 class="code-header">pub fn <a href="#method.aes_192_ocb" class="fn">aes_192_ocb</a>() -> <a class="struct" href="struct.Cipher.html" title="struct openssl::symm::Cipher">Cipher</a></h4></section></summary><div class="docblock"><p>Requires OpenSSL 1.1.0 or newer.</p>
|
||
</div></details><section id="method.aes_256_ecb" class="method"><a class="src rightside" href="../../src/openssl/symm.rs.html#190-192">Source</a><h4 class="code-header">pub fn <a href="#method.aes_256_ecb" class="fn">aes_256_ecb</a>() -> <a class="struct" href="struct.Cipher.html" title="struct openssl::symm::Cipher">Cipher</a></h4></section><section id="method.aes_256_cbc" class="method"><a class="src rightside" href="../../src/openssl/symm.rs.html#194-196">Source</a><h4 class="code-header">pub fn <a href="#method.aes_256_cbc" class="fn">aes_256_cbc</a>() -> <a class="struct" href="struct.Cipher.html" title="struct openssl::symm::Cipher">Cipher</a></h4></section><section id="method.aes_256_xts" class="method"><a class="src rightside" href="../../src/openssl/symm.rs.html#199-201">Source</a><h4 class="code-header">pub fn <a href="#method.aes_256_xts" class="fn">aes_256_xts</a>() -> <a class="struct" href="struct.Cipher.html" title="struct openssl::symm::Cipher">Cipher</a></h4></section><section id="method.aes_256_ctr" class="method"><a class="src rightside" href="../../src/openssl/symm.rs.html#203-205">Source</a><h4 class="code-header">pub fn <a href="#method.aes_256_ctr" class="fn">aes_256_ctr</a>() -> <a class="struct" href="struct.Cipher.html" title="struct openssl::symm::Cipher">Cipher</a></h4></section><section id="method.aes_256_cfb1" class="method"><a class="src rightside" href="../../src/openssl/symm.rs.html#208-210">Source</a><h4 class="code-header">pub fn <a href="#method.aes_256_cfb1" class="fn">aes_256_cfb1</a>() -> <a class="struct" href="struct.Cipher.html" title="struct openssl::symm::Cipher">Cipher</a></h4></section><section id="method.aes_256_cfb128" class="method"><a class="src rightside" href="../../src/openssl/symm.rs.html#212-214">Source</a><h4 class="code-header">pub fn <a href="#method.aes_256_cfb128" class="fn">aes_256_cfb128</a>() -> <a class="struct" href="struct.Cipher.html" title="struct openssl::symm::Cipher">Cipher</a></h4></section><section id="method.aes_256_cfb8" class="method"><a class="src rightside" href="../../src/openssl/symm.rs.html#217-219">Source</a><h4 class="code-header">pub fn <a href="#method.aes_256_cfb8" class="fn">aes_256_cfb8</a>() -> <a class="struct" href="struct.Cipher.html" title="struct openssl::symm::Cipher">Cipher</a></h4></section><section id="method.aes_256_gcm" class="method"><a class="src rightside" href="../../src/openssl/symm.rs.html#221-223">Source</a><h4 class="code-header">pub fn <a href="#method.aes_256_gcm" class="fn">aes_256_gcm</a>() -> <a class="struct" href="struct.Cipher.html" title="struct openssl::symm::Cipher">Cipher</a></h4></section><section id="method.aes_256_ccm" class="method"><a class="src rightside" href="../../src/openssl/symm.rs.html#226-228">Source</a><h4 class="code-header">pub fn <a href="#method.aes_256_ccm" class="fn">aes_256_ccm</a>() -> <a class="struct" href="struct.Cipher.html" title="struct openssl::symm::Cipher">Cipher</a></h4></section><section id="method.aes_256_ofb" class="method"><a class="src rightside" href="../../src/openssl/symm.rs.html#230-232">Source</a><h4 class="code-header">pub fn <a href="#method.aes_256_ofb" class="fn">aes_256_ofb</a>() -> <a class="struct" href="struct.Cipher.html" title="struct openssl::symm::Cipher">Cipher</a></h4></section><details class="toggle method-toggle" open><summary><section id="method.aes_256_ocb" class="method"><a class="src rightside" href="../../src/openssl/symm.rs.html#236-238">Source</a><h4 class="code-header">pub fn <a href="#method.aes_256_ocb" class="fn">aes_256_ocb</a>() -> <a class="struct" href="struct.Cipher.html" title="struct openssl::symm::Cipher">Cipher</a></h4></section></summary><div class="docblock"><p>Requires OpenSSL 1.1.0 or newer.</p>
|
||
</div></details><section id="method.bf_cbc" class="method"><a class="src rightside" href="../../src/openssl/symm.rs.html#241-243">Source</a><h4 class="code-header">pub fn <a href="#method.bf_cbc" class="fn">bf_cbc</a>() -> <a class="struct" href="struct.Cipher.html" title="struct openssl::symm::Cipher">Cipher</a></h4></section><section id="method.bf_ecb" class="method"><a class="src rightside" href="../../src/openssl/symm.rs.html#246-248">Source</a><h4 class="code-header">pub fn <a href="#method.bf_ecb" class="fn">bf_ecb</a>() -> <a class="struct" href="struct.Cipher.html" title="struct openssl::symm::Cipher">Cipher</a></h4></section><section id="method.bf_cfb64" class="method"><a class="src rightside" href="../../src/openssl/symm.rs.html#251-253">Source</a><h4 class="code-header">pub fn <a href="#method.bf_cfb64" class="fn">bf_cfb64</a>() -> <a class="struct" href="struct.Cipher.html" title="struct openssl::symm::Cipher">Cipher</a></h4></section><section id="method.bf_ofb" class="method"><a class="src rightside" href="../../src/openssl/symm.rs.html#256-258">Source</a><h4 class="code-header">pub fn <a href="#method.bf_ofb" class="fn">bf_ofb</a>() -> <a class="struct" href="struct.Cipher.html" title="struct openssl::symm::Cipher">Cipher</a></h4></section><section id="method.des_cbc" class="method"><a class="src rightside" href="../../src/openssl/symm.rs.html#260-262">Source</a><h4 class="code-header">pub fn <a href="#method.des_cbc" class="fn">des_cbc</a>() -> <a class="struct" href="struct.Cipher.html" title="struct openssl::symm::Cipher">Cipher</a></h4></section><section id="method.des_ecb" class="method"><a class="src rightside" href="../../src/openssl/symm.rs.html#264-266">Source</a><h4 class="code-header">pub fn <a href="#method.des_ecb" class="fn">des_ecb</a>() -> <a class="struct" href="struct.Cipher.html" title="struct openssl::symm::Cipher">Cipher</a></h4></section><section id="method.des_ede3" class="method"><a class="src rightside" href="../../src/openssl/symm.rs.html#268-270">Source</a><h4 class="code-header">pub fn <a href="#method.des_ede3" class="fn">des_ede3</a>() -> <a class="struct" href="struct.Cipher.html" title="struct openssl::symm::Cipher">Cipher</a></h4></section><section id="method.des_ede3_cbc" class="method"><a class="src rightside" href="../../src/openssl/symm.rs.html#272-274">Source</a><h4 class="code-header">pub fn <a href="#method.des_ede3_cbc" class="fn">des_ede3_cbc</a>() -> <a class="struct" href="struct.Cipher.html" title="struct openssl::symm::Cipher">Cipher</a></h4></section><section id="method.des_ede3_ecb" class="method"><a class="src rightside" href="../../src/openssl/symm.rs.html#276-278">Source</a><h4 class="code-header">pub fn <a href="#method.des_ede3_ecb" class="fn">des_ede3_ecb</a>() -> <a class="struct" href="struct.Cipher.html" title="struct openssl::symm::Cipher">Cipher</a></h4></section><section id="method.des_ede3_cfb64" class="method"><a class="src rightside" href="../../src/openssl/symm.rs.html#281-283">Source</a><h4 class="code-header">pub fn <a href="#method.des_ede3_cfb64" class="fn">des_ede3_cfb64</a>() -> <a class="struct" href="struct.Cipher.html" title="struct openssl::symm::Cipher">Cipher</a></h4></section><section id="method.des_ede3_cfb8" class="method"><a class="src rightside" href="../../src/openssl/symm.rs.html#286-288">Source</a><h4 class="code-header">pub fn <a href="#method.des_ede3_cfb8" class="fn">des_ede3_cfb8</a>() -> <a class="struct" href="struct.Cipher.html" title="struct openssl::symm::Cipher">Cipher</a></h4></section><section id="method.des_ede3_ofb" class="method"><a class="src rightside" href="../../src/openssl/symm.rs.html#291-293">Source</a><h4 class="code-header">pub fn <a href="#method.des_ede3_ofb" class="fn">des_ede3_ofb</a>() -> <a class="struct" href="struct.Cipher.html" title="struct openssl::symm::Cipher">Cipher</a></h4></section><section id="method.rc4" class="method"><a class="src rightside" href="../../src/openssl/symm.rs.html#296-298">Source</a><h4 class="code-header">pub fn <a href="#method.rc4" class="fn">rc4</a>() -> <a class="struct" href="struct.Cipher.html" title="struct openssl::symm::Cipher">Cipher</a></h4></section><section id="method.camellia_128_cbc" class="method"><a class="src rightside" href="../../src/openssl/symm.rs.html#301-303">Source</a><h4 class="code-header">pub fn <a href="#method.camellia_128_cbc" class="fn">camellia_128_cbc</a>() -> <a class="struct" href="struct.Cipher.html" title="struct openssl::symm::Cipher">Cipher</a></h4></section><section id="method.camellia_128_ecb" class="method"><a class="src rightside" href="../../src/openssl/symm.rs.html#306-308">Source</a><h4 class="code-header">pub fn <a href="#method.camellia_128_ecb" class="fn">camellia_128_ecb</a>() -> <a class="struct" href="struct.Cipher.html" title="struct openssl::symm::Cipher">Cipher</a></h4></section><section id="method.camellia_128_ofb" class="method"><a class="src rightside" href="../../src/openssl/symm.rs.html#311-313">Source</a><h4 class="code-header">pub fn <a href="#method.camellia_128_ofb" class="fn">camellia_128_ofb</a>() -> <a class="struct" href="struct.Cipher.html" title="struct openssl::symm::Cipher">Cipher</a></h4></section><section id="method.camellia_128_cfb128" class="method"><a class="src rightside" href="../../src/openssl/symm.rs.html#316-318">Source</a><h4 class="code-header">pub fn <a href="#method.camellia_128_cfb128" class="fn">camellia_128_cfb128</a>() -> <a class="struct" href="struct.Cipher.html" title="struct openssl::symm::Cipher">Cipher</a></h4></section><section id="method.camellia_192_cbc" class="method"><a class="src rightside" href="../../src/openssl/symm.rs.html#321-323">Source</a><h4 class="code-header">pub fn <a href="#method.camellia_192_cbc" class="fn">camellia_192_cbc</a>() -> <a class="struct" href="struct.Cipher.html" title="struct openssl::symm::Cipher">Cipher</a></h4></section><section id="method.camellia_192_ecb" class="method"><a class="src rightside" href="../../src/openssl/symm.rs.html#326-328">Source</a><h4 class="code-header">pub fn <a href="#method.camellia_192_ecb" class="fn">camellia_192_ecb</a>() -> <a class="struct" href="struct.Cipher.html" title="struct openssl::symm::Cipher">Cipher</a></h4></section><section id="method.camellia_192_ofb" class="method"><a class="src rightside" href="../../src/openssl/symm.rs.html#331-333">Source</a><h4 class="code-header">pub fn <a href="#method.camellia_192_ofb" class="fn">camellia_192_ofb</a>() -> <a class="struct" href="struct.Cipher.html" title="struct openssl::symm::Cipher">Cipher</a></h4></section><section id="method.camellia_192_cfb128" class="method"><a class="src rightside" href="../../src/openssl/symm.rs.html#336-338">Source</a><h4 class="code-header">pub fn <a href="#method.camellia_192_cfb128" class="fn">camellia_192_cfb128</a>() -> <a class="struct" href="struct.Cipher.html" title="struct openssl::symm::Cipher">Cipher</a></h4></section><section id="method.camellia_256_cbc" class="method"><a class="src rightside" href="../../src/openssl/symm.rs.html#341-343">Source</a><h4 class="code-header">pub fn <a href="#method.camellia_256_cbc" class="fn">camellia_256_cbc</a>() -> <a class="struct" href="struct.Cipher.html" title="struct openssl::symm::Cipher">Cipher</a></h4></section><section id="method.camellia_256_ecb" class="method"><a class="src rightside" href="../../src/openssl/symm.rs.html#346-348">Source</a><h4 class="code-header">pub fn <a href="#method.camellia_256_ecb" class="fn">camellia_256_ecb</a>() -> <a class="struct" href="struct.Cipher.html" title="struct openssl::symm::Cipher">Cipher</a></h4></section><section id="method.camellia_256_ofb" class="method"><a class="src rightside" href="../../src/openssl/symm.rs.html#351-353">Source</a><h4 class="code-header">pub fn <a href="#method.camellia_256_ofb" class="fn">camellia_256_ofb</a>() -> <a class="struct" href="struct.Cipher.html" title="struct openssl::symm::Cipher">Cipher</a></h4></section><section id="method.camellia_256_cfb128" class="method"><a class="src rightside" href="../../src/openssl/symm.rs.html#356-358">Source</a><h4 class="code-header">pub fn <a href="#method.camellia_256_cfb128" class="fn">camellia_256_cfb128</a>() -> <a class="struct" href="struct.Cipher.html" title="struct openssl::symm::Cipher">Cipher</a></h4></section><section id="method.cast5_cbc" class="method"><a class="src rightside" href="../../src/openssl/symm.rs.html#361-363">Source</a><h4 class="code-header">pub fn <a href="#method.cast5_cbc" class="fn">cast5_cbc</a>() -> <a class="struct" href="struct.Cipher.html" title="struct openssl::symm::Cipher">Cipher</a></h4></section><section id="method.cast5_ecb" class="method"><a class="src rightside" href="../../src/openssl/symm.rs.html#366-368">Source</a><h4 class="code-header">pub fn <a href="#method.cast5_ecb" class="fn">cast5_ecb</a>() -> <a class="struct" href="struct.Cipher.html" title="struct openssl::symm::Cipher">Cipher</a></h4></section><section id="method.cast5_ofb" class="method"><a class="src rightside" href="../../src/openssl/symm.rs.html#371-373">Source</a><h4 class="code-header">pub fn <a href="#method.cast5_ofb" class="fn">cast5_ofb</a>() -> <a class="struct" href="struct.Cipher.html" title="struct openssl::symm::Cipher">Cipher</a></h4></section><section id="method.cast5_cfb64" class="method"><a class="src rightside" href="../../src/openssl/symm.rs.html#376-378">Source</a><h4 class="code-header">pub fn <a href="#method.cast5_cfb64" class="fn">cast5_cfb64</a>() -> <a class="struct" href="struct.Cipher.html" title="struct openssl::symm::Cipher">Cipher</a></h4></section><details class="toggle method-toggle" open><summary><section id="method.chacha20" class="method"><a class="src rightside" href="../../src/openssl/symm.rs.html#382-384">Source</a><h4 class="code-header">pub fn <a href="#method.chacha20" class="fn">chacha20</a>() -> <a class="struct" href="struct.Cipher.html" title="struct openssl::symm::Cipher">Cipher</a></h4></section></summary><div class="docblock"><p>Requires OpenSSL 1.1.0 or newer.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.chacha20_poly1305" class="method"><a class="src rightside" href="../../src/openssl/symm.rs.html#388-390">Source</a><h4 class="code-header">pub fn <a href="#method.chacha20_poly1305" class="fn">chacha20_poly1305</a>() -> <a class="struct" href="struct.Cipher.html" title="struct openssl::symm::Cipher">Cipher</a></h4></section></summary><div class="docblock"><p>Requires OpenSSL 1.1.0 or newer.</p>
|
||
</div></details><section id="method.seed_cbc" class="method"><a class="src rightside" href="../../src/openssl/symm.rs.html#413-415">Source</a><h4 class="code-header">pub fn <a href="#method.seed_cbc" class="fn">seed_cbc</a>() -> <a class="struct" href="struct.Cipher.html" title="struct openssl::symm::Cipher">Cipher</a></h4></section><section id="method.seed_cfb128" class="method"><a class="src rightside" href="../../src/openssl/symm.rs.html#418-420">Source</a><h4 class="code-header">pub fn <a href="#method.seed_cfb128" class="fn">seed_cfb128</a>() -> <a class="struct" href="struct.Cipher.html" title="struct openssl::symm::Cipher">Cipher</a></h4></section><section id="method.seed_ecb" class="method"><a class="src rightside" href="../../src/openssl/symm.rs.html#423-425">Source</a><h4 class="code-header">pub fn <a href="#method.seed_ecb" class="fn">seed_ecb</a>() -> <a class="struct" href="struct.Cipher.html" title="struct openssl::symm::Cipher">Cipher</a></h4></section><section id="method.seed_ofb" class="method"><a class="src rightside" href="../../src/openssl/symm.rs.html#428-430">Source</a><h4 class="code-header">pub fn <a href="#method.seed_ofb" class="fn">seed_ofb</a>() -> <a class="struct" href="struct.Cipher.html" title="struct openssl::symm::Cipher">Cipher</a></h4></section><section id="method.sm4_ecb" class="method"><a class="src rightside" href="../../src/openssl/symm.rs.html#433-435">Source</a><h4 class="code-header">pub fn <a href="#method.sm4_ecb" class="fn">sm4_ecb</a>() -> <a class="struct" href="struct.Cipher.html" title="struct openssl::symm::Cipher">Cipher</a></h4></section><section id="method.sm4_cbc" class="method"><a class="src rightside" href="../../src/openssl/symm.rs.html#438-440">Source</a><h4 class="code-header">pub fn <a href="#method.sm4_cbc" class="fn">sm4_cbc</a>() -> <a class="struct" href="struct.Cipher.html" title="struct openssl::symm::Cipher">Cipher</a></h4></section><section id="method.sm4_ctr" class="method"><a class="src rightside" href="../../src/openssl/symm.rs.html#443-445">Source</a><h4 class="code-header">pub fn <a href="#method.sm4_ctr" class="fn">sm4_ctr</a>() -> <a class="struct" href="struct.Cipher.html" title="struct openssl::symm::Cipher">Cipher</a></h4></section><section id="method.sm4_cfb128" class="method"><a class="src rightside" href="../../src/openssl/symm.rs.html#448-450">Source</a><h4 class="code-header">pub fn <a href="#method.sm4_cfb128" class="fn">sm4_cfb128</a>() -> <a class="struct" href="struct.Cipher.html" title="struct openssl::symm::Cipher">Cipher</a></h4></section><section id="method.sm4_ofb" class="method"><a class="src rightside" href="../../src/openssl/symm.rs.html#453-455">Source</a><h4 class="code-header">pub fn <a href="#method.sm4_ofb" class="fn">sm4_ofb</a>() -> <a class="struct" href="struct.Cipher.html" title="struct openssl::symm::Cipher">Cipher</a></h4></section><details class="toggle method-toggle" open><summary><section id="method.from_ptr" class="method"><a class="src rightside" href="../../src/openssl/symm.rs.html#462-464">Source</a><h4 class="code-header">pub unsafe fn <a href="#method.from_ptr" class="fn">from_ptr</a>(ptr: <a class="primitive" href="https://doc.rust-lang.org/1.84.1/std/primitive.pointer.html">*const </a><a class="enum" href="../../openssl_sys/openssl/handwritten/types/enum.EVP_CIPHER.html" title="enum openssl_sys::openssl::handwritten::types::EVP_CIPHER">EVP_CIPHER</a>) -> <a class="struct" href="struct.Cipher.html" title="struct openssl::symm::Cipher">Cipher</a></h4></section></summary><div class="docblock"><p>Creates a <code>Cipher</code> from a raw pointer to its OpenSSL type.</p>
|
||
<h5 id="safety"><a class="doc-anchor" href="#safety">§</a>Safety</h5>
|
||
<p>The caller must ensure the pointer is valid for the <code>'static</code> lifetime.</p>
|
||
</div></details><section id="method.as_ptr" class="method"><a class="src rightside" href="../../src/openssl/symm.rs.html#467-469">Source</a><h4 class="code-header">pub fn <a href="#method.as_ptr" class="fn">as_ptr</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/1.84.1/std/primitive.pointer.html">*const </a><a class="enum" href="../../openssl_sys/openssl/handwritten/types/enum.EVP_CIPHER.html" title="enum openssl_sys::openssl::handwritten::types::EVP_CIPHER">EVP_CIPHER</a></h4></section><details class="toggle method-toggle" open><summary><section id="method.key_len" class="method"><a class="src rightside" href="../../src/openssl/symm.rs.html#473-475">Source</a><h4 class="code-header">pub fn <a href="#method.key_len" class="fn">key_len</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/1.84.1/std/primitive.usize.html">usize</a></h4></section></summary><div class="docblock"><p>Returns the length of keys used with this cipher.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.iv_len" class="method"><a class="src rightside" href="../../src/openssl/symm.rs.html#480-489">Source</a><h4 class="code-header">pub fn <a href="#method.iv_len" class="fn">iv_len</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/1.84.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="primitive" href="https://doc.rust-lang.org/1.84.1/std/primitive.usize.html">usize</a>></h4></section></summary><div class="docblock"><p>Returns the length of the IV used with this cipher, or <code>None</code> if the
|
||
cipher does not use an IV.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.block_size" class="method"><a class="src rightside" href="../../src/openssl/symm.rs.html#497-499">Source</a><h4 class="code-header">pub fn <a href="#method.block_size" class="fn">block_size</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/1.84.1/std/primitive.usize.html">usize</a></h4></section></summary><div class="docblock"><p>Returns the block size of the cipher.</p>
|
||
<h5 id="note"><a class="doc-anchor" href="#note">§</a>Note</h5>
|
||
<p>Stream ciphers such as RC4 have a block size of 1.</p>
|
||
</div></details></div></details></div><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-Clone-for-Cipher" class="impl"><a class="src rightside" href="../../src/openssl/symm.rs.html#73">Source</a><a href="#impl-Clone-for-Cipher" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.84.1/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> for <a class="struct" href="struct.Cipher.html" title="struct openssl::symm::Cipher">Cipher</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.clone" class="method trait-impl"><a class="src rightside" href="../../src/openssl/symm.rs.html#73">Source</a><a href="#method.clone" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.1/core/clone/trait.Clone.html#tymethod.clone" class="fn">clone</a>(&self) -> <a class="struct" href="struct.Cipher.html" title="struct openssl::symm::Cipher">Cipher</a></h4></section></summary><div class='docblock'>Returns a copy of the value. <a href="https://doc.rust-lang.org/1.84.1/core/clone/trait.Clone.html#tymethod.clone">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.clone_from" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="src" href="https://doc.rust-lang.org/1.84.1/src/core/clone.rs.html#174">Source</a></span><a href="#method.clone_from" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.1/core/clone/trait.Clone.html#method.clone_from" class="fn">clone_from</a>(&mut self, source: &Self)</h4></section></summary><div class='docblock'>Performs copy-assignment from <code>source</code>. <a href="https://doc.rust-lang.org/1.84.1/core/clone/trait.Clone.html#method.clone_from">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-PartialEq-for-Cipher" class="impl"><a class="src rightside" href="../../src/openssl/symm.rs.html#73">Source</a><a href="#impl-PartialEq-for-Cipher" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.84.1/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a> for <a class="struct" href="struct.Cipher.html" title="struct openssl::symm::Cipher">Cipher</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.eq" class="method trait-impl"><a class="src rightside" href="../../src/openssl/symm.rs.html#73">Source</a><a href="#method.eq" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.1/core/cmp/trait.PartialEq.html#tymethod.eq" class="fn">eq</a>(&self, other: &<a class="struct" href="struct.Cipher.html" title="struct openssl::symm::Cipher">Cipher</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1.84.1/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Tests for <code>self</code> and <code>other</code> values to be equal, and is used by <code>==</code>.</div></details><details class="toggle method-toggle" open><summary><section id="method.ne" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="src" href="https://doc.rust-lang.org/1.84.1/src/core/cmp.rs.html#261">Source</a></span><a href="#method.ne" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.1/core/cmp/trait.PartialEq.html#method.ne" class="fn">ne</a>(&self, other: <a class="primitive" href="https://doc.rust-lang.org/1.84.1/std/primitive.reference.html">&Rhs</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1.84.1/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Tests for <code>!=</code>. The default implementation is almost always sufficient,
|
||
and should not be overridden without very good reason.</div></details></div></details><section id="impl-Copy-for-Cipher" class="impl"><a class="src rightside" href="../../src/openssl/symm.rs.html#73">Source</a><a href="#impl-Copy-for-Cipher" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.84.1/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a> for <a class="struct" href="struct.Cipher.html" title="struct openssl::symm::Cipher">Cipher</a></h3></section><section id="impl-Eq-for-Cipher" class="impl"><a class="src rightside" href="../../src/openssl/symm.rs.html#73">Source</a><a href="#impl-Eq-for-Cipher" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.84.1/core/cmp/trait.Eq.html" title="trait core::cmp::Eq">Eq</a> for <a class="struct" href="struct.Cipher.html" title="struct openssl::symm::Cipher">Cipher</a></h3></section><section id="impl-Send-for-Cipher" class="impl"><a class="src rightside" href="../../src/openssl/symm.rs.html#528">Source</a><a href="#impl-Send-for-Cipher" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.84.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> for <a class="struct" href="struct.Cipher.html" title="struct openssl::symm::Cipher">Cipher</a></h3></section><section id="impl-StructuralPartialEq-for-Cipher" class="impl"><a class="src rightside" href="../../src/openssl/symm.rs.html#73">Source</a><a href="#impl-StructuralPartialEq-for-Cipher" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.84.1/core/marker/trait.StructuralPartialEq.html" title="trait core::marker::StructuralPartialEq">StructuralPartialEq</a> for <a class="struct" href="struct.Cipher.html" title="struct openssl::symm::Cipher">Cipher</a></h3></section><section id="impl-Sync-for-Cipher" class="impl"><a class="src rightside" href="../../src/openssl/symm.rs.html#527">Source</a><a href="#impl-Sync-for-Cipher" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.84.1/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> for <a class="struct" href="struct.Cipher.html" title="struct openssl::symm::Cipher">Cipher</a></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-Cipher" class="impl"><a href="#impl-Freeze-for-Cipher" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.84.1/core/marker/trait.Freeze.html" title="trait core::marker::Freeze">Freeze</a> for <a class="struct" href="struct.Cipher.html" title="struct openssl::symm::Cipher">Cipher</a></h3></section><section id="impl-RefUnwindSafe-for-Cipher" class="impl"><a href="#impl-RefUnwindSafe-for-Cipher" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.84.1/core/panic/unwind_safe/trait.RefUnwindSafe.html" title="trait core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a> for <a class="struct" href="struct.Cipher.html" title="struct openssl::symm::Cipher">Cipher</a></h3></section><section id="impl-Unpin-for-Cipher" class="impl"><a href="#impl-Unpin-for-Cipher" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.84.1/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> for <a class="struct" href="struct.Cipher.html" title="struct openssl::symm::Cipher">Cipher</a></h3></section><section id="impl-UnwindSafe-for-Cipher" class="impl"><a href="#impl-UnwindSafe-for-Cipher" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.84.1/core/panic/unwind_safe/trait.UnwindSafe.html" title="trait core::panic::unwind_safe::UnwindSafe">UnwindSafe</a> for <a class="struct" href="struct.Cipher.html" title="struct openssl::symm::Cipher">Cipher</a></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.84.1/src/core/any.rs.html#138">Source</a><a href="#impl-Any-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.84.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.84.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.84.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.84.1/core/any/trait.Any.html#tymethod.type_id" class="fn">type_id</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/1.84.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.84.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.84.1/src/core/borrow.rs.html#209">Source</a><a href="#impl-Borrow%3CT%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.84.1/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a><T> for T<div class="where">where
|
||
T: ?<a class="trait" href="https://doc.rust-lang.org/1.84.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" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.1/src/core/borrow.rs.html#211">Source</a><a href="#method.borrow" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.1/core/borrow/trait.Borrow.html#tymethod.borrow" class="fn">borrow</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/1.84.1/std/primitive.reference.html">&T</a></h4></section></summary><div class='docblock'>Immutably borrows from an owned value. <a href="https://doc.rust-lang.org/1.84.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.84.1/src/core/borrow.rs.html#217">Source</a><a href="#impl-BorrowMut%3CT%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.84.1/core/borrow/trait.BorrowMut.html" title="trait core::borrow::BorrowMut">BorrowMut</a><T> for T<div class="where">where
|
||
T: ?<a class="trait" href="https://doc.rust-lang.org/1.84.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.84.1/src/core/borrow.rs.html#218">Source</a><a href="#method.borrow_mut" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.1/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut" class="fn">borrow_mut</a>(&mut self) -> <a class="primitive" href="https://doc.rust-lang.org/1.84.1/std/primitive.reference.html">&mut T</a></h4></section></summary><div class='docblock'>Mutably borrows from an owned value. <a href="https://doc.rust-lang.org/1.84.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-CloneToUninit-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.1/src/core/clone.rs.html#273">Source</a><a href="#impl-CloneToUninit-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.84.1/core/clone/trait.CloneToUninit.html" title="trait core::clone::CloneToUninit">CloneToUninit</a> for T<div class="where">where
|
||
T: <a class="trait" href="https://doc.rust-lang.org/1.84.1/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.clone_to_uninit" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.1/src/core/clone.rs.html#275">Source</a><a href="#method.clone_to_uninit" class="anchor">§</a><h4 class="code-header">unsafe fn <a href="https://doc.rust-lang.org/1.84.1/core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit" class="fn">clone_to_uninit</a>(&self, dst: <a class="primitive" href="https://doc.rust-lang.org/1.84.1/std/primitive.pointer.html">*mut </a><a class="primitive" href="https://doc.rust-lang.org/1.84.1/std/primitive.u8.html">u8</a>)</h4></section></summary><span class="item-info"><div class="stab unstable"><span class="emoji">🔬</span><span>This is a nightly-only experimental API. (<code>clone_to_uninit</code>)</span></div></span><div class='docblock'>Performs copy-assignment from <code>self</code> to <code>dst</code>. <a href="https://doc.rust-lang.org/1.84.1/core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit">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.84.1/src/core/convert/mod.rs.html#765">Source</a><a href="#impl-From%3CT%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.84.1/core/convert/trait.From.html" title="trait core::convert::From">From</a><T> 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.84.1/src/core/convert/mod.rs.html#768">Source</a><a href="#method.from" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.1/core/convert/trait.From.html#tymethod.from" class="fn">from</a>(t: T) -> 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.84.1/src/core/convert/mod.rs.html#748-750">Source</a><a href="#impl-Into%3CU%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T, U> <a class="trait" href="https://doc.rust-lang.org/1.84.1/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><U> for T<div class="where">where
|
||
U: <a class="trait" href="https://doc.rust-lang.org/1.84.1/core/convert/trait.From.html" title="trait core::convert::From">From</a><T>,</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.84.1/src/core/convert/mod.rs.html#758">Source</a><a href="#method.into" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.1/core/convert/trait.Into.html#tymethod.into" class="fn">into</a>(self) -> 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.84.1/core/convert/trait.From.html" title="trait core::convert::From">From</a><T> for U</code> chooses to do.</p>
|
||
</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-ToOwned-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.1/src/alloc/borrow.rs.html#82-84">Source</a><a href="#impl-ToOwned-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.84.1/alloc/borrow/trait.ToOwned.html" title="trait alloc::borrow::ToOwned">ToOwned</a> for T<div class="where">where
|
||
T: <a class="trait" href="https://doc.rust-lang.org/1.84.1/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Owned" class="associatedtype trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.1/src/alloc/borrow.rs.html#86">Source</a><a href="#associatedtype.Owned" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.84.1/alloc/borrow/trait.ToOwned.html#associatedtype.Owned" class="associatedtype">Owned</a> = T</h4></section></summary><div class='docblock'>The resulting type after obtaining ownership.</div></details><details class="toggle method-toggle" open><summary><section id="method.to_owned" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.1/src/alloc/borrow.rs.html#87">Source</a><a href="#method.to_owned" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.1/alloc/borrow/trait.ToOwned.html#tymethod.to_owned" class="fn">to_owned</a>(&self) -> T</h4></section></summary><div class='docblock'>Creates owned data from borrowed data, usually by cloning. <a href="https://doc.rust-lang.org/1.84.1/alloc/borrow/trait.ToOwned.html#tymethod.to_owned">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.clone_into" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.1/src/alloc/borrow.rs.html#91">Source</a><a href="#method.clone_into" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.1/alloc/borrow/trait.ToOwned.html#method.clone_into" class="fn">clone_into</a>(&self, target: <a class="primitive" href="https://doc.rust-lang.org/1.84.1/std/primitive.reference.html">&mut T</a>)</h4></section></summary><div class='docblock'>Uses borrowed data to replace owned data, usually by cloning. <a href="https://doc.rust-lang.org/1.84.1/alloc/borrow/trait.ToOwned.html#method.clone_into">Read more</a></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.84.1/src/core/convert/mod.rs.html#805-807">Source</a><a href="#impl-TryFrom%3CU%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T, U> <a class="trait" href="https://doc.rust-lang.org/1.84.1/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><U> for T<div class="where">where
|
||
U: <a class="trait" href="https://doc.rust-lang.org/1.84.1/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><T>,</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.84.1/src/core/convert/mod.rs.html#809">Source</a><a href="#associatedtype.Error-1" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.84.1/core/convert/trait.TryFrom.html#associatedtype.Error" class="associatedtype">Error</a> = <a class="enum" href="https://doc.rust-lang.org/1.84.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.84.1/src/core/convert/mod.rs.html#812">Source</a><a href="#method.try_from" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.1/core/convert/trait.TryFrom.html#tymethod.try_from" class="fn">try_from</a>(value: U) -> <a class="enum" href="https://doc.rust-lang.org/1.84.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a><T, <T as <a class="trait" href="https://doc.rust-lang.org/1.84.1/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><U>>::<a class="associatedtype" href="https://doc.rust-lang.org/1.84.1/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>></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.84.1/src/core/convert/mod.rs.html#790-792">Source</a><a href="#impl-TryInto%3CU%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T, U> <a class="trait" href="https://doc.rust-lang.org/1.84.1/core/convert/trait.TryInto.html" title="trait core::convert::TryInto">TryInto</a><U> for T<div class="where">where
|
||
U: <a class="trait" href="https://doc.rust-lang.org/1.84.1/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>,</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.84.1/src/core/convert/mod.rs.html#794">Source</a><a href="#associatedtype.Error" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.84.1/core/convert/trait.TryInto.html#associatedtype.Error" class="associatedtype">Error</a> = <U as <a class="trait" href="https://doc.rust-lang.org/1.84.1/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>>::<a class="associatedtype" href="https://doc.rust-lang.org/1.84.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.84.1/src/core/convert/mod.rs.html#797">Source</a><a href="#method.try_into" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.1/core/convert/trait.TryInto.html#tymethod.try_into" class="fn">try_into</a>(self) -> <a class="enum" href="https://doc.rust-lang.org/1.84.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a><U, <U as <a class="trait" href="https://doc.rust-lang.org/1.84.1/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>>::<a class="associatedtype" href="https://doc.rust-lang.org/1.84.1/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>></h4></section></summary><div class='docblock'>Performs the conversion.</div></details></div></details></div></section></div></main></body></html> |