104
104
This is a generic API for computing checksums (or "digests") for a sequence of arbitrary bytes, using various hashing algorithms like MD5, SHA-1 and SHA-256. Checksums are commonly used in various environments and specifications.<p>
105
105
glibmm supports incremental checksums by calling <a class="el" href="classGlib_1_1Checksum.html#49c961d3ecf8a4c62bd2177c2e32ac79" title="Feeds data into an existing Checksum.">update()</a> as long as there's data available and then using <a class="el" href="classGlib_1_1Checksum.html#139a8bb447bb6617ffd0b3a2ef38808b" title="Gets the digest as an hexadecimal string.">get_string()</a> or <a class="el" href="classGlib_1_1Checksum.html#2dab438a05d0c74f25daea6c19af8f30" title="Gets the digest from checksum as a raw binary vector and places it into buffer.">get_digest()</a> to compute the checksum and return it either as a string in hexadecimal form, or as a raw sequence of bytes. To compute the checksum for binary blobs and NULL-terminated strings in one go, use the static <a class="el" href="classGlib_1_1Checksum.html#902b8dade7ce569804fa1819aaaa04d0" title="Computes the checksum for a binary data of length.">compute_checksum()</a> convenience functions().<p>
107
107
<hr><h2>Constructor & Destructor Documentation</h2>
108
108
<a class="anchor" name="218ef89e5467d6cb8b2687813b286ced"></a><!-- doxytag: member="Glib::Checksum::Checksum" ref="218ef89e5467d6cb8b2687813b286ced" args="()" -->