Skip to main content

generate_key

Function generate_key 

Source
pub async fn generate_key(
    variant: AesVariant,
    options: KwKeyOptions,
) -> Result<KwKey, Error>
Expand description

Generate a fresh random key of the given AES variant. Fails with error.unsupported if this implementation does not serve the variant.