![]() |
SourcePP
Several modern C++20 libraries for sanely parsing Valve's formats.
|
Functions | |
uint32_t | computeAdler32 (std::span< const std::byte > buffer) |
uint32_t | computeCRC32 (std::span< const std::byte > buffer) |
std::array< std::byte, 16 > | computeMD5 (std::span< const std::byte > buffer) |
std::pair< std::string, std::string > | computeSHA256KeyPair (uint16_t size=2048) |
bool | verifySHA256PublicKey (std::span< const std::byte > buffer, const std::vector< std::byte > &publicKey, std::span< const std::byte > signature) |
std::vector< std::byte > | signDataWithSHA256PrivateKey (const std::vector< std::byte > &buffer, const std::vector< std::byte > &privateKey) |
std::vector< std::byte > | decodeHexString (std::string_view hex) |
std::string | encodeHexString (std::span< const std::byte > hex) |
uint32_t sourcepp::crypto::computeAdler32 | ( | std::span< const std::byte > | buffer | ) |
Definition at line 39 of file Adler32.cpp.
uint32_t sourcepp::crypto::computeCRC32 | ( | std::span< const std::byte > | buffer | ) |
std::array< std::byte, 16 > sourcepp::crypto::computeMD5 | ( | std::span< const std::byte > | buffer | ) |
std::pair< std::string, std::string > sourcepp::crypto::computeSHA256KeyPair | ( | uint16_t | size = 2048 | ) |
std::vector< std::byte > sourcepp::crypto::decodeHexString | ( | std::string_view | hex | ) |
Definition at line 10 of file String.cpp.
std::string sourcepp::crypto::encodeHexString | ( | std::span< const std::byte > | hex | ) |
Definition at line 21 of file String.cpp.
std::vector< std::byte > sourcepp::crypto::signDataWithSHA256PrivateKey | ( | const std::vector< std::byte > & | buffer, |
const std::vector< std::byte > & | privateKey | ||
) |