Skip to main content

ReverseKeySchedule

Struct ReverseKeySchedule 

Source
pub struct ReverseKeySchedule<H, K, KS>
where KS: KeySchedule<H, K>,
{ /* private fields */ }

Implementations§

Source§

impl<H, K, KS> ReverseKeySchedule<H, K, KS>
where KS: KeySchedule<H, K>,

Source

pub fn from(schedule: KS, rounds: usize) -> Self

Trait Implementations§

Source§

impl<H, K, KS> KeySchedule<H, K> for ReverseKeySchedule<H, K, KS>
where KS: KeySchedule<H, K>,

Source§

type State = Vec<H>

Stav obsahuje predem vygenerovane klice a aktualni index.

Source§

fn new_state(&self, master_key: &K) -> Self::State

Ininialize internal state for key schedule function.
Source§

fn next_key(&self, _unused_master_key: &K, state: &mut Self::State) -> H

Generate key for next round and updates internal state

Auto Trait Implementations§

§

impl<H, K, KS> Freeze for ReverseKeySchedule<H, K, KS>
where KS: Freeze,

§

impl<H, K, KS> RefUnwindSafe for ReverseKeySchedule<H, K, KS>

§

impl<H, K, KS> Send for ReverseKeySchedule<H, K, KS>
where KS: Send, H: Send, K: Send,

§

impl<H, K, KS> Sync for ReverseKeySchedule<H, K, KS>
where KS: Sync, H: Sync, K: Sync,

§

impl<H, K, KS> Unpin for ReverseKeySchedule<H, K, KS>
where KS: Unpin, H: Unpin, K: Unpin,

§

impl<H, K, KS> UnwindSafe for ReverseKeySchedule<H, K, KS>
where KS: UnwindSafe, H: UnwindSafe, K: 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, 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.