pub(super) struct Aligned130(pub(super) __m256i);Expand description
A 130-bit integer aligned across five 26-bit limbs.
The top three 32-bit words of the underlying 256-bit vector are ignored.
Tuple Fields§
§0: __m256iImplementations§
Source§impl Aligned130
impl Aligned130
Sourcepub(super) unsafe fn from_block(block: &Block) -> Self
Available with target feature avx2 only.
pub(super) unsafe fn from_block(block: &Block) -> Self
avx2 only.Aligns a 16-byte Poly1305 block at 26-bit boundaries within 32-bit words, and sets the high bit.
Sourcepub(super) unsafe fn from_partial_block(block: &Block) -> Self
Available with target feature avx2 only.
pub(super) unsafe fn from_partial_block(block: &Block) -> Self
avx2 only.Aligns a partial Poly1305 block at 26-bit boundaries within 32-bit words.
Assumes that the high bit is already correctly set for the partial block.
Trait Implementations§
Source§impl Add<Aligned130> for AdditionKey
impl Add<Aligned130> for AdditionKey
Source§fn add(self, x: Aligned130) -> IntegerTag
fn add(self, x: Aligned130) -> IntegerTag
Computes x + k mod 2^128
Source§type Output = IntegerTag
type Output = IntegerTag
The resulting type after applying the
+ operator.Source§impl Add<Aligned130> for Aligned2x130
impl Add<Aligned130> for Aligned2x130
Source§fn add(self, other: Aligned130) -> Aligned2x130
fn add(self, other: Aligned130) -> Aligned2x130
Adds other into the lower integer of self.
Source§type Output = Aligned2x130
type Output = Aligned2x130
The resulting type after applying the
+ operator.Source§impl Add for Aligned130
impl Add for Aligned130
Source§type Output = Aligned130
type Output = Aligned130
The resulting type after applying the
+ operator.Source§fn add(self, other: Aligned130) -> Aligned130
fn add(self, other: Aligned130) -> Aligned130
Performs the
+ operation. Read moreSource§impl Clone for Aligned130
impl Clone for Aligned130
Source§fn clone(&self) -> Aligned130
fn clone(&self) -> Aligned130
Returns a duplicate of the value. Read more
1.0.0 · 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 Aligned130
impl Debug for Aligned130
Source§impl Display for Aligned130
impl Display for Aligned130
Source§impl From<Aligned130> for PrecomputedMultiplier
impl From<Aligned130> for PrecomputedMultiplier
Source§fn from(r: Aligned130) -> Self
fn from(r: Aligned130) -> Self
Converts to this type from the input type.
Source§impl Mul<PrecomputedMultiplier> for Aligned130
impl Mul<PrecomputedMultiplier> for Aligned130
Source§fn mul(self, other: PrecomputedMultiplier) -> Unreduced130
fn mul(self, other: PrecomputedMultiplier) -> Unreduced130
Multiplies 2 values using lazy reduction.
Context switches from 32 bit to 64 bit.
Source§type Output = Unreduced130
type Output = Unreduced130
The resulting type after applying the
* operator.impl Copy for Aligned130
Auto Trait Implementations§
impl Freeze for Aligned130
impl RefUnwindSafe for Aligned130
impl Send for Aligned130
impl Sync for Aligned130
impl Unpin for Aligned130
impl UnwindSafe for Aligned130
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