summaryrefslogtreecommitdiff
path: root/cypher.h
diff options
context:
space:
mode:
authorErwin Nindl <nine@wirdorange.org>2007-07-19 12:14:26 +0000
committerErwin Nindl <nine@wirdorange.org>2007-07-19 12:14:26 +0000
commitcb69b4b11be233cb17efcafecfe2ce280b178259 (patch)
tree7ae255fd8d18d765dd244137fc42075488e575e4 /cypher.h
parentcompiles 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.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/cypher.h b/cypher.h
index 90d5c11..689d230 100644
--- a/cypher.h
+++ b/cypher.h
@@ -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