AzerothCore 3.3.5a
OpenSource WoW Emulator
|
#include "CryptoHash.h"
Public Types | |
using | Digest = std::array< uint8, DIGEST_LENGTH > |
Public Member Functions | |
GenericHash () | |
GenericHash (GenericHash const &right) | |
GenericHash (GenericHash &&right) noexcept | |
~GenericHash () | |
GenericHash & | operator= (GenericHash const &right) |
GenericHash & | operator= (GenericHash &&right) noexcept |
void | UpdateData (uint8 const *data, std::size_t len) |
void | UpdateData (std::string_view str) |
void | UpdateData (std::string const &str) |
void | UpdateData (char const *str) |
template<typename Container > | |
void | UpdateData (Container const &c) |
void | Finalize () |
Digest const & | GetDigest () const |
Static Public Member Functions | |
static Digest | GetDigestOf (uint8 const *data, std::size_t len) |
template<typename... Ts> | |
static auto | GetDigestOf (Ts &&... pack) -> std::enable_if_t<!(std::is_integral_v< std::decay_t< Ts > >||...), Digest > |
Static Public Attributes | |
static constexpr std::size_t | DIGEST_LENGTH = DigestLength |
Private Attributes | |
EVP_MD_CTX * | _ctx {} |
Digest | _digest {} |
using Acore::Impl::GenericHash< HashCreator, DigestLength >::Digest = std::array<uint8, DIGEST_LENGTH> |
|
inline |
References Acore::Impl::GenericHash< HashCreator, DigestLength >::_ctx, and ASSERT.
|
inline |
|
inlinenoexcept |
|
inline |
References Acore::Impl::GenericHash< HashCreator, DigestLength >::_ctx, and Acore::Impl::GenericHashImpl::DestroyCTX().
|
inline |
References Acore::Impl::GenericHash< HashCreator, DigestLength >::_ctx, Acore::Impl::GenericHash< HashCreator, DigestLength >::_digest, ASSERT, and Acore::Impl::GenericHash< HashCreator, DigestLength >::DIGEST_LENGTH.
Referenced by Acore::Impl::GenericHash< HashCreator, DigestLength >::GetDigestOf(), WorldSocket::HandleAuthSessionCallback(), WardenMac::HandleData(), WardenMac::HandleHashResult(), AuthSession::HandleReconnectProof(), and AuthSession::VerifyVersion().
|
inline |
References Acore::Impl::GenericHash< HashCreator, DigestLength >::_digest.
Referenced by Acore::Impl::GenericHash< HashCreator, DigestLength >::GetDigestOf(), WorldSocket::HandleAuthSessionCallback(), WardenMac::HandleData(), WardenMac::HandleHashResult(), AuthSession::HandleReconnectProof(), and AuthSession::VerifyVersion().
|
inlinestatic |
References Acore::Impl::GenericHash< HashCreator, DigestLength >::Finalize(), Acore::Impl::GenericHash< HashCreator, DigestLength >::GetDigest(), and Acore::Impl::GenericHash< HashCreator, DigestLength >::UpdateData().
|
inlinestatic |
References Acore::Impl::GenericHash< HashCreator, DigestLength >::Finalize(), Acore::Impl::GenericHash< HashCreator, DigestLength >::GetDigest(), and Acore::Impl::GenericHash< HashCreator, DigestLength >::UpdateData().
Referenced by Warden::BuildChecksum(), Acore::Crypto::SRP6::CalculateVerifier(), WardenMac::GetModuleForClient(), WardenWin::GetModuleForClient(), Acore::Crypto::SRP6::GetSessionVerifier(), WardenMac::HandleData(), AddonMgr::LoadFromDB(), Acore::Crypto::SRP6::SHA1Interleave(), UpdateFetcher::Update(), and Acore::Crypto::SRP6::VerifyChallengeResponse().
|
inlinenoexcept |
References Acore::Impl::GenericHash< HashCreator, DigestLength >::_ctx, Acore::Impl::GenericHash< HashCreator, DigestLength >::_digest, and Acore::Impl::GenericHashImpl::MakeCTX().
|
inline |
References Acore::Impl::GenericHash< HashCreator, DigestLength >::_ctx, Acore::Impl::GenericHash< HashCreator, DigestLength >::_digest, and ASSERT.
|
inline |
References Acore::Impl::GenericHash< HashCreator, DigestLength >::UpdateData().
Referenced by Acore::Impl::GenericHash< HashCreator, DigestLength >::UpdateData().
|
inline |
References Acore::Impl::GenericHash< HashCreator, DigestLength >::UpdateData().
Referenced by Acore::Impl::GenericHash< HashCreator, DigestLength >::UpdateData().
|
inline |
References Acore::Impl::GenericHash< HashCreator, DigestLength >::UpdateData().
Referenced by Acore::Impl::GenericHash< HashCreator, DigestLength >::UpdateData().
|
inline |
|
inline |
References Acore::Impl::GenericHash< HashCreator, DigestLength >::_ctx, and ASSERT.
Referenced by Acore::Impl::GenericHash< HashCreator, DigestLength >::GetDigestOf(), WorldSocket::HandleAuthSessionCallback(), WardenMac::HandleData(), WardenMac::HandleHashResult(), AuthSession::HandleReconnectProof(), and AuthSession::VerifyVersion().
|
private |
Referenced by Acore::Impl::GenericHash< HashCreator, DigestLength >::Finalize(), Acore::Impl::GenericHash< HashCreator, DigestLength >::GenericHash(), Acore::Impl::GenericHash< HashCreator, DigestLength >::operator=(), Acore::Impl::GenericHash< HashCreator, DigestLength >::UpdateData(), and Acore::Impl::GenericHash< HashCreator, DigestLength >::~GenericHash().
|
private |
|
staticconstexpr |