diff options
author | Erwin Nindl <nine@wirdorange.org> | 2007-12-08 17:57:31 +0000 |
---|---|---|
committer | Erwin Nindl <nine@wirdorange.org> | 2007-12-08 17:57:31 +0000 |
commit | 62d31032352f8d857f31d89872fd42b98501e1c3 (patch) | |
tree | 8caaa3f1ff16281e45ff0d3c9357708b5efbe74c /packet.h | |
parent | removed 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.h | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -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 |