mirror of
https://github.com/dashr9230/SA-MP.git
synced 2024-12-22 22:47:29 +08:00
17 lines
345 B
C++
17 lines
345 B
C++
// 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;
|
|
}
|