crypto_hmac

Function crypto_hmac 

Source
pub fn crypto_hmac(
    alg: TpmAlgId,
    key: &[u8],
    data_chunks: &[&[u8]],
) -> Result<Vec<u8>, CryptoError>
Expand description

Computes an HMAC digest over a series of data chunks.

ยงErrors

Returns a CryptoError if the key is invalid or the algorithm is unsupported.