summaryrefslogtreecommitdiff
path: root/protocols/WhatsApp/src/OpenSSL/rc4.h
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-06-02 18:35:56 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-06-02 18:35:56 +0000
commit11822f442f96b074e5e39bd4cc14d277205a9307 (patch)
tree8257ab929e3f2d5e626f693ca13c90b50aa196f0 /protocols/WhatsApp/src/OpenSSL/rc4.h
parent329ad84fa5b5a813b032f416e959eb2b0bb3582e (diff)
first version of Wassup that compiles
git-svn-id: http://svn.miranda-ng.org/main/trunk@4863 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/WhatsApp/src/OpenSSL/rc4.h')
-rw-r--r--protocols/WhatsApp/src/OpenSSL/rc4.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/protocols/WhatsApp/src/OpenSSL/rc4.h b/protocols/WhatsApp/src/OpenSSL/rc4.h
new file mode 100644
index 0000000000..91376bedd3
--- /dev/null
+++ b/protocols/WhatsApp/src/OpenSSL/rc4.h
@@ -0,0 +1,23 @@
+#ifndef HEADER_RC4_LOCL_H
+#define HEADER_RC4_LOCL_H
+
+typedef int RC4_INT;
+
+typedef struct rc4_key_st
+ {
+ RC4_INT x,y;
+ RC4_INT data[256];
+ } RC4_KEY;
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+void RC4_set_key(RC4_KEY *key, int len, const unsigned char *data);
+void RC4(RC4_KEY *key, unsigned long len, const unsigned char *indata, unsigned char *outdata);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif