AzerothCore 3.3.5a
OpenSource WoW Emulator
|
#include "HMAC.h"
Public Types | |
using | Digest = std::array< uint8, DIGEST_LENGTH > |
Public Member Functions | |
GenericHMAC (uint8 const *seed, std::size_t len) | |
template<typename Container > | |
GenericHMAC (Container const &container) | |
GenericHMAC (GenericHMAC const &right) | |
GenericHMAC (GenericHMAC &&right) noexcept | |
~GenericHMAC () | |
GenericHMAC & | operator= (GenericHMAC const &right) |
GenericHMAC & | operator= (GenericHMAC &&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 | |
template<typename Container > | |
static Digest | GetDigestOf (Container const &seed, uint8 const *data, std::size_t len) |
template<typename Container , typename... Ts> | |
static auto | GetDigestOf (Container const &seed, 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 {} |
EVP_PKEY * | _key {} |
Digest | _digest {} |
using Acore::Impl::GenericHMAC< HashCreator, DigestLength >::Digest = std::array<uint8, DIGEST_LENGTH> |
|
inline |
References Acore::Impl::GenericHMAC< HashCreator, DigestLength >::_ctx, Acore::Impl::GenericHMAC< HashCreator, DigestLength >::_key, and ASSERT.
|
inline |
|
inline |
|
inlinenoexcept |
|
inline |
References Acore::Impl::GenericHMAC< HashCreator, DigestLength >::_ctx, Acore::Impl::GenericHMAC< HashCreator, DigestLength >::_key, and Acore::Impl::GenericHashImpl::DestroyCTX().
|
inline |
References Acore::Impl::GenericHMAC< HashCreator, DigestLength >::_ctx, Acore::Impl::GenericHMAC< HashCreator, DigestLength >::_digest, ASSERT, and Acore::Impl::GenericHMAC< HashCreator, DigestLength >::DIGEST_LENGTH.
Referenced by Acore::Impl::GenericHMAC< HashCreator, DigestLength >::GetDigestOf().
|
inline |
|
inlinestatic |
References Acore::Impl::GenericHMAC< HashCreator, DigestLength >::Finalize(), Acore::Impl::GenericHMAC< HashCreator, DigestLength >::GetDigest(), and Acore::Impl::GenericHMAC< HashCreator, DigestLength >::UpdateData().
|
inlinestatic |
References Acore::Impl::GenericHMAC< HashCreator, DigestLength >::Finalize(), Acore::Impl::GenericHMAC< HashCreator, DigestLength >::GetDigest(), and Acore::Impl::GenericHMAC< HashCreator, DigestLength >::UpdateData().
Referenced by AuthCrypt::Init(), and WardenWin::RequestChecks().
|
inlinenoexcept |
References Acore::Impl::GenericHMAC< HashCreator, DigestLength >::_ctx, Acore::Impl::GenericHMAC< HashCreator, DigestLength >::_digest, Acore::Impl::GenericHMAC< HashCreator, DigestLength >::_key, and Acore::Impl::GenericHashImpl::MakeCTX().
|
inline |
References Acore::Impl::GenericHMAC< HashCreator, DigestLength >::_ctx, Acore::Impl::GenericHMAC< HashCreator, DigestLength >::_digest, Acore::Impl::GenericHMAC< HashCreator, DigestLength >::_key, and ASSERT.
|
inline |
References Acore::Impl::GenericHMAC< HashCreator, DigestLength >::UpdateData().
Referenced by Acore::Impl::GenericHMAC< HashCreator, DigestLength >::UpdateData().
|
inline |
References Acore::Impl::GenericHMAC< HashCreator, DigestLength >::UpdateData().
Referenced by Acore::Impl::GenericHMAC< HashCreator, DigestLength >::UpdateData().
|
inline |
References Acore::Impl::GenericHMAC< HashCreator, DigestLength >::UpdateData().
Referenced by Acore::Impl::GenericHMAC< HashCreator, DigestLength >::UpdateData().
|
inline |
|
inline |
References Acore::Impl::GenericHMAC< HashCreator, DigestLength >::_ctx, and ASSERT.
Referenced by Acore::Impl::GenericHMAC< HashCreator, DigestLength >::GetDigestOf().
|
private |
Referenced by Acore::Impl::GenericHMAC< HashCreator, DigestLength >::Finalize(), Acore::Impl::GenericHMAC< HashCreator, DigestLength >::GenericHMAC(), Acore::Impl::GenericHMAC< HashCreator, DigestLength >::operator=(), Acore::Impl::GenericHMAC< HashCreator, DigestLength >::UpdateData(), and Acore::Impl::GenericHMAC< HashCreator, DigestLength >::~GenericHMAC().
|
private |
|
private |
|
staticconstexpr |