From c9d7ff16d6f0c2e52f148ea6ec415e4370f7f7fd Mon Sep 17 00:00:00 2001 From: Max Lv Date: Mon, 6 Feb 2017 17:26:58 +0800 Subject: [PATCH] Fix a typo --- src/aead.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/aead.c b/src/aead.c index 0ee6872d..d23b37cd 100644 --- a/src/aead.c +++ b/src/aead.c @@ -727,7 +727,7 @@ aead_key_init(int method, const char *pass, const char *key) cipher->key_len = crypto_parse_key(key, cipher->key, supported_aead_ciphers_key_size[method]); else - cipher->key_len = crypto_derive_key(key, cipher->key, + cipher->key_len = crypto_derive_key(pass, cipher->key, supported_aead_ciphers_key_size[method]); if (cipher->key_len == 0) {