TrinityCore
Trinity::Crypto Namespace Reference

Namespaces

namespace  SRP
 

Classes

class  AES
 
class  ARC4
 
struct  Argon2
 
struct  Constants
 
class  Ed25519
 
class  RsaSignature
 
struct  TOTP
 

Typedefs

using MD5 = Trinity::Impl::GenericHash< EVP_md5, Constants::MD5_DIGEST_LENGTH_BYTES >
 
using SHA1 = Trinity::Impl::GenericHash< EVP_sha1, Constants::SHA1_DIGEST_LENGTH_BYTES >
 
using SHA256 = Trinity::Impl::GenericHash< EVP_sha256, Constants::SHA256_DIGEST_LENGTH_BYTES >
 
using SHA512 = Trinity::Impl::GenericHash< EVP_sha512, Constants::SHA512_DIGEST_LENGTH_BYTES >
 
using HMAC_SHA1 = Trinity::Impl::GenericHMAC< EVP_sha1, Constants::SHA1_DIGEST_LENGTH_BYTES >
 
using HMAC_SHA256 = Trinity::Impl::GenericHMAC< EVP_sha256, Constants::SHA256_DIGEST_LENGTH_BYTES >
 

Functions

template<typename Cipher >
void AEEncryptWithRandomIV (std::vector< uint8 > &data, typename Cipher::Key const &key)
 
template<typename Cipher >
void AEEncryptWithRandomIV (std::vector< uint8 > &data, BigNumber const &key)
 
template<typename Cipher >
bool AEDecrypt (std::vector< uint8 > &data, typename Cipher::Key const &key)
 
template<typename Cipher >
bool AEDecrypt (std::vector< uint8 > &data, BigNumber const &key)
 
void TC_COMMON_API GetRandomBytes (uint8 *buf, size_t len)
 
template<typename Container >
void GetRandomBytes (Container &c)
 
template<size_t S>
std::array< uint8, S > GetRandomBytes ()
 

Typedef Documentation

◆ HMAC_SHA1

◆ HMAC_SHA256

◆ MD5

◆ SHA1

◆ SHA256

◆ SHA512

Function Documentation

◆ AEDecrypt() [1/2]

template<typename Cipher >
bool Trinity::Crypto::AEDecrypt ( std::vector< uint8 > &  data,
BigNumber const &  key 
)

Definition at line 105 of file CryptoGenerics.h.

+ Here is the call graph for this function:

◆ AEDecrypt() [2/2]

template<typename Cipher >
bool Trinity::Crypto::AEDecrypt ( std::vector< uint8 > &  data,
typename Cipher::Key const &  key 
)

Definition at line 88 of file CryptoGenerics.h.

+ Here is the call graph for this function:

◆ AEEncryptWithRandomIV() [1/2]

template<typename Cipher >
void Trinity::Crypto::AEEncryptWithRandomIV ( std::vector< uint8 > &  data,
BigNumber const &  key 
)

Definition at line 82 of file CryptoGenerics.h.

+ Here is the call graph for this function:

◆ AEEncryptWithRandomIV() [2/2]

template<typename Cipher >
void Trinity::Crypto::AEEncryptWithRandomIV ( std::vector< uint8 > &  data,
typename Cipher::Key const &  key 
)

Definition at line 62 of file CryptoGenerics.h.

+ Here is the call graph for this function:

◆ GetRandomBytes() [1/3]

template<size_t S>
std::array< uint8, S > Trinity::Crypto::GetRandomBytes ( )

Definition at line 37 of file CryptoRandom.h.

+ Here is the call graph for this function:

◆ GetRandomBytes() [2/3]

template<typename Container >
void Trinity::Crypto::GetRandomBytes ( Container &  c)

Definition at line 31 of file CryptoRandom.h.

+ Here is the call graph for this function:

◆ GetRandomBytes() [3/3]

void Trinity::Crypto::GetRandomBytes ( uint8 buf,
size_t  len 
)

Definition at line 22 of file CryptoRandom.cpp.

+ Here is the caller graph for this function: