![]() |
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) | |
| ~AES () | |
| void | Init (Key const &key) |
| bool | Process (IV const &iv, uint8 *data, size_t length, Tag &tag) |
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 | ) |
Definition at line 22 of file AES.cpp.
References _ctx, _encrypting, and ASSERT.
| void Trinity::Crypto::AES::Init | ( | Key const & | key | ) |
|
private |
|
private |
|
staticconstexpr |
Definition at line 30 of file AES.h.
Referenced by account_commandscript::HandleAccountSet2FACommand().
|
staticconstexpr |
Definition at line 31 of file AES.h.
Referenced by SecretMgr::AttemptTransition().
|
staticconstexpr |
Definition at line 32 of file AES.h.
Referenced by account_commandscript::HandleAccountSet2FACommand().