pub enum Ctr128BE {}
Expand description
128-bit big endian counter flavor.
Trait Implementations§
source§impl<B> CtrFlavor<B> for Ctr128BEwhere
B: ArrayLength<u8> + PartialDiv<U16>,
PartialQuot<B, U16>: ArrayLength<u128>,
impl<B> CtrFlavor<B> for Ctr128BEwhere B: ArrayLength<u8> + PartialDiv<U16>, PartialQuot<B, U16>: ArrayLength<u128>,
§type CtrNonce = CtrNonce128<<B as PartialDiv<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>>>::Output>
type CtrNonce = CtrNonce128<<B as PartialDiv<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>>>::Output>
Inner representation of nonce.
source§fn remaining(cn: &Self::CtrNonce) -> Option<usize>
fn remaining(cn: &Self::CtrNonce) -> Option<usize>
Return number of remaining blocks. Read more
source§fn current_block(cn: &Self::CtrNonce) -> GenericArray<u8, B>
fn current_block(cn: &Self::CtrNonce) -> GenericArray<u8, B>
Generate block for given
nonce
and current counter value.source§fn next_block(cn: &mut Self::CtrNonce) -> GenericArray<u8, B>
fn next_block(cn: &mut Self::CtrNonce) -> GenericArray<u8, B>
Generate block for given
nonce
and current counter value.source§fn from_nonce(block: &GenericArray<u8, B>) -> Self::CtrNonce
fn from_nonce(block: &GenericArray<u8, B>) -> Self::CtrNonce
Initialize from bytes.
source§fn as_backend(cn: &Self::CtrNonce) -> Self::Backend
fn as_backend(cn: &Self::CtrNonce) -> Self::Backend
Convert to a backend value
source§fn set_from_backend(cn: &mut Self::CtrNonce, v: Self::Backend)
fn set_from_backend(cn: &mut Self::CtrNonce, v: Self::Backend)
Convert from a backend value
Auto Trait Implementations§
impl RefUnwindSafe for Ctr128BE
impl Send for Ctr128BE
impl Sync for Ctr128BE
impl Unpin for Ctr128BE
impl UnwindSafe for Ctr128BE
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