Function orion::default::hmac [] [src]

pub fn hmac(secret_key: &[u8], message: &[u8]) -> Vec<u8>

HMAC with SHA512.

Usage example:

use orion::default;
use orion::util;

let key = util::gen_rand_key(64);
let msg = "Some message.".as_bytes();

let hmac = default::hmac(&key, msg);