diff options
author | Erwin Nindl <nine@wirdorange.org> | 2007-07-19 12:14:26 +0000 |
---|---|---|
committer | Erwin Nindl <nine@wirdorange.org> | 2007-07-19 12:14:26 +0000 |
commit | cb69b4b11be233cb17efcafecfe2ce280b178259 (patch) | |
tree | 7ae255fd8d18d765dd244137fc42075488e575e4 /cypher.h | |
parent | compiles again, libsrtp now under /usr/local/lib/libsrtp.a (diff) |
* added doc directory
* changed AesIcmCypher::getBitStream
Diffstat (limited to 'cypher.h')
-rw-r--r-- | cypher.h | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -31,6 +31,7 @@ #ifndef _CYPHER_H_ #define _CYPHER_H_ +#include "datatypes.h" #include "buffer.h" @@ -40,26 +41,26 @@ public: Cypher() {}; virtual ~Cypher() {}; - void cypher(Buffer& buf); + void cypher(Buffer& buf, seq_nr_t seq_nr, sender_id_t sender_id); protected: void exor(Buffer& buf, const Buffer& bit_stream); - virtual Buffer getBitStream(u_int32_t length) = 0; + virtual Buffer getBitStream(u_int32_t length, seq_nr_t seq_nr, sender_id_t sender_id) = 0; }; class NullCypher : public Cypher { protected: - Buffer getBitStream(u_int32_t length); + Buffer getBitStream(u_int32_t length, seq_nr_t seq_nr, sender_id_t sender_id); }; class AesIcmCypher : public Cypher { public: - void cypher(Buffer& buf); + void cypher(Buffer& buf, seq_nr_t seq_nr, sender_id_t sender_id); protected: - Buffer getBitStream(u_int32_t length); + Buffer getBitStream(u_int32_t length, seq_nr_t seq_nr, sender_id_t sender_id); }; #endif |