aboutsummaryrefslogtreecommitdiff
path: root/src/shared/Auth/AuthCrypt.h
diff options
context:
space:
mode:
authorMachiavelli <none@none>2009-06-11 17:56:20 +0200
committerMachiavelli <none@none>2009-06-11 17:56:20 +0200
commit1c97b2bf796fb367b77e653556220e69cf7b5878 (patch)
treeffaa612c7502785edc750a664ebc2253c41e4f5c /src/shared/Auth/AuthCrypt.h
parent6eaf6e962a31aa308406289d538aef30a56b95cb (diff)
parent6c069aa5b8405d51202781104daf5c6e8642b891 (diff)
Merge
--HG-- branch : trunk
Diffstat (limited to 'src/shared/Auth/AuthCrypt.h')
-rw-r--r--src/shared/Auth/AuthCrypt.h15
1 files changed, 4 insertions, 11 deletions
diff --git a/src/shared/Auth/AuthCrypt.h b/src/shared/Auth/AuthCrypt.h
index 5c35511ad9f..226fde018ae 100644
--- a/src/shared/Auth/AuthCrypt.h
+++ b/src/shared/Auth/AuthCrypt.h
@@ -22,7 +22,7 @@
#define _AUTHCRYPT_H
#include <Common.h>
-#include <vector>
+#include "SARC4.h"
class BigNumber;
@@ -32,22 +32,15 @@ class AuthCrypt
AuthCrypt();
~AuthCrypt();
- const static size_t CRYPTED_RECV_LEN = 6;
-
- void Init();
-
- void SetKey(BigNumber *);
-
+ void Init(BigNumber *K);
void DecryptRecv(uint8 *, size_t);
void EncryptSend(uint8 *, size_t);
bool IsInitialized() { return _initialized; }
- static void GenerateKey(uint8 *, BigNumber *);
-
private:
- std::vector<uint8> _key;
- uint8 _send_i, _send_j, _recv_i, _recv_j;
+ SARC4 _clientDecrypt;
+ SARC4 _serverEncrypt;
bool _initialized;
};
#endif