pub struct SHA256Params;Expand description
The parameters for SHA256.
Trait Implementations§
Source§impl Algorithm for SHA256Params
impl Algorithm for SHA256Params
Source§const ALG_NAME: &'static str = SHA256_NAME
const ALG_NAME: &'static str = SHA256_NAME
String name for the algorithm, used consistently across the library.
Source§const MAX_SECURITY_STRENGTH: SecurityStrength = SecurityStrength::_128bit
const MAX_SECURITY_STRENGTH: SecurityStrength = SecurityStrength::_128bit
Maximum security strength supported by the algorithm.
In other words, this algorithm can produce outputs up to this security strength,
but may produce outputs with lower security strength, for example, if asked to truncate.
Source§impl Clone for SHA256Params
impl Clone for SHA256Params
Source§fn clone(&self) -> SHA256Params
fn clone(&self) -> SHA256Params
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 HashAlgParams for SHA256Params
impl HashAlgParams for SHA256Params
Source§const OUTPUT_LEN: usize = 32
const OUTPUT_LEN: usize = 32
The fixed output length of the hash function.
Auto Trait Implementations§
impl Freeze for SHA256Params
impl RefUnwindSafe for SHA256Params
impl Send for SHA256Params
impl Sync for SHA256Params
impl Unpin for SHA256Params
impl UnsafeUnpin for SHA256Params
impl UnwindSafe for SHA256Params
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