Struct blake2b::ParameterBlock
[−]
[src]
pub struct ParameterBlock(pub [u64; 8]);
Methods
impl ParameterBlock
[src]
fn new() -> Self
fn digest_len(&self) -> u8
fn set_digest_len(self, digest_len: u8) -> Self
fn key_len(&self) -> u8
fn set_key_len(self, key_len: u8) -> Self
fn fanout(&self) -> u8
fn set_fanout(self, fanout: u8) -> Self
fn max_depth(&self) -> u8
fn set_max_depth(self, max_depth: u8) -> Self
fn max_leaf_len(&self) -> u32
fn set_max_leaf_len(self, max_leaf_len: u32) -> Self
fn node_offset(&self) -> u64
fn set_node_offset(self, node_offset: u64) -> Self
fn node_depth(&self) -> u8
fn set_node_depth(self, node_depth: u8) -> Self
fn inner_len(&self) -> u8
fn set_inner_len(self, inner_len: u8) -> Self
fn salt(&self) -> &[u8]
fn set_salt(self, salt: &[u8]) -> Self
fn personalization(&self) -> &[u8]
fn set_personalization(self, personalization: &[u8]) -> Self
fn xor_with_iv(self) -> Self
Trait Implementations
impl Copy for ParameterBlock
[src]
impl Clone for ParameterBlock
[src]
fn clone(&self) -> ParameterBlock
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Debug for ParameterBlock
[src]
impl Default for ParameterBlock
[src]
fn default() -> ParameterBlock
Returns the "default value" for a type. Read more
impl Eq for ParameterBlock
[src]
impl Hash for ParameterBlock
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl Ord for ParameterBlock
[src]
fn cmp(&self, __arg_0: &ParameterBlock) -> Ordering
This method returns an Ordering
between self
and other
. Read more
impl PartialEq for ParameterBlock
[src]
fn eq(&self, __arg_0: &ParameterBlock) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &ParameterBlock) -> bool
This method tests for !=
.
impl PartialOrd for ParameterBlock
[src]
fn partial_cmp(&self, __arg_0: &ParameterBlock) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, __arg_0: &ParameterBlock) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, __arg_0: &ParameterBlock) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, __arg_0: &ParameterBlock) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, __arg_0: &ParameterBlock) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl AsRef<[u8]> for ParameterBlock
[src]
fn as_ref(&self) -> &[u8]
Performs the conversion.
impl AsMut<[u8]> for ParameterBlock
[src]
fn as_mut(&mut self) -> &mut [u8]
Performs the conversion.
impl Deref for ParameterBlock
[src]
type Target = [u8]
The resulting type after dereferencing
fn deref(&self) -> &Self::Target
The method called to dereference a value