summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Pointner <equinox@anytun.org>2009-01-14 15:23:56 +0000
committerChristian Pointner <equinox@anytun.org>2009-01-14 15:23:56 +0000
commitfd505a3d33474c6023a352a8386baa525bb240c8 (patch)
tree73c696f01827b851678abe6908d072b2b2165600
parentsmall cleanup (diff)
small cleanup
-rw-r--r--src/cipher.c4
-rw-r--r--src/cipher.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/cipher.c b/src/cipher.c
index 4bd9eec..3efe26a 100644
--- a/src/cipher.c
+++ b/src/cipher.c
@@ -340,8 +340,8 @@ int32_t cipher_aesctr_crypt(cipher_t* c, key_derivation_t* kd, u_int8_t* in, u_i
return -1;
}
u_int32_t num = 0;
- memset(params->ecount_buf, 0, AES_BLOCK_SIZE);
- AES_ctr128_encrypt(in, out, (ilen < olen) ? ilen : olen, &params->aes_key_, params->ctr_.buf_, params->ecount_buf, &num);
+ memset(params->ecount_buf_, 0, AES_BLOCK_SIZE);
+ AES_ctr128_encrypt(in, out, (ilen < olen) ? ilen : olen, &params->aes_key_, params->ctr_.buf_, params->ecount_buf_, &num);
#endif
return (ilen < olen) ? ilen : olen;
diff --git a/src/cipher.h b/src/cipher.h
index ae2c21d..3ec4980 100644
--- a/src/cipher.h
+++ b/src/cipher.h
@@ -95,7 +95,7 @@ struct cipher_aesctr_param_struct {
gcry_cipher_hd_t handle_;
#else
AES_KEY aes_key_;
- u_int8_t ecount_buf[AES_BLOCK_SIZE];
+ u_int8_t ecount_buf_[AES_BLOCK_SIZE];
#endif
cipher_aesctr_ctr_t ctr_;
};