class rgpot::engine::Sha256¶
Overview¶
class Sha256 {
public:
// construction
Sha256();
// methods
void reset();
void update(const void* data, std::size_t size);
std::string hex_digest();
static std::string of_file(const std::string& path);
};
Detailed Documentation¶
Methods¶
std::string hex_digest()
Lowercase hexadecimal digest; the object is reset afterwards.
static std::string of_file(const std::string& path)
Digest of a whole file; empty when it cannot be read.