Feedback

Struct Feedback 

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

Implementations§

Source§

impl<'a, Prf, K, R> Feedback<'a, Prf, K, R>
where Prf: Mac,

Source

pub fn new(iv: Option<&'a Array<u8, Prf::OutputSize>>) -> Self

Trait Implementations§

Source§

impl<'a, Prf, K, R> Kbkdf<Prf, K, R> for Feedback<'a, 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 FEEDBACK_KI: bool = true

Whether the KI should be reinjected every round.
Source§

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

Input the IV in the PRF
Source§

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

Derives key from kin and other parameters.
Source§

const DOUBLE_PIPELINE: bool = false

Auto Trait Implementations§

§

impl<'a, Prf, K, R> Freeze for Feedback<'a, Prf, K, R>

§

impl<'a, Prf, K, R> RefUnwindSafe for Feedback<'a, Prf, K, R>

§

impl<'a, Prf, K, R> Send for Feedback<'a, Prf, K, R>
where Prf: Send, K: Send, R: Send,

§

impl<'a, Prf, K, R> Sync for Feedback<'a, Prf, K, R>
where Prf: Sync, K: Sync, R: Sync,

§

impl<'a, Prf, K, R> Unpin for Feedback<'a, Prf, K, R>
where Prf: Unpin, K: Unpin, R: Unpin,

§

impl<'a, Prf, K, R> UnwindSafe for Feedback<'a, Prf, K, R>

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.