pub(crate) struct ExpandedKey {
h1: FieldElement,
d1: FieldElement,
h2: FieldElement,
d2: FieldElement,
h3: FieldElement,
d3: FieldElement,
h4: FieldElement,
d4: FieldElement,
}Expand description
Precomputed key material for POLYVAL using R/F algorithm
Stores H and D values for each power, where D = swap(H) ⊕ (H0 × P1)
Fields§
§h1: FieldElementH^1 packed as [h1_hi : h1_lo]
d1: FieldElementD^1 = computed from H^1
h2: FieldElementH^2
d2: FieldElementD^2
h3: FieldElementH^3
d3: FieldElementD^3
h4: FieldElementH^4
d4: FieldElementD^4
Trait Implementations§
Source§impl Clone for ExpandedKey
impl Clone for ExpandedKey
Source§fn clone(&self) -> ExpandedKey
fn clone(&self) -> ExpandedKey
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 Default for ExpandedKey
impl Default for ExpandedKey
Source§fn default() -> ExpandedKey
fn default() -> ExpandedKey
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ExpandedKey
impl RefUnwindSafe for ExpandedKey
impl Send for ExpandedKey
impl Sync for ExpandedKey
impl Unpin for ExpandedKey
impl UnsafeUnpin for ExpandedKey
impl UnwindSafe for ExpandedKey
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