diff options
Diffstat (limited to 'src/shared/Auth/AuthCrypt.h')
-rw-r--r-- | src/shared/Auth/AuthCrypt.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/shared/Auth/AuthCrypt.h b/src/shared/Auth/AuthCrypt.h index 7f885e563ab..226fde018ae 100644 --- a/src/shared/Auth/AuthCrypt.h +++ b/src/shared/Auth/AuthCrypt.h @@ -17,20 +17,27 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ + #ifndef _AUTHCRYPT_H #define _AUTHCRYPT_H + #include <Common.h> #include "SARC4.h" + class BigNumber; + class AuthCrypt { public: AuthCrypt(); ~AuthCrypt(); + void Init(BigNumber *K); void DecryptRecv(uint8 *, size_t); void EncryptSend(uint8 *, size_t); + bool IsInitialized() { return _initialized; } + private: SARC4 _clientDecrypt; SARC4 _serverEncrypt; |