summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/pso/PSOV3EncryptionTCP.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/include/pso/PSOV3EncryptionTCP.h b/include/pso/PSOV3EncryptionTCP.h
new file mode 100644
index 0000000..da3208d
--- /dev/null
+++ b/include/pso/PSOV3EncryptionTCP.h
@@ -0,0 +1,24 @@
+#ifndef PSOV3ENCRYPTIONTCP_H
+#define PSOV3ENCRYPTIONTCP_H
+
+#include <global_types.h>
+#include <string.h>
+#include <pso/macros.h>
+#include <pso/protocol.h>
+#include <pso/PSOV3Encryption.h>
+#include <pso/TArray.h>
+
+class PSOV3EncryptionTCP : public PSOV3Encryption {
+public:
+ PSOV3EncryptionTCP();
+ ~PSOV3EncryptionTCP();
+
+ void reset(u32 seed);
+ void encrypt(void *void_data, int size);
+
+ PRIVATE_MEMBER_ACCESSORS(u32, seed);
+private:
+ u32 m_seed;
+};
+
+#endif