pub struct CShake128 { /* private fields */ }Expand description
cSHAKE128 hasher.
Implementations§
Source§impl CShake128
impl CShake128
Sourcepub fn new_with_function_name(
function_name: &[u8],
customization: &[u8],
) -> Self
pub fn new_with_function_name( function_name: &[u8], customization: &[u8], ) -> Self
Creates a new cSHAKE instance with the given function name and customization.
Note that the function name is intended for use by NIST and should only be set to values defined by NIST. You probably don’t need to use this function.
Trait Implementations§
Source§impl AlgorithmName for CShake128
impl AlgorithmName for CShake128
Source§impl BlockSizeUser for CShake128
impl BlockSizeUser for CShake128
Source§type BlockSize = <CShake128Core as BlockSizeUser>::BlockSize
type BlockSize = <CShake128Core as BlockSizeUser>::BlockSize
Size of the block in bytes.
Source§fn block_size() -> usize
fn block_size() -> usize
Return block size in bytes.
Source§impl CollisionResistance for CShake128
impl CollisionResistance for CShake128
Source§impl CustomizedInit for CShake128
impl CustomizedInit for CShake128
Source§fn new_customized(customization: &[u8]) -> Self
fn new_customized(customization: &[u8]) -> Self
Create new hasher instance with the given customization string.
Source§impl ExtendableOutput for CShake128
impl ExtendableOutput for CShake128
Source§type Reader = CShake128Reader
type Reader = CShake128Reader
Reader
Source§fn finalize_xof(self) -> Self::Reader
fn finalize_xof(self) -> Self::Reader
Retrieve XOF reader and consume hasher instance.
Source§fn finalize_xof_into(self, out: &mut [u8])
fn finalize_xof_into(self, out: &mut [u8])
Finalize XOF and write result into
out.Source§impl ExtendableOutputReset for CShake128
impl ExtendableOutputReset for CShake128
Source§fn finalize_xof_reset(&mut self) -> Self::Reader
fn finalize_xof_reset(&mut self) -> Self::Reader
Retrieve XOF reader and reset hasher instance state.
Source§fn finalize_xof_reset_into(&mut self, out: &mut [u8])
fn finalize_xof_reset_into(&mut self, out: &mut [u8])
Finalize XOF, write result into
out, and reset the hasher state.impl HashMarker for CShake128
Auto Trait Implementations§
impl Freeze for CShake128
impl RefUnwindSafe for CShake128
impl Send for CShake128
impl Sync for CShake128
impl Unpin for CShake128
impl UnsafeUnpin for CShake128
impl UnwindSafe for CShake128
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> SmallBlockSizeUser for T
impl<T> SmallBlockSizeUser for T
Source§type _BlockSize = <T as BlockSizeUser>::BlockSize
type _BlockSize = <T as BlockSizeUser>::BlockSize
Helper associated type equal to
<Self as BlockSizeUser>::BlockSize.