mirror of
https://github.com/trussed-dev/trussed.git
synced 2026-05-10 06:02:27 +00:00
65 lines
64 KiB
HTML
65 lines
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="Wrapper around `StreamCipherCore` implementations."><title>StreamCipherCoreWrapper in cipher - 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-77263533.css"><meta name="rustdoc-vars" data-root-path="../" data-static-root-path="../static.files/" data-current-crate="cipher" data-themes="" data-resource-suffix="" data-rustdoc-version="1.94.0 (4a4ef493e 2026-03-02)" data-channel="1.94.0" data-search-js="search-9e2438ea.js" data-stringdex-js="stringdex-b897f86f.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-7bab91a1.js"></script><noscript><link rel="stylesheet" href="../static.files/noscript-ffcac47a.css"></noscript><link rel="icon" href="https://raw.githubusercontent.com/RustCrypto/media/6ee8e381/logo.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="#">StreamCipherCoreWrapper</a></h2></rustdoc-topbar><nav class="sidebar"><div class="sidebar-crate"><a class="logo-container" href="../cipher/index.html"><img src="https://raw.githubusercontent.com/RustCrypto/media/6ee8e381/logo.svg" alt="logo"></a><h2><a href="../cipher/index.html">cipher</a><span class="version">0.4.4</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Stream<wbr>Cipher<wbr>Core<wbr>Wrapper</a></h2><h3><a href="#implementations">Methods</a></h3><ul class="block method"><li><a href="#method.from_core" title="from_core">from_core</a></li><li><a href="#method.get_core" title="get_core">get_core</a></li></ul><h3><a href="#trait-implementations">Trait Implementations</a></h3><ul class="block trait-implementation"><li><a href="#impl-Clone-for-StreamCipherCoreWrapper%3CT%3E" title="Clone">Clone</a></li><li><a href="#impl-Default-for-StreamCipherCoreWrapper%3CT%3E" title="Default">Default</a></li><li><a href="#impl-Drop-for-StreamCipherCoreWrapper%3CT%3E" title="Drop">Drop</a></li><li><a href="#impl-IvSizeUser-for-StreamCipherCoreWrapper%3CT%3E" title="IvSizeUser">IvSizeUser</a></li><li><a href="#impl-KeyInit-for-StreamCipherCoreWrapper%3CT%3E" title="KeyInit">KeyInit</a></li><li><a href="#impl-KeyIvInit-for-StreamCipherCoreWrapper%3CT%3E" title="KeyIvInit">KeyIvInit</a></li><li><a href="#impl-KeySizeUser-for-StreamCipherCoreWrapper%3CT%3E" title="KeySizeUser">KeySizeUser</a></li><li><a href="#impl-StreamCipher-for-StreamCipherCoreWrapper%3CT%3E" title="StreamCipher">StreamCipher</a></li><li><a href="#impl-StreamCipherSeek-for-StreamCipherCoreWrapper%3CT%3E" title="StreamCipherSeek">StreamCipherSeek</a></li><li><a href="#impl-ZeroizeOnDrop-for-StreamCipherCoreWrapper%3CT%3E" title="ZeroizeOnDrop">ZeroizeOnDrop</a></li></ul><h3><a href="#synthetic-implementations">Auto Trait Implementations</a></h3><ul class="block synthetic-implementation"><li><a href="#impl-Freeze-for-StreamCipherCoreWrapper%3CT%3E" title="Freeze">Freeze</a></li><li><a href="#impl-RefUnwindSafe-for-StreamCipherCoreWrapper%3CT%3E" title="RefUnwindSafe">RefUnwindSafe</a></li><li><a href="#impl-Send-for-StreamCipherCoreWrapper%3CT%3E" title="Send">Send</a></li><li><a href="#impl-Sync-for-StreamCipherCoreWrapper%3CT%3E" title="Sync">Sync</a></li><li><a href="#impl-Unpin-for-StreamCipherCoreWrapper%3CT%3E" title="Unpin">Unpin</a></li><li><a href="#impl-UnwindSafe-for-StreamCipherCoreWrapper%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<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-Same-for-T" title="Same">Same</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 class="in-crate"><a href="index.html">In crate cipher</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">cipher</a></div><h1>Struct <span class="struct">Stream<wbr>Cipher<wbr>Core<wbr>Wrapper</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/cipher/stream_wrapper.rs.html#17-25">Source</a> </span></div><pre class="rust item-decl"><code>pub struct StreamCipherCoreWrapper<T: <a class="trait" href="trait.BlockSizeUser.html" title="trait cipher::BlockSizeUser">BlockSizeUser</a>><div class="where">where
|
|
T::<a class="associatedtype" href="trait.BlockSizeUser.html#associatedtype.BlockSize" title="type cipher::BlockSizeUser::BlockSize">BlockSize</a>: <a class="trait" href="../typenum/type_operators/trait.IsLess.html" title="trait typenum::type_operators::IsLess">IsLess</a><<a class="type" href="consts/type.U256.html" title="type cipher::consts::U256">U256</a>>,
|
|
<a class="type" href="../typenum/operator_aliases/type.Le.html" title="type typenum::operator_aliases::Le">Le</a><T::<a class="associatedtype" href="trait.BlockSizeUser.html#associatedtype.BlockSize" title="type cipher::BlockSizeUser::BlockSize">BlockSize</a>, <a class="type" href="consts/type.U256.html" title="type cipher::consts::U256">U256</a>>: <a class="trait" href="../typenum/marker_traits/trait.NonZero.html" title="trait typenum::marker_traits::NonZero">NonZero</a>,</div>{ <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>Wrapper around <a href="trait.StreamCipherCore.html" title="trait cipher::StreamCipherCore"><code>StreamCipherCore</code></a> implementations.</p>
|
|
<p>It handles data buffering and implements the slice-based traits.</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-StreamCipherCoreWrapper%3CT%3E" class="impl"><a class="src rightside" href="../src/cipher/stream_wrapper.rs.html#27-107">Source</a><a href="#impl-StreamCipherCoreWrapper%3CT%3E" class="anchor">§</a><h3 class="code-header">impl<T: <a class="trait" href="trait.StreamCipherCore.html" title="trait cipher::StreamCipherCore">StreamCipherCore</a>> <a class="struct" href="struct.StreamCipherCoreWrapper.html" title="struct cipher::StreamCipherCoreWrapper">StreamCipherCoreWrapper</a><T><div class="where">where
|
|
T::<a class="associatedtype" href="trait.BlockSizeUser.html#associatedtype.BlockSize" title="type cipher::BlockSizeUser::BlockSize">BlockSize</a>: <a class="trait" href="../typenum/type_operators/trait.IsLess.html" title="trait typenum::type_operators::IsLess">IsLess</a><<a class="type" href="consts/type.U256.html" title="type cipher::consts::U256">U256</a>>,
|
|
<a class="type" href="../typenum/operator_aliases/type.Le.html" title="type typenum::operator_aliases::Le">Le</a><T::<a class="associatedtype" href="trait.BlockSizeUser.html#associatedtype.BlockSize" title="type cipher::BlockSizeUser::BlockSize">BlockSize</a>, <a class="type" href="consts/type.U256.html" title="type cipher::consts::U256">U256</a>>: <a class="trait" href="../typenum/marker_traits/trait.NonZero.html" title="trait typenum::marker_traits::NonZero">NonZero</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.get_core" class="method"><a class="src rightside" href="../src/cipher/stream_wrapper.rs.html#33-35">Source</a><h4 class="code-header">pub fn <a href="#method.get_core" class="fn">get_core</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/1.94.0/core/primitive.reference.html">&T</a></h4></section></summary><div class="docblock"><p>Return reference to the core type.</p>
|
|
</div></details><details class="toggle method-toggle" open><summary><section id="method.from_core" class="method"><a class="src rightside" href="../src/cipher/stream_wrapper.rs.html#38-44">Source</a><h4 class="code-header">pub fn <a href="#method.from_core" class="fn">from_core</a>(core: T) -> Self</h4></section></summary><div class="docblock"><p>Return reference to the core type.</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-StreamCipherCoreWrapper%3CT%3E" class="impl"><a class="src rightside" href="../src/cipher/stream_wrapper.rs.html#16">Source</a><a href="#impl-Clone-for-StreamCipherCoreWrapper%3CT%3E" class="anchor">§</a><h3 class="code-header">impl<T: <a class="trait" href="https://doc.rust-lang.org/1.94.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="trait.BlockSizeUser.html" title="trait cipher::BlockSizeUser">BlockSizeUser</a>> <a class="trait" href="https://doc.rust-lang.org/1.94.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> for <a class="struct" href="struct.StreamCipherCoreWrapper.html" title="struct cipher::StreamCipherCoreWrapper">StreamCipherCoreWrapper</a><T><div class="where">where
|
|
T::<a class="associatedtype" href="trait.BlockSizeUser.html#associatedtype.BlockSize" title="type cipher::BlockSizeUser::BlockSize">BlockSize</a>: <a class="trait" href="../typenum/type_operators/trait.IsLess.html" title="trait typenum::type_operators::IsLess">IsLess</a><<a class="type" href="consts/type.U256.html" title="type cipher::consts::U256">U256</a>>,
|
|
<a class="type" href="../typenum/operator_aliases/type.Le.html" title="type typenum::operator_aliases::Le">Le</a><T::<a class="associatedtype" href="trait.BlockSizeUser.html#associatedtype.BlockSize" title="type cipher::BlockSizeUser::BlockSize">BlockSize</a>, <a class="type" href="consts/type.U256.html" title="type cipher::consts::U256">U256</a>>: <a class="trait" href="../typenum/marker_traits/trait.NonZero.html" title="trait typenum::marker_traits::NonZero">NonZero</a>,</div></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/cipher/stream_wrapper.rs.html#16">Source</a><a href="#method.clone" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.94.0/core/clone/trait.Clone.html#tymethod.clone" class="fn">clone</a>(&self) -> <a class="struct" href="struct.StreamCipherCoreWrapper.html" title="struct cipher::StreamCipherCoreWrapper">StreamCipherCoreWrapper</a><T></h4></section></summary><div class='docblock'>Returns a duplicate of the value. <a href="https://doc.rust-lang.org/1.94.0/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.94.0/src/core/clone.rs.html#245-247">Source</a></span><a href="#method.clone_from" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.94.0/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.94.0/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-Default-for-StreamCipherCoreWrapper%3CT%3E" class="impl"><a class="src rightside" href="../src/cipher/stream_wrapper.rs.html#16">Source</a><a href="#impl-Default-for-StreamCipherCoreWrapper%3CT%3E" class="anchor">§</a><h3 class="code-header">impl<T: <a class="trait" href="https://doc.rust-lang.org/1.94.0/core/default/trait.Default.html" title="trait core::default::Default">Default</a> + <a class="trait" href="trait.BlockSizeUser.html" title="trait cipher::BlockSizeUser">BlockSizeUser</a>> <a class="trait" href="https://doc.rust-lang.org/1.94.0/core/default/trait.Default.html" title="trait core::default::Default">Default</a> for <a class="struct" href="struct.StreamCipherCoreWrapper.html" title="struct cipher::StreamCipherCoreWrapper">StreamCipherCoreWrapper</a><T><div class="where">where
|
|
T::<a class="associatedtype" href="trait.BlockSizeUser.html#associatedtype.BlockSize" title="type cipher::BlockSizeUser::BlockSize">BlockSize</a>: <a class="trait" href="../typenum/type_operators/trait.IsLess.html" title="trait typenum::type_operators::IsLess">IsLess</a><<a class="type" href="consts/type.U256.html" title="type cipher::consts::U256">U256</a>>,
|
|
<a class="type" href="../typenum/operator_aliases/type.Le.html" title="type typenum::operator_aliases::Le">Le</a><T::<a class="associatedtype" href="trait.BlockSizeUser.html#associatedtype.BlockSize" title="type cipher::BlockSizeUser::BlockSize">BlockSize</a>, <a class="type" href="consts/type.U256.html" title="type cipher::consts::U256">U256</a>>: <a class="trait" href="../typenum/marker_traits/trait.NonZero.html" title="trait typenum::marker_traits::NonZero">NonZero</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.default" class="method trait-impl"><a class="src rightside" href="../src/cipher/stream_wrapper.rs.html#16">Source</a><a href="#method.default" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.94.0/core/default/trait.Default.html#tymethod.default" class="fn">default</a>() -> <a class="struct" href="struct.StreamCipherCoreWrapper.html" title="struct cipher::StreamCipherCoreWrapper">StreamCipherCoreWrapper</a><T></h4></section></summary><div class='docblock'>Returns the “default value” for a type. <a href="https://doc.rust-lang.org/1.94.0/core/default/trait.Default.html#tymethod.default">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Drop-for-StreamCipherCoreWrapper%3CT%3E" class="impl"><a class="src rightside" href="../src/cipher/stream_wrapper.rs.html#223-233">Source</a><a href="#impl-Drop-for-StreamCipherCoreWrapper%3CT%3E" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.94.0/core/ops/drop/trait.Drop.html" title="trait core::ops::drop::Drop">Drop</a> for <a class="struct" href="struct.StreamCipherCoreWrapper.html" title="struct cipher::StreamCipherCoreWrapper">StreamCipherCoreWrapper</a><T><div class="where">where
|
|
T: <a class="trait" href="trait.BlockSizeUser.html" title="trait cipher::BlockSizeUser">BlockSizeUser</a>,
|
|
T::<a class="associatedtype" href="trait.BlockSizeUser.html#associatedtype.BlockSize" title="type cipher::BlockSizeUser::BlockSize">BlockSize</a>: <a class="trait" href="../typenum/type_operators/trait.IsLess.html" title="trait typenum::type_operators::IsLess">IsLess</a><<a class="type" href="consts/type.U256.html" title="type cipher::consts::U256">U256</a>>,
|
|
<a class="type" href="../typenum/operator_aliases/type.Le.html" title="type typenum::operator_aliases::Le">Le</a><T::<a class="associatedtype" href="trait.BlockSizeUser.html#associatedtype.BlockSize" title="type cipher::BlockSizeUser::BlockSize">BlockSize</a>, <a class="type" href="consts/type.U256.html" title="type cipher::consts::U256">U256</a>>: <a class="trait" href="../typenum/marker_traits/trait.NonZero.html" title="trait typenum::marker_traits::NonZero">NonZero</a>,</div></h3><span class="item-info"><div class="stab portability">Available on <strong>crate feature <code>zeroize</code></strong> only.</div></span></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/cipher/stream_wrapper.rs.html#229-232">Source</a><a href="#method.drop" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.94.0/core/ops/drop/trait.Drop.html#tymethod.drop" class="fn">drop</a>(&mut self)</h4></section></summary><div class='docblock'>Executes the destructor for this type. <a href="https://doc.rust-lang.org/1.94.0/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-IvSizeUser-for-StreamCipherCoreWrapper%3CT%3E" class="impl"><a class="src rightside" href="../src/cipher/stream_wrapper.rs.html#184-190">Source</a><a href="#impl-IvSizeUser-for-StreamCipherCoreWrapper%3CT%3E" class="anchor">§</a><h3 class="code-header">impl<T: <a class="trait" href="trait.IvSizeUser.html" title="trait cipher::IvSizeUser">IvSizeUser</a> + <a class="trait" href="trait.BlockSizeUser.html" title="trait cipher::BlockSizeUser">BlockSizeUser</a>> <a class="trait" href="trait.IvSizeUser.html" title="trait cipher::IvSizeUser">IvSizeUser</a> for <a class="struct" href="struct.StreamCipherCoreWrapper.html" title="struct cipher::StreamCipherCoreWrapper">StreamCipherCoreWrapper</a><T><div class="where">where
|
|
T::<a class="associatedtype" href="trait.BlockSizeUser.html#associatedtype.BlockSize" title="type cipher::BlockSizeUser::BlockSize">BlockSize</a>: <a class="trait" href="../typenum/type_operators/trait.IsLess.html" title="trait typenum::type_operators::IsLess">IsLess</a><<a class="type" href="consts/type.U256.html" title="type cipher::consts::U256">U256</a>>,
|
|
<a class="type" href="../typenum/operator_aliases/type.Le.html" title="type typenum::operator_aliases::Le">Le</a><T::<a class="associatedtype" href="trait.BlockSizeUser.html#associatedtype.BlockSize" title="type cipher::BlockSizeUser::BlockSize">BlockSize</a>, <a class="type" href="consts/type.U256.html" title="type cipher::consts::U256">U256</a>>: <a class="trait" href="../typenum/marker_traits/trait.NonZero.html" title="trait typenum::marker_traits::NonZero">NonZero</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.IvSize" class="associatedtype trait-impl"><a class="src rightside" href="../src/cipher/stream_wrapper.rs.html#189">Source</a><a href="#associatedtype.IvSize" class="anchor">§</a><h4 class="code-header">type <a href="trait.IvSizeUser.html#associatedtype.IvSize" class="associatedtype">IvSize</a> = <T as <a class="trait" href="trait.IvSizeUser.html" title="trait cipher::IvSizeUser">IvSizeUser</a>>::<a class="associatedtype" href="trait.IvSizeUser.html#associatedtype.IvSize" title="type cipher::IvSizeUser::IvSize">IvSize</a></h4></section></summary><div class='docblock'>Initialization vector size in bytes.</div></details><details class="toggle method-toggle" open><summary><section id="method.iv_size" class="method trait-impl"><a class="src rightside" href="../src/crypto_common/lib.rs.html#98">Source</a><a href="#method.iv_size" class="anchor">§</a><h4 class="code-header">fn <a href="trait.IvSizeUser.html#method.iv_size" class="fn">iv_size</a>() -> <a class="primitive" href="https://doc.rust-lang.org/1.94.0/core/primitive.usize.html">usize</a></h4></section></summary><div class='docblock'>Return IV size in bytes.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-KeyInit-for-StreamCipherCoreWrapper%3CT%3E" class="impl"><a class="src rightside" href="../src/cipher/stream_wrapper.rs.html#207-220">Source</a><a href="#impl-KeyInit-for-StreamCipherCoreWrapper%3CT%3E" class="anchor">§</a><h3 class="code-header">impl<T: <a class="trait" href="trait.KeyInit.html" title="trait cipher::KeyInit">KeyInit</a> + <a class="trait" href="trait.BlockSizeUser.html" title="trait cipher::BlockSizeUser">BlockSizeUser</a>> <a class="trait" href="trait.KeyInit.html" title="trait cipher::KeyInit">KeyInit</a> for <a class="struct" href="struct.StreamCipherCoreWrapper.html" title="struct cipher::StreamCipherCoreWrapper">StreamCipherCoreWrapper</a><T><div class="where">where
|
|
T::<a class="associatedtype" href="trait.BlockSizeUser.html#associatedtype.BlockSize" title="type cipher::BlockSizeUser::BlockSize">BlockSize</a>: <a class="trait" href="../typenum/type_operators/trait.IsLess.html" title="trait typenum::type_operators::IsLess">IsLess</a><<a class="type" href="consts/type.U256.html" title="type cipher::consts::U256">U256</a>>,
|
|
<a class="type" href="../typenum/operator_aliases/type.Le.html" title="type typenum::operator_aliases::Le">Le</a><T::<a class="associatedtype" href="trait.BlockSizeUser.html#associatedtype.BlockSize" title="type cipher::BlockSizeUser::BlockSize">BlockSize</a>, <a class="type" href="consts/type.U256.html" title="type cipher::consts::U256">U256</a>>: <a class="trait" href="../typenum/marker_traits/trait.NonZero.html" title="trait typenum::marker_traits::NonZero">NonZero</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.new-1" class="method trait-impl"><a class="src rightside" href="../src/cipher/stream_wrapper.rs.html#213-219">Source</a><a href="#method.new-1" class="anchor">§</a><h4 class="code-header">fn <a href="trait.KeyInit.html#tymethod.new" class="fn">new</a>(key: &<a class="type" href="type.Key.html" title="type cipher::Key">Key</a><Self>) -> Self</h4></section></summary><div class='docblock'>Create new value from fixed size key.</div></details><details class="toggle method-toggle" open><summary><section id="method.new_from_slice" class="method trait-impl"><a class="src rightside" href="../src/crypto_common/lib.rs.html#129">Source</a><a href="#method.new_from_slice" class="anchor">§</a><h4 class="code-header">fn <a href="trait.KeyInit.html#method.new_from_slice" class="fn">new_from_slice</a>(key: &[<a class="primitive" href="https://doc.rust-lang.org/1.94.0/core/primitive.u8.html">u8</a>]) -> <a class="enum" href="https://doc.rust-lang.org/1.94.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><Self, <a class="struct" href="struct.InvalidLength.html" title="struct cipher::InvalidLength">InvalidLength</a>></h4></section></summary><div class='docblock'>Create new value from variable size key.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-KeyIvInit-for-StreamCipherCoreWrapper%3CT%3E" class="impl"><a class="src rightside" href="../src/cipher/stream_wrapper.rs.html#192-205">Source</a><a href="#impl-KeyIvInit-for-StreamCipherCoreWrapper%3CT%3E" class="anchor">§</a><h3 class="code-header">impl<T: <a class="trait" href="trait.KeyIvInit.html" title="trait cipher::KeyIvInit">KeyIvInit</a> + <a class="trait" href="trait.BlockSizeUser.html" title="trait cipher::BlockSizeUser">BlockSizeUser</a>> <a class="trait" href="trait.KeyIvInit.html" title="trait cipher::KeyIvInit">KeyIvInit</a> for <a class="struct" href="struct.StreamCipherCoreWrapper.html" title="struct cipher::StreamCipherCoreWrapper">StreamCipherCoreWrapper</a><T><div class="where">where
|
|
T::<a class="associatedtype" href="trait.BlockSizeUser.html#associatedtype.BlockSize" title="type cipher::BlockSizeUser::BlockSize">BlockSize</a>: <a class="trait" href="../typenum/type_operators/trait.IsLess.html" title="trait typenum::type_operators::IsLess">IsLess</a><<a class="type" href="consts/type.U256.html" title="type cipher::consts::U256">U256</a>>,
|
|
<a class="type" href="../typenum/operator_aliases/type.Le.html" title="type typenum::operator_aliases::Le">Le</a><T::<a class="associatedtype" href="trait.BlockSizeUser.html#associatedtype.BlockSize" title="type cipher::BlockSizeUser::BlockSize">BlockSize</a>, <a class="type" href="consts/type.U256.html" title="type cipher::consts::U256">U256</a>>: <a class="trait" href="../typenum/marker_traits/trait.NonZero.html" title="trait typenum::marker_traits::NonZero">NonZero</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.new" class="method trait-impl"><a class="src rightside" href="../src/cipher/stream_wrapper.rs.html#198-204">Source</a><a href="#method.new" class="anchor">§</a><h4 class="code-header">fn <a href="trait.KeyIvInit.html#tymethod.new" class="fn">new</a>(key: &<a class="type" href="type.Key.html" title="type cipher::Key">Key</a><Self>, iv: &<a class="type" href="type.Iv.html" title="type cipher::Iv">Iv</a><Self>) -> Self</h4></section></summary><div class='docblock'>Create new value from fixed length key and nonce.</div></details><details class="toggle method-toggle" open><summary><section id="method.new_from_slices" class="method trait-impl"><a class="src rightside" href="../src/crypto_common/lib.rs.html#155">Source</a><a href="#method.new_from_slices" class="anchor">§</a><h4 class="code-header">fn <a href="trait.KeyIvInit.html#method.new_from_slices" class="fn">new_from_slices</a>(key: &[<a class="primitive" href="https://doc.rust-lang.org/1.94.0/core/primitive.u8.html">u8</a>], iv: &[<a class="primitive" href="https://doc.rust-lang.org/1.94.0/core/primitive.u8.html">u8</a>]) -> <a class="enum" href="https://doc.rust-lang.org/1.94.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><Self, <a class="struct" href="struct.InvalidLength.html" title="struct cipher::InvalidLength">InvalidLength</a>></h4></section></summary><div class='docblock'>Create new value from variable length key and nonce.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-KeySizeUser-for-StreamCipherCoreWrapper%3CT%3E" class="impl"><a class="src rightside" href="../src/cipher/stream_wrapper.rs.html#176-182">Source</a><a href="#impl-KeySizeUser-for-StreamCipherCoreWrapper%3CT%3E" class="anchor">§</a><h3 class="code-header">impl<T: <a class="trait" href="trait.KeySizeUser.html" title="trait cipher::KeySizeUser">KeySizeUser</a> + <a class="trait" href="trait.BlockSizeUser.html" title="trait cipher::BlockSizeUser">BlockSizeUser</a>> <a class="trait" href="trait.KeySizeUser.html" title="trait cipher::KeySizeUser">KeySizeUser</a> for <a class="struct" href="struct.StreamCipherCoreWrapper.html" title="struct cipher::StreamCipherCoreWrapper">StreamCipherCoreWrapper</a><T><div class="where">where
|
|
T::<a class="associatedtype" href="trait.BlockSizeUser.html#associatedtype.BlockSize" title="type cipher::BlockSizeUser::BlockSize">BlockSize</a>: <a class="trait" href="../typenum/type_operators/trait.IsLess.html" title="trait typenum::type_operators::IsLess">IsLess</a><<a class="type" href="consts/type.U256.html" title="type cipher::consts::U256">U256</a>>,
|
|
<a class="type" href="../typenum/operator_aliases/type.Le.html" title="type typenum::operator_aliases::Le">Le</a><T::<a class="associatedtype" href="trait.BlockSizeUser.html#associatedtype.BlockSize" title="type cipher::BlockSizeUser::BlockSize">BlockSize</a>, <a class="type" href="consts/type.U256.html" title="type cipher::consts::U256">U256</a>>: <a class="trait" href="../typenum/marker_traits/trait.NonZero.html" title="trait typenum::marker_traits::NonZero">NonZero</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.KeySize" class="associatedtype trait-impl"><a class="src rightside" href="../src/cipher/stream_wrapper.rs.html#181">Source</a><a href="#associatedtype.KeySize" class="anchor">§</a><h4 class="code-header">type <a href="trait.KeySizeUser.html#associatedtype.KeySize" class="associatedtype">KeySize</a> = <T as <a class="trait" href="trait.KeySizeUser.html" title="trait cipher::KeySizeUser">KeySizeUser</a>>::<a class="associatedtype" href="trait.KeySizeUser.html#associatedtype.KeySize" title="type cipher::KeySizeUser::KeySize">KeySize</a></h4></section></summary><div class='docblock'>Key size in bytes.</div></details><details class="toggle method-toggle" open><summary><section id="method.key_size" class="method trait-impl"><a class="src rightside" href="../src/crypto_common/lib.rs.html#85">Source</a><a href="#method.key_size" class="anchor">§</a><h4 class="code-header">fn <a href="trait.KeySizeUser.html#method.key_size" class="fn">key_size</a>() -> <a class="primitive" href="https://doc.rust-lang.org/1.94.0/core/primitive.usize.html">usize</a></h4></section></summary><div class='docblock'>Return key size in bytes.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-StreamCipher-for-StreamCipherCoreWrapper%3CT%3E" class="impl"><a class="src rightside" href="../src/cipher/stream_wrapper.rs.html#109-147">Source</a><a href="#impl-StreamCipher-for-StreamCipherCoreWrapper%3CT%3E" class="anchor">§</a><h3 class="code-header">impl<T: <a class="trait" href="trait.StreamCipherCore.html" title="trait cipher::StreamCipherCore">StreamCipherCore</a>> <a class="trait" href="trait.StreamCipher.html" title="trait cipher::StreamCipher">StreamCipher</a> for <a class="struct" href="struct.StreamCipherCoreWrapper.html" title="struct cipher::StreamCipherCoreWrapper">StreamCipherCoreWrapper</a><T><div class="where">where
|
|
T::<a class="associatedtype" href="trait.BlockSizeUser.html#associatedtype.BlockSize" title="type cipher::BlockSizeUser::BlockSize">BlockSize</a>: <a class="trait" href="../typenum/type_operators/trait.IsLess.html" title="trait typenum::type_operators::IsLess">IsLess</a><<a class="type" href="consts/type.U256.html" title="type cipher::consts::U256">U256</a>>,
|
|
<a class="type" href="../typenum/operator_aliases/type.Le.html" title="type typenum::operator_aliases::Le">Le</a><T::<a class="associatedtype" href="trait.BlockSizeUser.html#associatedtype.BlockSize" title="type cipher::BlockSizeUser::BlockSize">BlockSize</a>, <a class="type" href="consts/type.U256.html" title="type cipher::consts::U256">U256</a>>: <a class="trait" href="../typenum/marker_traits/trait.NonZero.html" title="trait typenum::marker_traits::NonZero">NonZero</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.try_apply_keystream_inout" class="method trait-impl"><a class="src rightside" href="../src/cipher/stream_wrapper.rs.html#115-146">Source</a><a href="#method.try_apply_keystream_inout" class="anchor">§</a><h4 class="code-header">fn <a href="trait.StreamCipher.html#tymethod.try_apply_keystream_inout" class="fn">try_apply_keystream_inout</a>(
|
|
&mut self,
|
|
data: <a class="struct" href="../inout/inout_buf/struct.InOutBuf.html" title="struct inout::inout_buf::InOutBuf">InOutBuf</a><'_, '_, <a class="primitive" href="https://doc.rust-lang.org/1.94.0/core/primitive.u8.html">u8</a>>,
|
|
) -> <a class="enum" href="https://doc.rust-lang.org/1.94.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/1.94.0/core/primitive.unit.html">()</a>, <a class="struct" href="struct.StreamCipherError.html" title="struct cipher::StreamCipherError">StreamCipherError</a>></h4></section></summary><div class='docblock'>Apply keystream to <code>inout</code> data. <a href="trait.StreamCipher.html#tymethod.try_apply_keystream_inout">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.try_apply_keystream" class="method trait-impl"><a class="src rightside" href="../src/cipher/stream.rs.html#93-95">Source</a><a href="#method.try_apply_keystream" class="anchor">§</a><h4 class="code-header">fn <a href="trait.StreamCipher.html#method.try_apply_keystream" class="fn">try_apply_keystream</a>(
|
|
&mut self,
|
|
buf: &mut [<a class="primitive" href="https://doc.rust-lang.org/1.94.0/core/primitive.u8.html">u8</a>],
|
|
) -> <a class="enum" href="https://doc.rust-lang.org/1.94.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/1.94.0/core/primitive.unit.html">()</a>, <a class="struct" href="struct.StreamCipherError.html" title="struct cipher::StreamCipherError">StreamCipherError</a>></h4></section></summary><div class='docblock'>Apply keystream to data behind <code>buf</code>. <a href="trait.StreamCipher.html#method.try_apply_keystream">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.apply_keystream_inout" class="method trait-impl"><a class="src rightside" href="../src/cipher/stream.rs.html#106-108">Source</a><a href="#method.apply_keystream_inout" class="anchor">§</a><h4 class="code-header">fn <a href="trait.StreamCipher.html#method.apply_keystream_inout" class="fn">apply_keystream_inout</a>(&mut self, buf: <a class="struct" href="../inout/inout_buf/struct.InOutBuf.html" title="struct inout::inout_buf::InOutBuf">InOutBuf</a><'_, '_, <a class="primitive" href="https://doc.rust-lang.org/1.94.0/core/primitive.u8.html">u8</a>>)</h4></section></summary><div class='docblock'>Apply keystream to <code>inout</code> data. <a href="trait.StreamCipher.html#method.apply_keystream_inout">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.apply_keystream" class="method trait-impl"><a class="src rightside" href="../src/cipher/stream.rs.html#119-121">Source</a><a href="#method.apply_keystream" class="anchor">§</a><h4 class="code-header">fn <a href="trait.StreamCipher.html#method.apply_keystream" class="fn">apply_keystream</a>(&mut self, buf: &mut [<a class="primitive" href="https://doc.rust-lang.org/1.94.0/core/primitive.u8.html">u8</a>])</h4></section></summary><div class='docblock'>Apply keystream to data in-place. <a href="trait.StreamCipher.html#method.apply_keystream">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.apply_keystream_b2b" class="method trait-impl"><a class="src rightside" href="../src/cipher/stream.rs.html#132-140">Source</a><a href="#method.apply_keystream_b2b" class="anchor">§</a><h4 class="code-header">fn <a href="trait.StreamCipher.html#method.apply_keystream_b2b" class="fn">apply_keystream_b2b</a>(
|
|
&mut self,
|
|
input: &[<a class="primitive" href="https://doc.rust-lang.org/1.94.0/core/primitive.u8.html">u8</a>],
|
|
output: &mut [<a class="primitive" href="https://doc.rust-lang.org/1.94.0/core/primitive.u8.html">u8</a>],
|
|
) -> <a class="enum" href="https://doc.rust-lang.org/1.94.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/1.94.0/core/primitive.unit.html">()</a>, <a class="struct" href="struct.StreamCipherError.html" title="struct cipher::StreamCipherError">StreamCipherError</a>></h4></section></summary><div class='docblock'>Apply keystream to data buffer-to-buffer. <a href="trait.StreamCipher.html#method.apply_keystream_b2b">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-StreamCipherSeek-for-StreamCipherCoreWrapper%3CT%3E" class="impl"><a class="src rightside" href="../src/cipher/stream_wrapper.rs.html#149-169">Source</a><a href="#impl-StreamCipherSeek-for-StreamCipherCoreWrapper%3CT%3E" class="anchor">§</a><h3 class="code-header">impl<T: <a class="trait" href="trait.StreamCipherSeekCore.html" title="trait cipher::StreamCipherSeekCore">StreamCipherSeekCore</a>> <a class="trait" href="trait.StreamCipherSeek.html" title="trait cipher::StreamCipherSeek">StreamCipherSeek</a> for <a class="struct" href="struct.StreamCipherCoreWrapper.html" title="struct cipher::StreamCipherCoreWrapper">StreamCipherCoreWrapper</a><T><div class="where">where
|
|
T::<a class="associatedtype" href="trait.BlockSizeUser.html#associatedtype.BlockSize" title="type cipher::BlockSizeUser::BlockSize">BlockSize</a>: <a class="trait" href="../typenum/type_operators/trait.IsLess.html" title="trait typenum::type_operators::IsLess">IsLess</a><<a class="type" href="consts/type.U256.html" title="type cipher::consts::U256">U256</a>>,
|
|
<a class="type" href="../typenum/operator_aliases/type.Le.html" title="type typenum::operator_aliases::Le">Le</a><T::<a class="associatedtype" href="trait.BlockSizeUser.html#associatedtype.BlockSize" title="type cipher::BlockSizeUser::BlockSize">BlockSize</a>, <a class="type" href="consts/type.U256.html" title="type cipher::consts::U256">U256</a>>: <a class="trait" href="../typenum/marker_traits/trait.NonZero.html" title="trait typenum::marker_traits::NonZero">NonZero</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.try_current_pos" class="method trait-impl"><a class="src rightside" href="../src/cipher/stream_wrapper.rs.html#154-157">Source</a><a href="#method.try_current_pos" class="anchor">§</a><h4 class="code-header">fn <a href="trait.StreamCipherSeek.html#tymethod.try_current_pos" class="fn">try_current_pos</a><SN: <a class="trait" href="trait.SeekNum.html" title="trait cipher::SeekNum">SeekNum</a>>(&self) -> <a class="enum" href="https://doc.rust-lang.org/1.94.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><SN, <a class="struct" href="struct.OverflowError.html" title="struct cipher::OverflowError">OverflowError</a>></h4></section></summary><div class='docblock'>Try to get current keystream position <a href="trait.StreamCipherSeek.html#tymethod.try_current_pos">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.try_seek" class="method trait-impl"><a class="src rightside" href="../src/cipher/stream_wrapper.rs.html#159-168">Source</a><a href="#method.try_seek" class="anchor">§</a><h4 class="code-header">fn <a href="trait.StreamCipherSeek.html#tymethod.try_seek" class="fn">try_seek</a><SN: <a class="trait" href="trait.SeekNum.html" title="trait cipher::SeekNum">SeekNum</a>>(
|
|
&mut self,
|
|
new_pos: SN,
|
|
) -> <a class="enum" href="https://doc.rust-lang.org/1.94.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/1.94.0/core/primitive.unit.html">()</a>, <a class="struct" href="struct.StreamCipherError.html" title="struct cipher::StreamCipherError">StreamCipherError</a>></h4></section></summary><div class='docblock'>Try to seek to the given position <a href="trait.StreamCipherSeek.html#tymethod.try_seek">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.current_pos" class="method trait-impl"><a class="src rightside" href="../src/cipher/stream.rs.html#164-166">Source</a><a href="#method.current_pos" class="anchor">§</a><h4 class="code-header">fn <a href="trait.StreamCipherSeek.html#method.current_pos" class="fn">current_pos</a><T: <a class="trait" href="trait.SeekNum.html" title="trait cipher::SeekNum">SeekNum</a>>(&self) -> T</h4></section></summary><div class='docblock'>Get current keystream position <a href="trait.StreamCipherSeek.html#method.current_pos">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.seek" class="method trait-impl"><a class="src rightside" href="../src/cipher/stream.rs.html#172-174">Source</a><a href="#method.seek" class="anchor">§</a><h4 class="code-header">fn <a href="trait.StreamCipherSeek.html#method.seek" class="fn">seek</a><T: <a class="trait" href="trait.SeekNum.html" title="trait cipher::SeekNum">SeekNum</a>>(&mut self, pos: T)</h4></section></summary><div class='docblock'>Seek to the given position <a href="trait.StreamCipherSeek.html#method.seek">Read more</a></div></details></div></details><section id="impl-ZeroizeOnDrop-for-StreamCipherCoreWrapper%3CT%3E" class="impl"><a class="src rightside" href="../src/cipher/stream_wrapper.rs.html#236-242">Source</a><a href="#impl-ZeroizeOnDrop-for-StreamCipherCoreWrapper%3CT%3E" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="../zeroize/trait.ZeroizeOnDrop.html" title="trait zeroize::ZeroizeOnDrop">ZeroizeOnDrop</a> for <a class="struct" href="struct.StreamCipherCoreWrapper.html" title="struct cipher::StreamCipherCoreWrapper">StreamCipherCoreWrapper</a><T><div class="where">where
|
|
T: <a class="trait" href="trait.BlockSizeUser.html" title="trait cipher::BlockSizeUser">BlockSizeUser</a> + <a class="trait" href="../zeroize/trait.ZeroizeOnDrop.html" title="trait zeroize::ZeroizeOnDrop">ZeroizeOnDrop</a>,
|
|
T::<a class="associatedtype" href="trait.BlockSizeUser.html#associatedtype.BlockSize" title="type cipher::BlockSizeUser::BlockSize">BlockSize</a>: <a class="trait" href="../typenum/type_operators/trait.IsLess.html" title="trait typenum::type_operators::IsLess">IsLess</a><<a class="type" href="consts/type.U256.html" title="type cipher::consts::U256">U256</a>>,
|
|
<a class="type" href="../typenum/operator_aliases/type.Le.html" title="type typenum::operator_aliases::Le">Le</a><T::<a class="associatedtype" href="trait.BlockSizeUser.html#associatedtype.BlockSize" title="type cipher::BlockSizeUser::BlockSize">BlockSize</a>, <a class="type" href="consts/type.U256.html" title="type cipher::consts::U256">U256</a>>: <a class="trait" href="../typenum/marker_traits/trait.NonZero.html" title="trait typenum::marker_traits::NonZero">NonZero</a>,</div></h3><span class="item-info"><div class="stab portability">Available on <strong>crate feature <code>zeroize</code></strong> only.</div></span></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-StreamCipherCoreWrapper%3CT%3E" class="impl"><a href="#impl-Freeze-for-StreamCipherCoreWrapper%3CT%3E" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.94.0/core/marker/trait.Freeze.html" title="trait core::marker::Freeze">Freeze</a> for <a class="struct" href="struct.StreamCipherCoreWrapper.html" title="struct cipher::StreamCipherCoreWrapper">StreamCipherCoreWrapper</a><T><div class="where">where
|
|
T: <a class="trait" href="https://doc.rust-lang.org/1.94.0/core/marker/trait.Freeze.html" title="trait core::marker::Freeze">Freeze</a>,
|
|
<<T as <a class="trait" href="trait.BlockSizeUser.html" title="trait cipher::BlockSizeUser">BlockSizeUser</a>>::<a class="associatedtype" href="trait.BlockSizeUser.html#associatedtype.BlockSize" title="type cipher::BlockSizeUser::BlockSize">BlockSize</a> as <a class="trait" href="trait.ArrayLength.html" title="trait cipher::ArrayLength">ArrayLength</a><<a class="primitive" href="https://doc.rust-lang.org/1.94.0/core/primitive.u8.html">u8</a>>>::<a class="associatedtype" href="trait.ArrayLength.html#associatedtype.ArrayType" title="type cipher::ArrayLength::ArrayType">ArrayType</a>: <a class="trait" href="https://doc.rust-lang.org/1.94.0/core/marker/trait.Freeze.html" title="trait core::marker::Freeze">Freeze</a>,</div></h3></section><section id="impl-RefUnwindSafe-for-StreamCipherCoreWrapper%3CT%3E" class="impl"><a href="#impl-RefUnwindSafe-for-StreamCipherCoreWrapper%3CT%3E" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.94.0/core/panic/unwind_safe/trait.RefUnwindSafe.html" title="trait core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a> for <a class="struct" href="struct.StreamCipherCoreWrapper.html" title="struct cipher::StreamCipherCoreWrapper">StreamCipherCoreWrapper</a><T><div class="where">where
|
|
T: <a class="trait" href="https://doc.rust-lang.org/1.94.0/core/panic/unwind_safe/trait.RefUnwindSafe.html" title="trait core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>,
|
|
<<T as <a class="trait" href="trait.BlockSizeUser.html" title="trait cipher::BlockSizeUser">BlockSizeUser</a>>::<a class="associatedtype" href="trait.BlockSizeUser.html#associatedtype.BlockSize" title="type cipher::BlockSizeUser::BlockSize">BlockSize</a> as <a class="trait" href="trait.ArrayLength.html" title="trait cipher::ArrayLength">ArrayLength</a><<a class="primitive" href="https://doc.rust-lang.org/1.94.0/core/primitive.u8.html">u8</a>>>::<a class="associatedtype" href="trait.ArrayLength.html#associatedtype.ArrayType" title="type cipher::ArrayLength::ArrayType">ArrayType</a>: <a class="trait" href="https://doc.rust-lang.org/1.94.0/core/panic/unwind_safe/trait.RefUnwindSafe.html" title="trait core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>,</div></h3></section><section id="impl-Send-for-StreamCipherCoreWrapper%3CT%3E" class="impl"><a href="#impl-Send-for-StreamCipherCoreWrapper%3CT%3E" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.94.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> for <a class="struct" href="struct.StreamCipherCoreWrapper.html" title="struct cipher::StreamCipherCoreWrapper">StreamCipherCoreWrapper</a><T><div class="where">where
|
|
T: <a class="trait" href="https://doc.rust-lang.org/1.94.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a>,</div></h3></section><section id="impl-Sync-for-StreamCipherCoreWrapper%3CT%3E" class="impl"><a href="#impl-Sync-for-StreamCipherCoreWrapper%3CT%3E" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.94.0/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> for <a class="struct" href="struct.StreamCipherCoreWrapper.html" title="struct cipher::StreamCipherCoreWrapper">StreamCipherCoreWrapper</a><T><div class="where">where
|
|
T: <a class="trait" href="https://doc.rust-lang.org/1.94.0/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a>,</div></h3></section><section id="impl-Unpin-for-StreamCipherCoreWrapper%3CT%3E" class="impl"><a href="#impl-Unpin-for-StreamCipherCoreWrapper%3CT%3E" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.94.0/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> for <a class="struct" href="struct.StreamCipherCoreWrapper.html" title="struct cipher::StreamCipherCoreWrapper">StreamCipherCoreWrapper</a><T><div class="where">where
|
|
T: <a class="trait" href="https://doc.rust-lang.org/1.94.0/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a>,
|
|
<<T as <a class="trait" href="trait.BlockSizeUser.html" title="trait cipher::BlockSizeUser">BlockSizeUser</a>>::<a class="associatedtype" href="trait.BlockSizeUser.html#associatedtype.BlockSize" title="type cipher::BlockSizeUser::BlockSize">BlockSize</a> as <a class="trait" href="trait.ArrayLength.html" title="trait cipher::ArrayLength">ArrayLength</a><<a class="primitive" href="https://doc.rust-lang.org/1.94.0/core/primitive.u8.html">u8</a>>>::<a class="associatedtype" href="trait.ArrayLength.html#associatedtype.ArrayType" title="type cipher::ArrayLength::ArrayType">ArrayType</a>: <a class="trait" href="https://doc.rust-lang.org/1.94.0/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a>,</div></h3></section><section id="impl-UnwindSafe-for-StreamCipherCoreWrapper%3CT%3E" class="impl"><a href="#impl-UnwindSafe-for-StreamCipherCoreWrapper%3CT%3E" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.94.0/core/panic/unwind_safe/trait.UnwindSafe.html" title="trait core::panic::unwind_safe::UnwindSafe">UnwindSafe</a> for <a class="struct" href="struct.StreamCipherCoreWrapper.html" title="struct cipher::StreamCipherCoreWrapper">StreamCipherCoreWrapper</a><T><div class="where">where
|
|
T: <a class="trait" href="https://doc.rust-lang.org/1.94.0/core/panic/unwind_safe/trait.UnwindSafe.html" title="trait core::panic::unwind_safe::UnwindSafe">UnwindSafe</a>,
|
|
<<T as <a class="trait" href="trait.BlockSizeUser.html" title="trait cipher::BlockSizeUser">BlockSizeUser</a>>::<a class="associatedtype" href="trait.BlockSizeUser.html#associatedtype.BlockSize" title="type cipher::BlockSizeUser::BlockSize">BlockSize</a> as <a class="trait" href="trait.ArrayLength.html" title="trait cipher::ArrayLength">ArrayLength</a><<a class="primitive" href="https://doc.rust-lang.org/1.94.0/core/primitive.u8.html">u8</a>>>::<a class="associatedtype" href="trait.ArrayLength.html#associatedtype.ArrayType" title="type cipher::ArrayLength::ArrayType">ArrayType</a>: <a class="trait" href="https://doc.rust-lang.org/1.94.0/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.94.0/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.94.0/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.94.0/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.94.0/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.94.0/core/any/trait.Any.html#tymethod.type_id" class="fn">type_id</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/1.94.0/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.94.0/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.94.0/src/core/borrow.rs.html#212">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.94.0/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.94.0/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.94.0/src/core/borrow.rs.html#214">Source</a><a href="#method.borrow" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.94.0/core/borrow/trait.Borrow.html#tymethod.borrow" class="fn">borrow</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/1.94.0/core/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.94.0/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.94.0/src/core/borrow.rs.html#221">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.94.0/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.94.0/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.94.0/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.94.0/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.94.0/core/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.94.0/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.94.0/src/core/clone.rs.html#547">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.94.0/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.94.0/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.94.0/src/core/clone.rs.html#549">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.94.0/core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit" class="fn">clone_to_uninit</a>(&self, dest: <a class="primitive" href="https://doc.rust-lang.org/1.94.0/core/primitive.pointer.html">*mut </a><a class="primitive" href="https://doc.rust-lang.org/1.94.0/core/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>dest</code>. <a href="https://doc.rust-lang.org/1.94.0/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.94.0/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<T> <a class="trait" href="https://doc.rust-lang.org/1.94.0/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.94.0/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.94.0/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.94.0/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<T, U> <a class="trait" href="https://doc.rust-lang.org/1.94.0/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.94.0/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.94.0/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.94.0/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.94.0/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-Same-for-T" class="impl"><a class="src rightside" href="../src/typenum/type_operators.rs.html#34">Source</a><a href="#impl-Same-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="../typenum/type_operators/trait.Same.html" title="trait typenum::type_operators::Same">Same</a> for T</h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Output" class="associatedtype trait-impl"><a class="src rightside" href="../src/typenum/type_operators.rs.html#35">Source</a><a href="#associatedtype.Output" class="anchor">§</a><h4 class="code-header">type <a href="../typenum/type_operators/trait.Same.html#associatedtype.Output" class="associatedtype">Output</a> = T</h4></section></summary><div class='docblock'>Should always be <code>Self</code></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.94.0/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<T, U> <a class="trait" href="https://doc.rust-lang.org/1.94.0/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.94.0/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.94.0/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.94.0/core/convert/trait.TryFrom.html#associatedtype.Error" class="associatedtype">Error</a> = <a class="enum" href="https://doc.rust-lang.org/1.94.0/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.94.0/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.94.0/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.94.0/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.94.0/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><U>>::<a class="associatedtype" href="https://doc.rust-lang.org/1.94.0/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.94.0/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<T, U> <a class="trait" href="https://doc.rust-lang.org/1.94.0/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.94.0/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.94.0/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.94.0/core/convert/trait.TryInto.html#associatedtype.Error" class="associatedtype">Error</a> = <U as <a class="trait" href="https://doc.rust-lang.org/1.94.0/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>>::<a class="associatedtype" href="https://doc.rust-lang.org/1.94.0/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.94.0/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.94.0/core/convert/trait.TryInto.html#tymethod.try_into" class="fn">try_into</a>(self) -> <a class="enum" href="https://doc.rust-lang.org/1.94.0/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.94.0/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>>::<a class="associatedtype" href="https://doc.rust-lang.org/1.94.0/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> |