Project SkyFire Core
SkyFire 5.4.8 server core API documentation
Loading...
Searching...
No Matches
SkyFire::Crypto Namespace Reference

Classes

class  ARC4
struct  Constants
class  SRP6

Typedefs

using HMAC_SHA1 = SkyFire::Impl::GenericHMAC<EVP_sha1, Constants::SHA1_DIGEST_LENGTH_BYTES>
using HMAC_SHA256 = SkyFire::Impl::GenericHMAC<EVP_sha256, Constants::SHA256_DIGEST_LENGTH_BYTES>
using SHA1 = SkyFire::Impl::GenericHash<EVP_sha1, Constants::SHA1_DIGEST_LENGTH_BYTES>
using SHA256 = SkyFire::Impl::GenericHash<EVP_sha256, Constants::SHA256_DIGEST_LENGTH_BYTES>

Functions

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

Typedef Documentation

◆ HMAC_SHA1

◆ HMAC_SHA256

◆ SHA1

◆ SHA256

Function Documentation

◆ AEDecrypt() [1/2]

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

Definition at line 93 of file CryptoGenerics.h.

References AEDecrypt(), and BigNumber::ToByteArray().

◆ AEDecrypt() [2/2]

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

Definition at line 76 of file CryptoGenerics.h.

References SkyFire::Impl::CryptoGenericsImpl::SplitFromBack().

Referenced by AEDecrypt().

◆ AEEncryptWithRandomIV() [1/2]

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

Definition at line 70 of file CryptoGenerics.h.

References AEEncryptWithRandomIV(), and BigNumber::ToByteArray().

◆ AEEncryptWithRandomIV() [2/2]

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

◆ GetRandomBytes() [1/3]

◆ GetRandomBytes() [2/3]

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

Definition at line 17 of file CryptoRandom.h.

References GetRandomBytes().

◆ GetRandomBytes() [3/3]

void SkyFire::Crypto::GetRandomBytes ( uint8 * buf,
size_t len )

Definition at line 10 of file CryptoRandom.cpp.

References ASSERT.

Referenced by WorldSocket::HandleSendAuthSession(), and SkyFire::Crypto::SRP6::SRP6().