Luanti 5.11.0-dev
 
Loading...
Searching...
No Matches
hashing Namespace Reference

Functions

std::string sha1 (std::string_view data)
 
std::string sha256 (std::string_view data)
 

Variables

constexpr size_t SHA1_DIGEST_SIZE = 20
 
constexpr size_t SHA256_DIGEST_SIZE = 32
 

Function Documentation

◆ sha1()

std::string hashing::sha1 ( std::string_view data)

References sha1(), and SHA1_DIGEST_SIZE.

Referenced by Server::addMediaFile(), IClientMediaDownloader::checkAndLoad(), Client::handleCommand_MediaPush(), ModApiUtil::l_sha1(), sha1(), TEST_CASE(), TestMapSettingsManager::testMapSettingsManager(), and translate_password().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ sha256()

std::string hashing::sha256 ( std::string_view data)

References FATAL_ERROR_IF, and SHA256_DIGEST_SIZE.

Referenced by ModApiUtil::l_sha256(), and TEST_CASE().

+ Here is the caller graph for this function:

Variable Documentation

◆ SHA1_DIGEST_SIZE

size_t hashing::SHA1_DIGEST_SIZE = 20
constexpr

Referenced by sha1().

◆ SHA256_DIGEST_SIZE

size_t hashing::SHA256_DIGEST_SIZE = 32
constexpr

Referenced by sha256().