[][src]Struct arx_kw::AuthTag

pub struct AuthTag(pub [u8; 16]);

The type used as the authentication tag (unencrypted data to be stored alongside encrypted keys) This is the same for all variants at time of writing (a single, static 128 bits), making for a 50% storage overhead for a 256-bit key like those used for ChaCha

The ConstantTimeEq trait is implemented (and re-exported from the subtle crate by this crate) for constant time equality checking of AuthTags

Trait Implementations

impl AsRef<[u8; 16]> for AuthTag[src]

impl Clone for AuthTag[src]

impl ConstantTimeEq for AuthTag[src]

impl Copy for AuthTag[src]

impl Debug for AuthTag[src]

Auto Trait Implementations

impl RefUnwindSafe for AuthTag[src]

impl Send for AuthTag[src]

impl Sync for AuthTag[src]

impl Unpin for AuthTag[src]

impl UnwindSafe for AuthTag[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.