Struct common_crypto::hmac::Hmac[][src]

pub struct Hmac;

Implementations

impl Hmac[src]

pub fn md5(key: impl AsRef<[u8]>, data: impl AsRef<[u8]>) -> [u8; 16][src]

impl Hmac[src]

pub fn sha1(key: impl AsRef<[u8]>, data: impl AsRef<[u8]>) -> [u8; 20][src]

impl Hmac[src]

pub fn sha224(key: impl AsRef<[u8]>, data: impl AsRef<[u8]>) -> [u8; 28][src]

impl Hmac[src]

pub fn sha256(key: impl AsRef<[u8]>, data: impl AsRef<[u8]>) -> [u8; 32][src]

impl Hmac[src]

pub fn sha384(key: impl AsRef<[u8]>, data: impl AsRef<[u8]>) -> [u8; 48][src]

impl Hmac[src]

pub fn sha512(key: impl AsRef<[u8]>, data: impl AsRef<[u8]>) -> [u8; 64][src]

Auto Trait Implementations

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, 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.