diff options
author | Christian Pointner <equinox@anytun.org> | 2009-01-15 17:22:27 +0000 |
---|---|---|
committer | Christian Pointner <equinox@anytun.org> | 2009-01-15 17:22:27 +0000 |
commit | a9de160d67027c5bbbf822335d597516b52fb292 (patch) | |
tree | d119bde5a6e53cb6d9b1f8fb516726a2242bb980 /src/keyDerivation.h | |
parent | fixed NOPACKED (Windows build) (diff) |
added initialized flag to key derivation
Diffstat (limited to 'src/keyDerivation.h')
-rw-r--r-- | src/keyDerivation.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/keyDerivation.h b/src/keyDerivation.h index f977922..5d433ca 100644 --- a/src/keyDerivation.h +++ b/src/keyDerivation.h @@ -67,8 +67,8 @@ typedef struct { class KeyDerivation { public: - KeyDerivation() : ld_kdr_(0), key_length_(0), master_salt_(0), master_key_(0) {}; - KeyDerivation(u_int16_t key_length) : ld_kdr_(0), key_length_(key_length), master_salt_(0), master_key_(0) {}; + KeyDerivation() : is_initialized_(false), ld_kdr_(0), key_length_(0), master_salt_(0), master_key_(0) {}; + KeyDerivation(u_int16_t key_length) : is_initialized_(false), ld_kdr_(0), key_length_(key_length), master_salt_(0), master_key_(0) {}; virtual ~KeyDerivation() {}; void setLogKDRate(const int8_t ld_rate); @@ -94,6 +94,7 @@ protected: updateMasterKey(); } + bool is_initialized_; int8_t ld_kdr_; // ld(key_derivation_rate) u_int16_t key_length_; SyncBuffer master_salt_; |