diff options
author | Erwin Nindl <nine@wirdorange.org> | 2007-12-24 17:05:26 +0000 |
---|---|---|
committer | Erwin Nindl <nine@wirdorange.org> | 2007-12-24 17:05:26 +0000 |
commit | 00febb25de92b1cd01309cc0f253ed4c3a761b13 (patch) | |
tree | ba0ffffdaf897e96ec2237a03cc523a4025b52f5 /packet.h | |
parent | mesh syncing works now (diff) |
weihnachtlicher checkin
* packet processing now with less memory operations than before
* todo:
* testing
* set cipher / authalgo via commandline
* set key operations for hmac calculation
Diffstat (limited to 'packet.h')
-rw-r--r-- | packet.h | 13 |
1 files changed, 11 insertions, 2 deletions
@@ -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; }; |