Struct rabbit::RabbitKeyOnlyCore
source · [−]pub struct RabbitKeyOnlyCore { /* private fields */ }
Expand description
Core state of the Rabbit stream cipher initialized only with key.
Trait Implementations
sourceimpl BlockSizeUser for RabbitKeyOnlyCore
impl BlockSizeUser for RabbitKeyOnlyCore
sourcefn block_size() -> usize
fn block_size() -> usize
Return block size in bytes.
sourceimpl Clone for RabbitKeyOnlyCore
impl Clone for RabbitKeyOnlyCore
sourcefn clone(&self) -> RabbitKeyOnlyCore
fn clone(&self) -> RabbitKeyOnlyCore
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl KeyInit for RabbitKeyOnlyCore
impl KeyInit for RabbitKeyOnlyCore
sourcefn new_from_slice(key: &[u8]) -> Result<Self, InvalidLength>
fn new_from_slice(key: &[u8]) -> Result<Self, InvalidLength>
Create new value from variable size key.
sourceimpl KeySizeUser for RabbitKeyOnlyCore
impl KeySizeUser for RabbitKeyOnlyCore
sourceimpl StreamCipherCore for RabbitKeyOnlyCore
impl StreamCipherCore for RabbitKeyOnlyCore
sourcefn remaining_blocks(&self) -> Option<usize>
fn remaining_blocks(&self) -> Option<usize>
Return number of remaining blocks before cipher wraps around. Read more
sourcefn process_with_backend(
&mut self,
f: impl StreamClosure<BlockSize = Self::BlockSize>
)
fn process_with_backend(
&mut self,
f: impl StreamClosure<BlockSize = Self::BlockSize>
)
Process data using backend provided to the rank-2 closure.
sourcefn write_keystream_block(
&mut self,
block: &mut GenericArray<u8, Self::BlockSize>
)
fn write_keystream_block(
&mut self,
block: &mut GenericArray<u8, Self::BlockSize>
)
Write keystream block. Read more
sourcefn write_keystream_blocks(
&mut self,
blocks: &mut [GenericArray<u8, Self::BlockSize>]
)
fn write_keystream_blocks(
&mut self,
blocks: &mut [GenericArray<u8, Self::BlockSize>]
)
Write keystream blocks. Read more
sourcefn apply_keystream_block_inout(
&mut self,
block: InOut<'_, '_, GenericArray<u8, Self::BlockSize>>
)
fn apply_keystream_block_inout(
&mut self,
block: InOut<'_, '_, GenericArray<u8, Self::BlockSize>>
)
Apply keystream block. Read more
sourcefn apply_keystream_blocks(
&mut self,
blocks: &mut [GenericArray<u8, Self::BlockSize>]
)
fn apply_keystream_blocks(
&mut self,
blocks: &mut [GenericArray<u8, Self::BlockSize>]
)
Apply keystream blocks. Read more
sourcefn apply_keystream_blocks_inout(
&mut self,
blocks: InOutBuf<'_, '_, GenericArray<u8, Self::BlockSize>>
)
fn apply_keystream_blocks_inout(
&mut self,
blocks: InOutBuf<'_, '_, GenericArray<u8, Self::BlockSize>>
)
Apply keystream blocks. Read more
sourcefn try_apply_keystream_partial(
self,
buf: InOutBuf<'_, '_, u8>
) -> Result<(), StreamCipherError>
fn try_apply_keystream_partial(
self,
buf: InOutBuf<'_, '_, u8>
) -> Result<(), StreamCipherError>
Try to apply keystream to data not divided into blocks. Read more
sourcefn apply_keystream_partial(self, buf: InOutBuf<'_, '_, u8>)
fn apply_keystream_partial(self, buf: InOutBuf<'_, '_, u8>)
Try to apply keystream to data not divided into blocks. Read more
impl ZeroizeOnDrop for RabbitKeyOnlyCore
zeroize
only.Auto Trait Implementations
impl RefUnwindSafe for RabbitKeyOnlyCore
impl Send for RabbitKeyOnlyCore
impl Sync for RabbitKeyOnlyCore
impl Unpin for RabbitKeyOnlyCore
impl UnwindSafe for RabbitKeyOnlyCore
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more