summaryrefslogtreecommitdiff
path: root/src/cipher.c
diff options
context:
space:
mode:
authorChristian Pointner <equinox@anytun.org>2014-06-21 19:46:49 +0000
committerChristian Pointner <equinox@anytun.org>2014-06-21 19:46:49 +0000
commit49b279e8d329a21cbc120186dd25852f302c02a3 (patch)
tree6b26bf687a2e6fb22f57db12b7b14ea70a91a210 /src/cipher.c
parentimplemented auth tag with nettle (not tested yet) (diff)
implemented key derivation in nettle
fixed key length for cipher
Diffstat (limited to 'src/cipher.c')
-rw-r--r--src/cipher.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cipher.c b/src/cipher.c
index bf9ac25..9afd84a 100644
--- a/src/cipher.c
+++ b/src/cipher.c
@@ -303,7 +303,7 @@ int32_t cipher_aesctr_crypt(cipher_t* c, key_derivation_t* kd, key_derivation_di
return -1;
}
#elif defined(USE_NETTLE)
- aes_set_encrypt_key(&params->ctx_, c->key_length_, c->key_.buf_);
+ aes_set_encrypt_key(&params->ctx_, c->key_.length_, c->key_.buf_);
#else // USE_GCRYPT is the default
gcry_error_t err = gcry_cipher_setkey(params->handle_, c->key_.buf_, c->key_.length_);
if(err) {