[][src]Function paseto::v1::get_nonce::calculate_hashed_nonce

pub fn calculate_hashed_nonce(msg: &[u8], random_nonce: &[u8]) -> Vec<u8>

An implementation of "get_nonce" from the docs in paseto version one.

This function is to ensure that an RNG failure does not result in a nonce-misuse condition that breaks the security of our stream cipher.