pub struct CShake128Hash(/* private fields */);Expand description
Wrapper for cSHAKE128 that implements lib-q-core Hash trait
Implementations§
Source§impl CShake128Hash
impl CShake128Hash
Sourcepub fn new_customized(customization: &[u8]) -> Self
pub fn new_customized(customization: &[u8]) -> Self
Creates a new cSHAKE128 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 cSHAKE128 hash instance with function name and customization
Trait Implementations§
Source§impl Clone for CShake128Hash
impl Clone for CShake128Hash
Source§fn clone(&self) -> CShake128Hash
fn clone(&self) -> CShake128Hash
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 CShake128Hash
impl Debug for CShake128Hash
Source§impl Default for CShake128Hash
impl Default for CShake128Hash
Auto Trait Implementations§
impl Freeze for CShake128Hash
impl RefUnwindSafe for CShake128Hash
impl Send for CShake128Hash
impl Sync for CShake128Hash
impl Unpin for CShake128Hash
impl UnsafeUnpin for CShake128Hash
impl UnwindSafe for CShake128Hash
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