From 0b7b9d4be886f28440ac2a192fe278267e69e072 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Wed, 14 Jan 2009 15:58:35 +0000 Subject: ported cipher from uanytun to anytun --- src/keyDerivation.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/keyDerivation.h') diff --git a/src/keyDerivation.h b/src/keyDerivation.h index 9e8c7b5..6dd8080 100644 --- a/src/keyDerivation.h +++ b/src/keyDerivation.h @@ -60,7 +60,7 @@ public: void setLogKDRate(const u_int8_t ld_rate); virtual void init(Buffer key, Buffer salt) = 0; - virtual void generate(satp_prf_label label, seq_nr_t seq_nr, Buffer& key) = 0; + virtual bool generate(satp_prf_label label, seq_nr_t seq_nr, Buffer& key) = 0; virtual std::string printType() { return "KeyDerivation"; }; @@ -97,7 +97,7 @@ public: ~NullKeyDerivation() {}; void init(Buffer key, Buffer salt) {}; - void generate(satp_prf_label label, seq_nr_t seq_nr, Buffer& key); + bool generate(satp_prf_label label, seq_nr_t seq_nr, Buffer& key); std::string printType() { return "NullKeyDerivation"; }; @@ -123,7 +123,7 @@ public: ~AesIcmKeyDerivation(); void init(Buffer key, Buffer salt); - void generate(satp_prf_label label, seq_nr_t seq_nr, Buffer& key); + bool generate(satp_prf_label label, seq_nr_t seq_nr, Buffer& key); std::string printType() { return "AesIcmKeyDerivation"; }; -- cgit v1.2.3