pub fn secret_key_from_slice<P: MlKemParams>(
bytes: &[u8],
) -> Result<P::SecretKeyBytes, KyberLibError>Expand description
Validate a borrowed byte slice and copy it into the parameter-set’s
concrete SecretKeyBytes buffer.
§Errors
KyberLibError::InvalidLength if
bytes.len() != P::SECRET_KEY_BYTES.