summaryrefslogtreecommitdiff
path: root/csgo-loader/csgo-client/Security/Encryption.hpp
diff options
context:
space:
mode:
authorboris <wzn@moneybot.cc>2018-12-20 21:38:04 +1300
committerboris <wzn@moneybot.cc>2018-12-20 21:38:04 +1300
commita5acd4c9a3b24c9d5af3a8f504e5af053fa7fa09 (patch)
tree27bc30d3f35e5daaaa15ee6de066119df8d352c7 /csgo-loader/csgo-client/Security/Encryption.hpp
parent77b52da44b263df4884be2f35f885d8edccbb6fa (diff)
yo is this loss
Diffstat (limited to 'csgo-loader/csgo-client/Security/Encryption.hpp')
-rw-r--r--csgo-loader/csgo-client/Security/Encryption.hpp12
1 files changed, 8 insertions, 4 deletions
diff --git a/csgo-loader/csgo-client/Security/Encryption.hpp b/csgo-loader/csgo-client/Security/Encryption.hpp
index d55608f..b1c49dc 100644
--- a/csgo-loader/csgo-client/Security/Encryption.hpp
+++ b/csgo-loader/csgo-client/Security/Encryption.hpp
@@ -9,9 +9,11 @@ using ByteArray = std::vector<uint8_t>;
#define BLOCK_SIZE 16
-namespace Wrapper {
+namespace Wrapper
+{
// AES256 implementation.
- class Aes256 {
+ class Aes256
+ {
public:
Aes256(const ByteArray& key);
@@ -67,7 +69,8 @@ namespace Wrapper {
};
// Encryption wrapper.
- class Encryption {
+ class Encryption
+ {
ByteArray m_EncryptionKey;
HCRYPTPROV m_CryptProvider;
@@ -82,7 +85,8 @@ namespace Wrapper {
ByteArray Decrypt(ByteArray &Data);
// Exposes the encryption key.
- ByteArray GetKey() {
+ ByteArray GetKey()
+ {
return m_EncryptionKey;
}
};