From 00febb25de92b1cd01309cc0f253ed4c3a761b13 Mon Sep 17 00:00:00 2001 From: Erwin Nindl Date: Mon, 24 Dec 2007 17:05:26 +0000 Subject: weihnachtlicher checkin * packet processing now with less memory operations than before * todo: * testing * set cipher / authalgo via commandline * set key operations for hmac calculation --- packet.h | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'packet.h') diff --git a/packet.h b/packet.h index 813b694..72c7b6b 100644 --- a/packet.h +++ b/packet.h @@ -39,7 +39,12 @@ class Packet : public Buffer { public: Packet(); - Packet(u_int32_t length); + + /** + * Packet Constructor + * @param payload_length Payload Length + */ + Packet(u_int32_t payload_length); Packet(const Buffer &src); bool hasHeader() const; @@ -72,7 +77,11 @@ private: bool has_header_; bool has_payload_type_; bool has_auth_tag_; - // FIXXMEE: remove hardcoded authtag-size + + struct HeaderStruct* header_; + payload_type_t* payload_type_; + AuthTag* auth_tag_; + static const u_int32_t AUTHTAG_SIZE = 10; }; -- cgit v1.2.3