pub struct RabbitKeyOnlyCore { /* private fields */ }
Expand description
Core state of the Rabbit stream cipher initialized only with key.
Trait Implementations§
Source§impl BlockSizeUser for RabbitKeyOnlyCore
impl BlockSizeUser for RabbitKeyOnlyCore
Source§impl Clone for RabbitKeyOnlyCore
impl Clone for RabbitKeyOnlyCore
Source§fn clone(&self) -> RabbitKeyOnlyCore
fn clone(&self) -> RabbitKeyOnlyCore
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl KeyInit for RabbitKeyOnlyCore
impl KeyInit for RabbitKeyOnlyCore
Source§fn new_from_slice(key: &[u8]) -> Result<Self, InvalidLength>
fn new_from_slice(key: &[u8]) -> Result<Self, InvalidLength>
Create new value from variable size key.
Source§impl KeySizeUser for RabbitKeyOnlyCore
impl KeySizeUser for RabbitKeyOnlyCore
Source§impl StreamCipherCore for RabbitKeyOnlyCore
impl StreamCipherCore for RabbitKeyOnlyCore
Source§fn remaining_blocks(&self) -> Option<usize>
fn remaining_blocks(&self) -> Option<usize>
Return number of remaining blocks before cipher wraps around. Read more
Source§fn 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.
Source§fn 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
Source§fn 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
Source§fn 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
Source§fn 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
Source§fn 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
Source§fn 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
impl ZeroizeOnDrop for RabbitKeyOnlyCore
Available on crate feature
zeroize
only.Auto Trait Implementations§
impl Freeze for RabbitKeyOnlyCore
impl RefUnwindSafe for RabbitKeyOnlyCore
impl Send for RabbitKeyOnlyCore
impl Sync for RabbitKeyOnlyCore
impl Unpin for RabbitKeyOnlyCore
impl UnwindSafe for RabbitKeyOnlyCore
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more