summaryrefslogtreecommitdiff
path: root/src/keyDerivation.h
diff options
context:
space:
mode:
authorChristian Pointner <equinox@anytun.org>2009-01-14 15:58:35 +0000
committerChristian Pointner <equinox@anytun.org>2009-01-14 15:58:35 +0000
commit0b7b9d4be886f28440ac2a192fe278267e69e072 (patch)
tree6e2a47eab27cc78788cf19f37188468c9c91ad72 /src/keyDerivation.h
parentported uAnytun sequence window to anytun (diff)
ported cipher from uanytun to anytun
Diffstat (limited to 'src/keyDerivation.h')
-rw-r--r--src/keyDerivation.h6
1 files changed, 3 insertions, 3 deletions
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"; };