summaryrefslogtreecommitdiff
path: root/src/keyDerivation.h
diff options
context:
space:
mode:
authorChristian Pointner <equinox@anytun.org>2009-01-15 17:22:27 +0000
committerChristian Pointner <equinox@anytun.org>2009-01-15 17:22:27 +0000
commita9de160d67027c5bbbf822335d597516b52fb292 (patch)
treed119bde5a6e53cb6d9b1f8fb516726a2242bb980 /src/keyDerivation.h
parentfixed NOPACKED (Windows build) (diff)
added initialized flag to key derivation
Diffstat (limited to 'src/keyDerivation.h')
-rw-r--r--src/keyDerivation.h5
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_;