[][src]Struct tink_prf::subtle::AesCmacPrf

pub struct AesCmacPrf { /* fields omitted */ }

AesCmacPrf is a type that can be used to compute several CMACs with the same key material.

Implementations

impl AesCmacPrf[src]

pub fn new(key: &[u8]) -> Result<AesCmacPrf, TinkError>[src]

Create a new AesCmacPrf object and initialize it with the correct key material.

Trait Implementations

impl Clone for AesCmacPrf[src]

impl Prf for AesCmacPrf[src]

fn compute_prf(
    &self,
    data: &[u8],
    output_length: usize
) -> Result<Vec<u8>, TinkError>
[src]

Compute the AES-CMAC for the given key and data, returning output_length bytes. The timing of this function will only depend on data.len(), and not leak any additional information about the key or the data.

Auto Trait Implementations

impl RefUnwindSafe for AesCmacPrf

impl Send for AesCmacPrf

impl Sync for AesCmacPrf

impl Unpin for AesCmacPrf

impl UnwindSafe for AesCmacPrf

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> PrfBoxClone for T where
    T: 'static + Prf + Clone
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,