pub fn create_hash_buffer(data: &[u8]) -> Result<HashBuffer, &'static str>
Create a hash buffer from a slice