pub struct CShake256 { /* private fields */ }Expand description
cSHAKE256 hasher.
Implementations§
Source§impl CShake256
impl CShake256
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 CShake256
impl AlgorithmName for CShake256
Source§impl BlockSizeUser for CShake256
impl BlockSizeUser for CShake256
Source§type BlockSize = <CShake256Core as BlockSizeUser>::BlockSize
type BlockSize = <CShake256Core 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 CShake256
impl CollisionResistance for CShake256
Source§impl CustomizedInit for CShake256
impl CustomizedInit for CShake256
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 CShake256
impl ExtendableOutput for CShake256
Source§type Reader = CShake256Reader
type Reader = CShake256Reader
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 CShake256
impl ExtendableOutputReset for CShake256
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 CShake256
Auto Trait Implementations§
impl Freeze for CShake256
impl RefUnwindSafe for CShake256
impl Send for CShake256
impl Sync for CShake256
impl Unpin for CShake256
impl UnsafeUnpin for CShake256
impl UnwindSafe for CShake256
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.