mirror of
https://github.com/dashr9230/SA-MP.git
synced 2025-09-19 20:26:14 +08:00
[raknet] Implement TEABlockEncryptor ctor
This commit is contained in:
16
raknet/TEABlockEncryptor.cpp
Normal file
16
raknet/TEABlockEncryptor.cpp
Normal file
@ -0,0 +1,16 @@
|
||||
// TODO: Implement TEABlockEncryptor.cpp
|
||||
|
||||
#include "TEABlockEncryptor.h"
|
||||
|
||||
#define TEA_ROUNDS 32
|
||||
#define TEA_XOR_MASK 0x5E94A3CF
|
||||
|
||||
unsigned int TEABlockEncryptor::initObsDelta = (0x9E3779B9 ^ TEA_XOR_MASK);
|
||||
|
||||
TEABlockEncryptor::TEABlockEncryptor()
|
||||
{
|
||||
initDelta = initObsDelta ^ TEA_XOR_MASK;
|
||||
initSum = initDelta * TEA_ROUNDS;
|
||||
|
||||
keySet = false;
|
||||
}
|
Reference in New Issue
Block a user