From f6c047795d651962374fcb20d37359c763aeb9c8 Mon Sep 17 00:00:00 2001 From: mrb0nk500 Date: Tue, 28 Feb 2023 10:45:56 -0400 Subject: PSOV3EncryptionTCP: Add, and fully match `PSOV3EncryptionTCP` That was way easier than I expected, I thought it'd take a lot longer than this. --- include/pso/PSOV3EncryptionTCP.h | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 include/pso/PSOV3EncryptionTCP.h (limited to 'include/pso/PSOV3EncryptionTCP.h') 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 +#include +#include +#include +#include +#include + +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 -- cgit v1.2.3-13-gbd6f