pub fn validate_aes_key_size(size_in_bytes: usize) -> Result<(), tink::TinkError> {
    match size_in_bytes {
        16 | 32 => Ok(()),
        _ => Err(format!("invalid AES key size; want 16 or 32, got {}", size_in_bytes).into()),
    }
}
/// Check if the given key size is a valid AES key size.
/// (This is a copy of the function in tink_aead::subtle, to reduce inter-crate deps.)
Check if the given key size is a valid AES key size.
(This is a copy of the function in tink_aead::subtle, to reduce inter-crate deps.)
Check if the given key size is a valid AES key size . ( This is a copy of the function in tink_aead :: subtle to reduce inter - crate deps . )
pub fn validate_aes_key_size(size_in_bytes: usize) -> Result<(), tink::TinkError> {
    match size_in_bytes {
        16 | 32 => Ok(()),
        _ => Err(format!("invalid AES key size; want 16 or 32, got {}", size_in_bytes).into()),
    }
}
pub fn validate_aes_key_size ( size_in_bytes : usize ) -> Result < ( ) , tink :: TinkError > { match size_in_bytes { 16 | 32 => Ok ( ( ) ) , _ => Err ( format ! ( " " size_in_bytes ) . into ( ) ) , } }
Check if the given key size is a valid AES key size.
Check if the given key size is a valid AES key size .
size_in_bytes
usize