Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
|
#include <Digest.h>
Public Types | |
enum class | Type { MD5 , SHA1 , SHA256 , SHA512 , INVALID } |
Public Member Functions | |
CDigest (Type type) | |
void | Update (std::string const &data) |
void | Update (void const *data, std::size_t size) |
std::string | Finalize () |
std::string | FinalizeRaw () |
Static Public Member Functions | |
static std::string | TypeToString (Type type) |
static Type | TypeFromString (std::string const &type) |
static std::string | Calculate (Type type, std::string const &data) |
static std::string | Calculate (Type type, void const *data, std::size_t size) |
Utility class for calculating message digests/hashes, currently using OpenSSL
|
strong |
KODI::UTILITY::CDigest::CDigest | ( | Type | type | ) |
Create a digest calculation object
|
static |
Calculate message digest
|
static |
Calculate message digest
std::string KODI::UTILITY::CDigest::Finalize | ( | ) |
Finalize and return the digest
The digest object cannot be used any more after this function has been called.
std::string KODI::UTILITY::CDigest::FinalizeRaw | ( | ) |
Finalize and return the digest
The digest object cannot be used any more after this function has been called.
|
static |
Convert digest type string representation to enumeration value
|
static |
Convert type enumeration value to lower-case string representation
void KODI::UTILITY::CDigest::Update | ( | std::string const & | data | ) |
Update digest with data
Cannot be called after Finalize has been called
Update digest with data
Cannot be called after Finalize has been called