Skip to main content

generate_key

Function generate_key 

Source
pub async fn generate_key(
    length: Option<u32>,
    options: MacKeyOptions,
) -> Result<Mac, Error>
Expand description

Generate a fresh random HMAC-SHA-1 key. length is the key length in bits; None means SHA-1’s block size, 512 bits.