key_to_cipher

Function key_to_cipher 

Source
pub fn key_to_cipher(
    key_type: &impl ToKeyType,
    unwrapped_key: &UnwrappedKey,
) -> Result<Arc<dyn Cipher>, Status>
Expand description

Helper function to obtain a Cipher for a key. Uses key to interpret the meaning of the UnwrappedKey blob and then creates a cipher instance from the blob, returning it.