From b7d5a122684587672019ef8bbdc4461ed0565f28 Mon Sep 17 00:00:00 2001 From: RD42 <42702181+dashr9230@users.noreply.github.com> Date: Sat, 25 Nov 2023 23:55:55 +0800 Subject: [PATCH] [raknet] Implement DataBlockEncryptor ctor --- raknet/DataBlockEncryptor.cpp | 8 ++++++++ raknet/DataBlockEncryptor.h | 19 +++++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 raknet/DataBlockEncryptor.cpp create mode 100644 raknet/DataBlockEncryptor.h diff --git a/raknet/DataBlockEncryptor.cpp b/raknet/DataBlockEncryptor.cpp new file mode 100644 index 0000000..0d437d9 --- /dev/null +++ b/raknet/DataBlockEncryptor.cpp @@ -0,0 +1,8 @@ +// TODO: Implement DataBlockEncryptor.cpp + +#include "DataBlockEncryptor.h" + +DataBlockEncryptor::DataBlockEncryptor() +{ + keySet = false; +} diff --git a/raknet/DataBlockEncryptor.h b/raknet/DataBlockEncryptor.h new file mode 100644 index 0000000..c15e438 --- /dev/null +++ b/raknet/DataBlockEncryptor.h @@ -0,0 +1,19 @@ +// TODO: Implement DataBlockEncryptor.h + +#ifndef __DATA_BLOCK_ENCRYPTOR_H +#define __DATA_BLOCK_ENCRYPTOR_H + +/// Encrypts and decrypts data blocks. +class DataBlockEncryptor +{ + +public: + + /// Constructor + DataBlockEncryptor(); + +protected: + bool keySet; +}; + +#endif