diff options
author | Christian Pointner <equinox@anytun.org> | 2008-02-16 14:34:53 +0000 |
---|---|---|
committer | Christian Pointner <equinox@anytun.org> | 2008-02-16 14:34:53 +0000 |
commit | c15f428cef737e093cafa78f806c6ffc0ccee60c (patch) | |
tree | 313ad89dbaec390106ba9fd4ca5429ee348f87b0 /keyDerivation.h | |
parent | added fancy output to lua (diff) |
minor changes
code cleanups
Diffstat (limited to 'keyDerivation.h')
-rw-r--r-- | keyDerivation.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/keyDerivation.h b/keyDerivation.h index e313795..88027ed 100644 --- a/keyDerivation.h +++ b/keyDerivation.h @@ -51,12 +51,12 @@ typedef enum { class KeyDerivation { public: - KeyDerivation() : ld_kdr_(-1), salt_(0), cipher_(NULL) {}; + KeyDerivation() : ld_kdr_(-1), master_salt_(0), cipher_(NULL) {}; virtual ~KeyDerivation(); void init(Buffer key, Buffer salt); void setLogKDRate(const u_int8_t ld_rate); - void generate(satp_prf_label label, seq_nr_t seq_nr, Buffer& key, u_int32_t length); + void generate(satp_prf_label label, seq_nr_t seq_nr, Buffer& key); private: void updateKey(); @@ -68,15 +68,15 @@ private: { Lock lock(mutex_); ar & ld_kdr_; - ar & salt_; - ar & key_; + ar & master_salt_; + ar & master_key_; updateKey(); } protected: int8_t ld_kdr_; // ld(key_derivation_rate) - SyncBuffer salt_; - SyncBuffer key_; + SyncBuffer master_salt_; + SyncBuffer master_key_; gcry_cipher_hd_t cipher_; Mutex mutex_; |