aboutsummaryrefslogtreecommitdiff
path: root/src/common/Cryptography/Authentication/AuthCrypt.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/Cryptography/Authentication/AuthCrypt.h')
-rw-r--r--src/common/Cryptography/Authentication/AuthCrypt.h15
1 files changed, 7 insertions, 8 deletions
diff --git a/src/common/Cryptography/Authentication/AuthCrypt.h b/src/common/Cryptography/Authentication/AuthCrypt.h
index c6d4066350c..cb1a217297a 100644
--- a/src/common/Cryptography/Authentication/AuthCrypt.h
+++ b/src/common/Cryptography/Authentication/AuthCrypt.h
@@ -18,24 +18,23 @@
#ifndef _AUTHCRYPT_H
#define _AUTHCRYPT_H
-#include "Cryptography/ARC4.h"
-
-class BigNumber;
+#include "ARC4.h"
+#include <array>
class TC_COMMON_API AuthCrypt
{
public:
AuthCrypt();
- void Init(BigNumber* K);
- void DecryptRecv(uint8 *, size_t);
- void EncryptSend(uint8 *, size_t);
+ void Init(std::array<uint8, 40> const& K);
+ void DecryptRecv(uint8* data, size_t len);
+ void EncryptSend(uint8* data, size_t len);
bool IsInitialized() const { return _initialized; }
private:
- ARC4 _clientDecrypt;
- ARC4 _serverEncrypt;
+ Trinity::Crypto::ARC4 _clientDecrypt;
+ Trinity::Crypto::ARC4 _serverEncrypt;
bool _initialized;
};
#endif