diff options
Diffstat (limited to 'src/key_derivation.c')
-rw-r--r-- | src/key_derivation.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/key_derivation.c b/src/key_derivation.c index 957cba0..a4b1c9f 100644 --- a/src/key_derivation.c +++ b/src/key_derivation.c @@ -447,9 +447,9 @@ int key_derivation_aesctr_generate(key_derivation_t* kd, key_store_dir_t dir, sa return -1; } u_int32_t num = 0; - memset(params->ecount_buf, 0, AES_BLOCK_SIZE); + memset(params->ecount_buf_, 0, AES_BLOCK_SIZE); memset(key, 0, len); - AES_ctr128_encrypt(key, key, len, ¶ms->aes_key_, params->ctr_.buf_, params->ecount_buf, &num); + AES_ctr128_encrypt(key, key, len, ¶ms->aes_key_, params->ctr_.buf_, params->ecount_buf_, &num); #endif if(!kd->ld_kdr_) |