Struct hacspec_sha3::RoundConstants
source · [−]Expand description
Fixed length byte array.
Tuple Fields
0: [u64; 24]
Implementations
sourceimpl RoundConstants
impl RoundConstants
sourceimpl RoundConstants
impl RoundConstants
pub fn from_slice<A: SeqTrait<u64>>(input: &A, start: usize, len: usize) -> Self
pub fn concat<A: SeqTrait<u64>>(&self, next: &A) -> Seq<u64>
pub fn from_slice_range<A: SeqTrait<u64>>(input: &A, r: Range<usize>) -> Self
pub fn slice(&self, start_out: usize, len: usize) -> Seq<u64>
pub fn slice_range(&self, r: Range<usize>) -> Seq<u64>
pub fn num_chunks(&self, chunk_size: usize) -> usize
pub fn get_chunk_len(&self, chunk_size: usize, chunk_number: usize) -> usize
pub fn get_chunk(
&self,
chunk_size: usize,
chunk_number: usize
) -> (usize, Seq<u64>)
pub fn set_chunk<A: SeqTrait<u64>>(
self,
chunk_size: usize,
chunk_number: usize,
input: &A
) -> Self
sourceimpl RoundConstants
impl RoundConstants
sourceimpl RoundConstants
impl RoundConstants
sourcepub fn from_hex(s: &str) -> RoundConstants
pub fn from_hex(s: &str) -> RoundConstants
Read hex string to Bytes.
sourceimpl RoundConstants
impl RoundConstants
pub fn into_le_bytes(self) -> Seq<u8>
Trait Implementations
sourceimpl Add<RoundConstants> for RoundConstants
impl Add<RoundConstants> for RoundConstants
Warning: wraps on overflow.
type Output = RoundConstants
type Output = RoundConstants
The resulting type after applying the +
operator.
sourcefn add(self, rhs: RoundConstants) -> RoundConstants
fn add(self, rhs: RoundConstants) -> RoundConstants
Performs the +
operation. Read more
sourceimpl BitAnd<RoundConstants> for RoundConstants
impl BitAnd<RoundConstants> for RoundConstants
Bit-wise and operation on the coefficients.
sourceimpl BitOr<RoundConstants> for RoundConstants
impl BitOr<RoundConstants> for RoundConstants
Bit-wise or operation on the coefficients.
sourceimpl BitXor<RoundConstants> for RoundConstants
impl BitXor<RoundConstants> for RoundConstants
Bit-wise xor operation on the coefficients.
sourceimpl Clone for RoundConstants
impl Clone for RoundConstants
sourcefn clone(&self) -> RoundConstants
fn clone(&self) -> RoundConstants
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for RoundConstants
impl Debug for RoundConstants
sourceimpl Default for RoundConstants
impl Default for RoundConstants
sourceimpl Div<RoundConstants> for RoundConstants
impl Div<RoundConstants> for RoundConstants
Warning: panics on division by 0.
type Output = RoundConstants
type Output = RoundConstants
The resulting type after applying the /
operator.
sourcefn div(self, rhs: RoundConstants) -> RoundConstants
fn div(self, rhs: RoundConstants) -> RoundConstants
Performs the /
operation. Read more
sourceimpl Index<RangeFull> for RoundConstants
impl Index<RangeFull> for RoundConstants
sourceimpl Index<i32> for RoundConstants
impl Index<i32> for RoundConstants
sourceimpl Index<u32> for RoundConstants
impl Index<u32> for RoundConstants
sourceimpl Index<u8> for RoundConstants
impl Index<u8> for RoundConstants
sourceimpl Index<usize> for RoundConstants
impl Index<usize> for RoundConstants
sourceimpl IndexMut<i32> for RoundConstants
impl IndexMut<i32> for RoundConstants
sourceimpl IndexMut<u32> for RoundConstants
impl IndexMut<u32> for RoundConstants
sourceimpl IndexMut<u8> for RoundConstants
impl IndexMut<u8> for RoundConstants
sourceimpl IndexMut<usize> for RoundConstants
impl IndexMut<usize> for RoundConstants
sourceimpl ModNumeric for RoundConstants
impl ModNumeric for RoundConstants
sourcefn mul_mod(self, rhs: Self, n: Self) -> Self
fn mul_mod(self, rhs: Self, n: Self) -> Self
(self * rhs) % n
(coefficient-wise)
Note that the multiplication is wrapping.
sourcefn pow_mod(self, exp: Self, n: Self) -> Self
fn pow_mod(self, exp: Self, n: Self) -> Self
(self ^ exp) % n
(coefficient-wise)
Note that the exponentiation is wrapping.
sourcefn signed_modulo(self, n: Self) -> Self
fn signed_modulo(self, n: Self) -> Self
self % n
(coefficient-wise)
sourceimpl Mul<RoundConstants> for RoundConstants
impl Mul<RoundConstants> for RoundConstants
Warning: wraps on overflow.
type Output = RoundConstants
type Output = RoundConstants
The resulting type after applying the *
operator.
sourcefn mul(self, rhs: RoundConstants) -> RoundConstants
fn mul(self, rhs: RoundConstants) -> RoundConstants
Performs the *
operation. Read more
sourceimpl Not for RoundConstants
impl Not for RoundConstants
Bit-wise not operation on the coefficients.
sourceimpl Numeric for RoundConstants
impl Numeric for RoundConstants
fn equal(self, _other: Self) -> bool
fn greater_than(self, _other: Self) -> bool
fn greater_than_or_equal(self, _other: Self) -> bool
fn less_than(self, _other: Self) -> bool
fn less_than_or_equal(self, _other: Self) -> bool
fn not_equal_bm(self, _other: Self) -> Self
fn equal_bm(self, _other: Self) -> Self
fn greater_than_bm(self, _other: Self) -> Self
fn greater_than_or_equal_bm(self, _other: Self) -> Self
fn less_than_bm(self, _other: Self) -> Self
fn less_than_or_equal_bm(self, _other: Self) -> Self
sourceimpl Ord for RoundConstants
impl Ord for RoundConstants
sourceimpl PartialEq<RoundConstants> for RoundConstants
impl PartialEq<RoundConstants> for RoundConstants
sourceimpl PartialOrd<RoundConstants> for RoundConstants
impl PartialOrd<RoundConstants> for RoundConstants
sourcefn partial_cmp(&self, other: &Self) -> Option<Ordering>
fn partial_cmp(&self, other: &Self) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
sourceimpl SeqTrait<u64> for RoundConstants
impl SeqTrait<u64> for RoundConstants
fn create(x: usize) -> Self
fn len(&self) -> usize
fn iter(&self) -> Iter<'_, u64>
sourcefn update_slice<A: SeqTrait<u64>>(
self,
start_out: usize,
v: &A,
start_in: usize,
len: usize
) -> Self
fn update_slice<A: SeqTrait<u64>>(
self,
start_out: usize,
v: &A,
start_in: usize,
len: usize
) -> Self
Update this sequence with l
elements of v
, starting at start_in
,
at start_out
. Read more
sourceimpl Shl<usize> for RoundConstants
impl Shl<usize> for RoundConstants
Unimplemented
sourceimpl Shr<usize> for RoundConstants
impl Shr<usize> for RoundConstants
Unimplemented
sourceimpl Sub<RoundConstants> for RoundConstants
impl Sub<RoundConstants> for RoundConstants
Warning: wraps on underflow.
type Output = RoundConstants
type Output = RoundConstants
The resulting type after applying the -
operator.
sourcefn sub(self, rhs: RoundConstants) -> RoundConstants
fn sub(self, rhs: RoundConstants) -> RoundConstants
Performs the -
operation. Read more
impl Copy for RoundConstants
impl Eq for RoundConstants
impl NumericCopy for RoundConstants
Auto Trait Implementations
impl RefUnwindSafe for RoundConstants
impl Send for RoundConstants
impl Sync for RoundConstants
impl Unpin for RoundConstants
impl UnwindSafe for RoundConstants
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more