Source/Server/Core/Crypto/CWCClientUDPCipher.cpp
// Basically the same as CWCCipher except we include a packet-type and auth token.
Basically the same as CWCCipher except we include a packet-type and auth token.
Basically the same as CWCCipher except we include a packet - type and auth token .
CWCClientUDPCipher::CWCClientUDPCipher(const std::vector<uint8_t>& InKey, uint64_t InAuthToken)
    : Key(InKey)
    , AuthToken(InAuthToken)
{
    cwc_init_and_key(InKey.data(), (unsigned long)InKey.size(), &CwcContext);
    uint8_t* InAuthTokenBytes = reinterpret_cast<uint8_t*>(&InAuthToken);
    AuthTokenHeaderBytes.assign(InAuthTokenBytes, InAuthTokenBytes + 8);
}
CWCClientUDPCipher :: CWCClientUDPCipher ( const std :: vector < uint8_t > & InKey , uint64_t InAuthToken ) : Key ( InKey ) , AuthToken ( InAuthToken ) { cwc_init_and_key ( InKey . data ( ) , ( unsigned long ) InKey . size ( ) , & CwcContext ) ; uint8_t * InAuthTokenBytes = reinterpret_cast < uint8_t * > ( & InAuthToken ) ; AuthTokenHeaderBytes . assign ( InAuthTokenBytes , InAuthTokenBytes + 8 ) ; }
Basically the same as CWCCipher except we include a packet-type and auth token.
Basically the same as CWCCipher except we include a packet - type and auth token .
// Auth token bytes to encode in the header are the reversed auth token.