summaryrefslogtreecommitdiff
path: root/packet.h
diff options
context:
space:
mode:
authorErwin Nindl <nine@wirdorange.org>2007-12-08 17:57:31 +0000
committerErwin Nindl <nine@wirdorange.org>2007-12-08 17:57:31 +0000
commit62d31032352f8d857f31d89872fd42b98501e1c3 (patch)
tree8caaa3f1ff16281e45ff0d3c9357708b5efbe74c /packet.h
parentremoved doxygen folders from svn (diff)
* added AuthTag class
* bugfixes in keyderivation, aesicmcypher * removed authtag functins temorarly from anytun.cpp
Diffstat (limited to 'packet.h')
-rw-r--r--packet.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/packet.h b/packet.h
index b0dff5b..813b694 100644
--- a/packet.h
+++ b/packet.h
@@ -33,6 +33,7 @@
#include "datatypes.h"
#include "buffer.h"
+#include "authTag.h"
class Packet : public Buffer
{
@@ -58,8 +59,8 @@ public:
bool hasAuthTag() const;
Packet& withAuthTag(bool b);
- auth_tag_t getAuthTag() const;
- Packet& addAuthTag(auth_tag_t auth_tag);
+ AuthTag getAuthTag() const;
+ Packet& addAuthTag(AuthTag auth_tag);
Packet& removeAuthTag();
private:
@@ -71,6 +72,8 @@ private:
bool has_header_;
bool has_payload_type_;
bool has_auth_tag_;
+ // FIXXMEE: remove hardcoded authtag-size
+ static const u_int32_t AUTHTAG_SIZE = 10;
};
#endif