Struct DoublePipeline

Source
pub struct DoublePipeline<Prf, K, R = U32>
where Prf: Mac,
{ /* private fields */ }

Trait Implementations§

Source§

impl<Prf, K, R> Default for DoublePipeline<Prf, K, R>
where Prf: Mac,

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl<Prf, K, R> Kbkdf<Prf, K, R> for DoublePipeline<Prf, K, R>
where Prf: Mac + KeyInit, K: KeySizeUser, K::KeySize: ArraySize + Mul<U8>, <K::KeySize as Mul<U8>>::Output: Unsigned, Prf::OutputSize: ArraySize + Mul<U8>, <Prf::OutputSize as Mul<U8>>::Output: Unsigned, R: R,

Source§

const DOUBLE_PIPELINE: bool = true

Source§

fn derive( &self, params: Params<'_, '_, '_>, ) -> Result<Array<u8, K::KeySize>, Error>

Derives key from kin and other parameters.
Source§

fn input_iv(&self, _ki: &mut Option<Array<u8, Prf::OutputSize>>)

Input the IV in the PRF
Source§

const FEEDBACK_KI: bool = false

Whether the KI should be reinjected every round.

Auto Trait Implementations§

§

impl<Prf, K, R> Freeze for DoublePipeline<Prf, K, R>

§

impl<Prf, K, R> RefUnwindSafe for DoublePipeline<Prf, K, R>

§

impl<Prf, K, R> Send for DoublePipeline<Prf, K, R>
where Prf: Send, K: Send, R: Send,

§

impl<Prf, K, R> Sync for DoublePipeline<Prf, K, R>
where Prf: Sync, K: Sync, R: Sync,

§

impl<Prf, K, R> Unpin for DoublePipeline<Prf, K, R>
where Prf: Unpin, K: Unpin, R: Unpin,

§

impl<Prf, K, R> UnwindSafe for DoublePipeline<Prf, K, R>
where Prf: UnwindSafe, K: UnwindSafe, R: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.