|
Project SkyFire Core
SkyFire 5.4.8 server core API documentation
|
#include <CryptoHash.h>
Public Types | |
| using | Digest = std::array<uint8, DIGEST_LENGTH> |
Public Member Functions | |
| void | Finalize () |
| GenericHash () | |
| Digest const & | GetDigest () const |
| void | UpdateData (char const *str) |
| template<typename Container> | |
| void | UpdateData (Container const &c) |
| void | UpdateData (std::string const &str) |
| void | UpdateData (std::string_view str) |
| void | UpdateData (uint8 const *data, size_t len) |
| ~GenericHash () | |
Static Public Member Functions | |
| template<typename... Ts> | |
| static auto | GetDigestOf (Ts &&... pack) -> std::enable_if_t<!(std::is_integral_v< std::decay_t< Ts > >||...), Digest > |
| static Digest | GetDigestOf (uint8 const *data, size_t len) |
Static Public Attributes | |
| static constexpr size_t | DIGEST_LENGTH = DigestLength |
Private Attributes | |
| EVP_MD_CTX * | _ctx |
| Digest | _digest = { } |
Definition at line 35 of file CryptoHash.h.
| using SkyFire::Impl::GenericHash< HashCreator, DigestLength >::Digest = std::array<uint8, DIGEST_LENGTH> |
Definition at line 39 of file CryptoHash.h.
|
inline |
Definition at line 58 of file CryptoHash.h.
|
inline |
Definition at line 64 of file CryptoHash.h.
|
inline |
Definition at line 83 of file CryptoHash.h.
Referenced by AuthSocket::_HandleReconnectProof(), SkyFire::Impl::GenericHash< EVP_sha1, Constants::SHA1_DIGEST_LENGTH_BYTES >::GetDigestOf(), SkyFire::Impl::GenericHash< EVP_sha1, Constants::SHA1_DIGEST_LENGTH_BYTES >::GetDigestOf(), WorldSocket::HandleAuthSession(), WardenMac::HandleData(), and WardenMac::HandleHashResult().
|
inline |
Definition at line 93 of file CryptoHash.h.
Referenced by AuthSocket::_HandleReconnectProof(), SkyFire::Impl::GenericHash< EVP_sha1, Constants::SHA1_DIGEST_LENGTH_BYTES >::GetDigestOf(), SkyFire::Impl::GenericHash< EVP_sha1, Constants::SHA1_DIGEST_LENGTH_BYTES >::GetDigestOf(), WorldSocket::HandleAuthSession(), WardenMac::HandleData(), and WardenMac::HandleHashResult().
|
inlinestatic |
Definition at line 50 of file CryptoHash.h.
|
inlinestatic |
Definition at line 41 of file CryptoHash.h.
|
inline |
Definition at line 79 of file CryptoHash.h.
Referenced by SkyFire::Impl::GenericHash< EVP_sha1, Constants::SHA1_DIGEST_LENGTH_BYTES >::UpdateData().
|
inline |
Definition at line 81 of file CryptoHash.h.
Referenced by SkyFire::Impl::GenericHash< EVP_sha1, Constants::SHA1_DIGEST_LENGTH_BYTES >::UpdateData().
|
inline |
Definition at line 78 of file CryptoHash.h.
Referenced by SkyFire::Impl::GenericHash< EVP_sha1, Constants::SHA1_DIGEST_LENGTH_BYTES >::UpdateData().
|
inline |
Definition at line 77 of file CryptoHash.h.
Referenced by SkyFire::Impl::GenericHash< EVP_sha1, Constants::SHA1_DIGEST_LENGTH_BYTES >::UpdateData().
|
inline |
Definition at line 72 of file CryptoHash.h.
Referenced by AuthSocket::_HandleReconnectProof(), SkyFire::Impl::GenericHash< EVP_sha1, Constants::SHA1_DIGEST_LENGTH_BYTES >::GetDigestOf(), SkyFire::Impl::GenericHash< EVP_sha1, Constants::SHA1_DIGEST_LENGTH_BYTES >::GetDigestOf(), WorldSocket::HandleAuthSession(), WardenMac::HandleData(), and WardenMac::HandleHashResult().
|
private |
Definition at line 96 of file CryptoHash.h.
|
private |
Definition at line 97 of file CryptoHash.h.
|
staticconstexpr |
Definition at line 38 of file CryptoHash.h.