pub struct U128Word(pub [U8; 16]);
Expand description
Fixed length byte array.
Tuple Fields§
§0: [U8; 16]
Implementations§
Source§impl U128Word
impl U128Word
pub fn from_slice<A: SeqTrait<U8>>(input: &A, start: usize, len: usize) -> Self
pub fn concat<A: SeqTrait<U8>>(&self, next: &A) -> Seq<U8>
pub fn from_slice_range<A: SeqTrait<U8>>(input: &A, r: Range<usize>) -> Self
pub fn slice(&self, start_out: usize, len: usize) -> Seq<U8>
pub fn slice_range(&self, r: Range<usize>) -> Seq<U8>
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<U8>)
pub fn set_chunk<A: SeqTrait<U8>>( self, chunk_size: usize, chunk_number: usize, input: &A, ) -> Self
Source§impl U128Word
Warning: declassifies secret integer types.
impl U128Word
Warning: declassifies secret integer types.
pub fn declassify_eq(&self, other: &Self) -> bool
Source§impl U128Word
impl U128Word
pub fn to_be_bytes(&self) -> Seq<U8>
pub fn to_le_bytes(&self) -> Seq<U8>
Source§impl U128Word
impl U128Word
pub fn from_public_slice(v: &[u8]) -> U128Word
pub fn to_public_array(&self) -> [u8; 16]
Source§impl U128Word
impl U128Word
pub fn to_be_U32s(&self) -> Seq<U32>
pub fn to_le_U32s(&self) -> Seq<U32>
pub fn to_be_U64s(&self) -> Seq<U64>
pub fn to_le_U64s(&self) -> Seq<U64>
pub fn to_U128s_be(&self) -> Seq<U128>
pub fn to_U128s_le(&self) -> Seq<U128>
pub fn to_hex(&self) -> String
Trait Implementations§
Source§impl ModNumeric for U128Word
impl ModNumeric for U128Word
Source§fn signed_modulo(self, _n: Self) -> Self
fn signed_modulo(self, _n: Self) -> Self
self % n
that always returns a positive integerSource§impl Numeric for U128Word
impl Numeric for U128Word
fn wrap_add(self, rhs: Self) -> Self
fn wrap_sub(self, rhs: Self) -> Self
fn wrap_mul(self, rhs: Self) -> Self
fn wrap_div(self, _rhs: Self) -> Self
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
Source§impl SeqTrait<U8> for U128Word
impl SeqTrait<U8> for U128Word
fn create(x: usize) -> Self
fn len(&self) -> usize
fn iter(&self) -> Iter<'_, U8>
Source§fn update_slice<A: SeqTrait<U8>>(
self,
start_out: usize,
v: &A,
start_in: usize,
len: usize,
) -> Self
fn update_slice<A: SeqTrait<U8>>( self, start_out: usize, v: &A, start_in: usize, len: usize, ) -> Self
fn update_start<A: SeqTrait<U8>>(self, v: &A) -> Self
impl Copy for U128Word
impl NumericCopy for U128Word
Auto Trait Implementations§
impl Freeze for U128Word
impl RefUnwindSafe for U128Word
impl Send for U128Word
impl Sync for U128Word
impl Unpin for U128Word
impl UnwindSafe for U128Word
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