From 7a3b48831bfc9c4aa8c39c1e42d5bf5dd73e43c5 Mon Sep 17 00:00:00 2001 From: boris Date: Tue, 1 Jan 2019 20:31:51 +1300 Subject: whole buncha fixes & switching to vmp --- csgo-loader/csgo-client/Security/Encryption.hpp | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'csgo-loader/csgo-client/Security/Encryption.hpp') diff --git a/csgo-loader/csgo-client/Security/Encryption.hpp b/csgo-loader/csgo-client/Security/Encryption.hpp index b1c49dc..bf1346e 100644 --- a/csgo-loader/csgo-client/Security/Encryption.hpp +++ b/csgo-loader/csgo-client/Security/Encryption.hpp @@ -5,6 +5,8 @@ #include #include +#include + using ByteArray = std::vector; #define BLOCK_SIZE 16 @@ -71,7 +73,7 @@ namespace Wrapper // Encryption wrapper. class Encryption { - ByteArray m_EncryptionKey; + uint8_t m_EncryptionKey[32]; HCRYPTPROV m_CryptProvider; public: @@ -87,7 +89,15 @@ namespace Wrapper // Exposes the encryption key. ByteArray GetKey() { - return m_EncryptionKey; + ByteArray TemporaryKey; + + TemporaryKey.insert( + TemporaryKey.begin(), + m_EncryptionKey, + m_EncryptionKey + sizeof m_EncryptionKey + ); + + return TemporaryKey; } }; } \ No newline at end of file -- cgit v1.2.3