pub struct CShake256Hash(/* private fields */);Expand description
Wrapper for cSHAKE256 that implements lib-q-core Hash trait
Implementations§
Source§impl CShake256Hash
impl CShake256Hash
Sourcepub fn new_customized(customization: &[u8]) -> Self
pub fn new_customized(customization: &[u8]) -> Self
Creates a new cSHAKE256 hash instance with customization
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 cSHAKE256 hash instance with function name and customization
Trait Implementations§
Source§impl Clone for CShake256Hash
impl Clone for CShake256Hash
Source§fn clone(&self) -> CShake256Hash
fn clone(&self) -> CShake256Hash
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CShake256Hash
impl Debug for CShake256Hash
Source§impl Default for CShake256Hash
impl Default for CShake256Hash
Auto Trait Implementations§
impl Freeze for CShake256Hash
impl RefUnwindSafe for CShake256Hash
impl Send for CShake256Hash
impl Sync for CShake256Hash
impl Unpin for CShake256Hash
impl UnsafeUnpin for CShake256Hash
impl UnwindSafe for CShake256Hash
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more