pub struct Hc256Core { /* private fields */ }
Expand description
The HC-256 stream cipher core
Trait Implementations
sourceimpl AlgorithmName for Hc256Core
impl AlgorithmName for Hc256Core
sourcefn write_alg_name(f: &mut Formatter<'_>) -> Result
fn write_alg_name(f: &mut Formatter<'_>) -> Result
Write algorithm name into f
.
sourceimpl BlockSizeUser for Hc256Core
impl BlockSizeUser for Hc256Core
sourcefn block_size() -> usize
fn block_size() -> usize
Return block size in bytes.
sourceimpl IvSizeUser for Hc256Core
impl IvSizeUser for Hc256Core
sourceimpl KeySizeUser for Hc256Core
impl KeySizeUser for Hc256Core
sourceimpl StreamCipherCore for Hc256Core
impl StreamCipherCore for Hc256Core
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 Hc256Core
This is supported on crate feature
zeroize
only.Auto Trait Implementations
impl RefUnwindSafe for Hc256Core
impl Send for Hc256Core
impl Sync for Hc256Core
impl Unpin for Hc256Core
impl UnwindSafe for Hc256Core
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