From 32e2d97a2412606bb5bb857a9022648aff8595cf Mon Sep 17 00:00:00 2001 From: quininer kel Date: Tue, 23 May 2017 17:30:43 +0800 Subject: [PATCH] fix key-drive-argon2 feature --- src/crypto/cipher.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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),