diff --git a/src/crypto/cipher.rs b/src/crypto/cipher.rs index dd0b9a52..19eff2cc 100644 --- a/src/crypto/cipher.rs +++ b/src/crypto/cipher.rs @@ -214,7 +214,7 @@ impl CipherType { /// Extends key to match the required key length #[cfg(feature = "key-derive-argon2")] - pub fn bytes_to_key(&self, key: &[u8]) -> Vec { + pub fn bytes_to_key(&self, key: &[u8]) -> Bytes { match self.category() { CipherCategory::Aead => self.aead_key_derive(key), CipherCategory::Stream => self.classic_bytes_to_key(key),