pub(super) struct Aligned2x130 {
v0: Aligned130,
v1: Aligned130,
}Expand description
A pair of Aligned130s.
Fields§
§v0: Aligned130§v1: Aligned130Implementations§
Source§impl Aligned2x130
impl Aligned2x130
Sourcepub(super) unsafe fn from_blocks(src: &[Block; 2]) -> Self
Available with target feature avx2 only.
pub(super) unsafe fn from_blocks(src: &[Block; 2]) -> Self
avx2 only.Aligns two 16-byte Poly1305 blocks at 26-bit boundaries within 32-bit words, and sets the high bit for each block.
§Panics
Panics if src.len() < 32.
Sourcepub(super) fn mul_and_sum(
self,
r1: PrecomputedMultiplier,
r2: PrecomputedMultiplier,
) -> Unreduced130
pub(super) fn mul_and_sum( self, r1: PrecomputedMultiplier, r2: PrecomputedMultiplier, ) -> Unreduced130
Multiplies 2x2 and add both results simultaneously using lazy reduction.
Context switches from 32 bit to 64 bit.
Trait Implementations§
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 Clone for Aligned2x130
impl Clone for Aligned2x130
Source§fn clone(&self) -> Aligned2x130
fn clone(&self) -> Aligned2x130
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 Aligned2x130
impl Debug for Aligned2x130
Auto Trait Implementations§
impl Freeze for Aligned2x130
impl RefUnwindSafe for Aligned2x130
impl Send for Aligned2x130
impl Sync for Aligned2x130
impl Unpin for Aligned2x130
impl UnwindSafe for Aligned2x130
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