From 62d31032352f8d857f31d89872fd42b98501e1c3 Mon Sep 17 00:00:00 2001 From: Erwin Nindl Date: Sat, 8 Dec 2007 17:57:31 +0000 Subject: * added AuthTag class * bugfixes in keyderivation, aesicmcypher * removed authtag functins temorarly from anytun.cpp --- packet.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'packet.h') 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 -- cgit v1.2.3