diff options
author | Christian Pointner <equinox@anytun.org> | 2014-06-21 19:46:49 +0000 |
---|---|---|
committer | Christian Pointner <equinox@anytun.org> | 2014-06-21 19:46:49 +0000 |
commit | 49b279e8d329a21cbc120186dd25852f302c02a3 (patch) | |
tree | 6b26bf687a2e6fb22f57db12b7b14ea70a91a210 /src/cipher.c | |
parent | implemented 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.c | 2 |
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(¶ms->ctx_, c->key_length_, c->key_.buf_); + aes_set_encrypt_key(¶ms->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) { |