wolf_crypto::buf

Trait GenericIv

source
pub trait GenericIv {
    type Size: IvSize;

    // Required method
    fn as_slice(&self) -> &[u8] ;
}
Expand description

A trait for types that can be used as generic initialization vectors.

Required Associated Types§

source

type Size: IvSize

The associated size type for this IV.

Required Methods§

source

fn as_slice(&self) -> &[u8]

Returns a reference to the IV as a byte slice.

Implementations on Foreign Types§

source§

impl GenericIv for [u8; 12]

source§

type Size = U12

source§

fn as_slice(&self) -> &[u8]

source§

impl GenericIv for [u8; 16]

source§

type Size = U16

source§

fn as_slice(&self) -> &[u8]

source§

impl<'r> GenericIv for &'r [u8; 12]

source§

type Size = U12

source§

fn as_slice(&self) -> &[u8]

source§

impl<'r> GenericIv for &'r [u8; 16]

source§

type Size = U16

source§

fn as_slice(&self) -> &[u8]

Implementors§