diff options
author | Christian Pointner <equinox@anytun.org> | 2009-01-15 01:45:45 +0000 |
---|---|---|
committer | Christian Pointner <equinox@anytun.org> | 2009-01-15 01:45:45 +0000 |
commit | dfcaa991d38e5a513b6c56aa497891e788390b60 (patch) | |
tree | c74551752509a54e4ac74a2f573e675388a82d64 /src/keyDerivation.h | |
parent | small cleanup (diff) |
add multi kd support
Diffstat (limited to 'src/keyDerivation.h')
-rw-r--r-- | src/keyDerivation.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/keyDerivation.h b/src/keyDerivation.h index 6b20983..621bb36 100644 --- a/src/keyDerivation.h +++ b/src/keyDerivation.h @@ -156,10 +156,10 @@ private: } #ifndef USE_SSL_CRYPTO - gcry_cipher_hd_t handle_; + gcry_cipher_hd_t handle_[2]; #else - AES_KEY aes_key_; - u_int8_t ecount_buf_[AES_BLOCK_SIZE]; + AES_KEY aes_key_[2]; + u_int8_t ecount_buf_[2][AES_BLOCK_SIZE]; #endif union __attribute__((__packed__)) key_derivation_aesctr_ctr_union { @@ -184,7 +184,7 @@ private: u_int16_t zero_; } params_; #endif - } ctr_; + } ctr_[2]; }; #endif |