fn new_from_slice(key: &[u8]) -> Result<Self, InvalidLength> {
        if key.len() != Self::KeySize::to_usize() {
            Err(InvalidLength)
        } else {
            Ok(Self::new(GenericArray::from_slice(key)))
        }
    }
/// Create new value from variable size key.
Create new value from variable size key.
Create new value from variable size key .
fn new_from_slice(key: &[u8]) -> Result<Self, InvalidLength> {
        if key.len() != Self::KeySize::to_usize() {
            Err(InvalidLength)
        } else {
            Ok(Self::new(GenericArray::from_slice(key)))
        }
    }
fn new_from_slice ( key : & [ u8 ] ) -> Result < Self , InvalidLength > { if key . len ( ) != Self :: KeySize :: to_usize ( ) { Err ( InvalidLength ) } else { Ok ( Self :: new ( GenericArray :: from_slice ( key ) ) ) } }
Create new value from variable size key.
Create new value from variable size key .
key
&[u8]
key
&[u8]