Struct polyval::Polyval [−][src]
POLYVAL: GHASH-like universal hash over GF(2^128).
Trait Implementations
impl Clone for Polyval
[src]
fn clone(&self) -> Self
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for Polyval
[src]
impl NewUniversalHash for Polyval
[src]
type KeySize = U16
Size of the key for the universal hash function.
fn new(h: &Key) -> Self
[src]
Initialize POLYVAL with the given H
field element
impl UniversalHash for Polyval
[src]
type BlockSize = U16
Size of the inputs to and outputs from the universal hash function
fn update(&mut self, x: &Block)
[src]
Input a field element X
to be authenticated
fn reset(&mut self)
[src]
Reset internal state
fn finalize(self) -> Output<Self>
[src]
Get POLYVAL result (i.e. computed S
field element)
pub fn update_padded(&mut self, data: &[u8])
[src]
pub fn finalize_reset(&mut self) -> Output<Self>
[src]
pub fn verify(
self,
other: &GenericArray<u8, Self::BlockSize>
) -> Result<(), Error>
[src]
self,
other: &GenericArray<u8, Self::BlockSize>
) -> Result<(), Error>
Auto Trait Implementations
impl RefUnwindSafe for Polyval
impl Send for Polyval
impl Sync for Polyval
impl Unpin for Polyval
impl UnwindSafe for Polyval
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
[src]
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,