diff options
author | mrb0nk500 <b0nk@b0nk.xyz> | 2023-02-28 10:45:56 -0400 |
---|---|---|
committer | mrb0nk500 <b0nk@b0nk.xyz> | 2023-02-28 10:45:56 -0400 |
commit | f6c047795d651962374fcb20d37359c763aeb9c8 (patch) | |
tree | f90b4649b1a4fbaf5cec491462157d8dbc1020c6 /include | |
parent | 9326e63440b08f877302a87afbe1ef82d5cd2c76 (diff) |
PSOV3EncryptionTCP: Add, and fully match `PSOV3EncryptionTCP`
That was way easier than I expected, I thought it'd take a lot longer
than this.
Diffstat (limited to 'include')
-rw-r--r-- | include/pso/PSOV3EncryptionTCP.h | 24 |
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 |