pub fn create_nonce_buffer(data: &[u8]) -> Result<NonceBuffer, &'static str>
Create a nonce buffer from a slice