.. index:: pair: class; rgpot::engine::Sha256 .. _doxid-classrgpot_1_1engine_1_1_sha256: class rgpot::engine::Sha256 =========================== .. toctree:: :hidden: Overview ~~~~~~~~ .. ref-code-block:: cpp :class: doxyrest-overview-code-block class Sha256 { public: // construction :target:`Sha256`(); // methods void :target:`reset`(); void :target:`update`(const void* data, std::size_t size); std::string :ref:`hex_digest`(); static std::string :ref:`of_file`(const std::string& path); }; .. _details-classrgpot_1_1engine_1_1_sha256: Detailed Documentation ~~~~~~~~~~~~~~~~~~~~~~ Methods ------- .. index:: pair: function; hex_digest .. _doxid-classrgpot_1_1engine_1_1_sha256_1a2b1a6f8ae7ea651ee6ac67056c6479e8: .. ref-code-block:: cpp :class: doxyrest-title-code-block std::string hex_digest() Lowercase hexadecimal digest; the object is reset afterwards. .. index:: pair: function; of_file .. _doxid-classrgpot_1_1engine_1_1_sha256_1ae23f947f99b14f82d54549eb39e92f19: .. ref-code-block:: cpp :class: doxyrest-title-code-block static std::string of_file(const std::string& path) Digest of a whole file; empty when it cannot be read.