Skip to main content

generate_key

Function generate_key 

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

Generate a fresh random HMAC-SHA-1 key. See hmac-sha2.generate-key for the length contract; none means SHA-1’s block size, 512 bits.