summaryrefslogtreecommitdiff
path: root/cypher.cpp
diff options
context:
space:
mode:
authorErwin Nindl <nine@wirdorange.org>2007-06-22 15:27:40 +0000
committerErwin Nindl <nine@wirdorange.org>2007-06-22 15:27:40 +0000
commit8ed8d6c21dffcb4202fdd592138f15cbc80355ea (patch)
tree0092058aba6de10350f5c33835084c964e5832f4 /cypher.cpp
parentadded libsrtp to svn (diff)
added srtp/crypto/*.o to makefile
Diffstat (limited to 'cypher.cpp')
-rw-r--r--cypher.cpp13
1 files changed, 12 insertions, 1 deletions
diff --git a/cypher.cpp b/cypher.cpp
index 58b433f..909b229 100644
--- a/cypher.cpp
+++ b/cypher.cpp
@@ -34,6 +34,10 @@
#include "cypher.h"
+extern "C" {
+#include "srtp/crypto/include/cipher.h"
+}
+
void Cypher::cypher(Buffer& buf)
{
Buffer stream = getBitStream(buf.getLength());
@@ -57,4 +61,11 @@ Buffer NullCypher::getBitStream(u_int32_t length)
buf[i] = 0;
return buf;
}
-
+
+Buffer AesIcmCypher::getBitStream(u_int32_t length)
+{
+ Buffer buf(length);
+ return buf;
+}
+
+