![]() |
TrinityCore
|
#include <AES.h>
Public Types | |
| using | IV = std::array< uint8, IV_SIZE_BYTES > |
| using | Key = std::array< uint8, KEY_SIZE_BYTES > |
| using | Tag = uint8[TAG_SIZE_BYTES] |
Public Member Functions | |
| AES (bool encrypting, size_t keySizeBits=128) | |
| AES (AES const &)=delete | |
| AES (AES &&)=delete | |
| AES & | operator= (AES const &)=delete |
| AES & | operator= (AES &&)=delete |
| ~AES () | |
| void | Init (Key const &key) |
| void | Init (std::span< uint8 const > key) |
| bool | Process (IV const &iv, uint8 *data, size_t length, Tag &tag) |
| bool | ProcessNoIntegrityCheck (IV const &iv, uint8 *data, size_t partialLength) |
Static Public Attributes | |
| static constexpr size_t | IV_SIZE_BYTES = 12 |
| static constexpr size_t | KEY_SIZE_BYTES = 16 |
| static constexpr size_t | TAG_SIZE_BYTES = 12 |
Private Attributes | |
| EVP_CIPHER_CTX * | _ctx |
| bool | _encrypting |
| using Trinity::Crypto::AES::IV = std::array<uint8, IV_SIZE_BYTES> |
| using Trinity::Crypto::AES::Key = std::array<uint8, KEY_SIZE_BYTES> |
| using Trinity::Crypto::AES::Tag = uint8[TAG_SIZE_BYTES] |
| Trinity::Crypto::AES::AES | ( | bool | encrypting, |
| size_t | keySizeBits = 128 |
||
| ) |
|
delete |
|
delete |
| void Trinity::Crypto::AES::Init | ( | Key const & | key | ) |
| void Trinity::Crypto::AES::Init | ( | std::span< uint8 const > | key | ) |
Definition at line 63 of file AES.cpp.
References ASSERT.
Referenced by WorldPacketCrypt::DecryptRecv(), and WorldPacketCrypt::EncryptSend().
| bool Trinity::Crypto::AES::ProcessNoIntegrityCheck | ( | IV const & | iv, |
| uint8 * | data, | ||
| size_t | partialLength | ||
| ) |
Definition at line 90 of file AES.cpp.
References ASSERT.
Referenced by WorldPacketCrypt::PeekDecryptRecv().
|
private |
|
private |
|
staticconstexpr |
Definition at line 31 of file AES.h.
Referenced by account_commandscript::HandleAccountSet2FACommand().
|
staticconstexpr |
Definition at line 32 of file AES.h.
Referenced by SecretMgr::AttemptTransition().
|
staticconstexpr |
Definition at line 33 of file AES.h.
Referenced by account_commandscript::HandleAccountSet2FACommand().