Creates an instance used to compute a checksum for a stream of data.
Starts out in "open" state where data is fed in through one or more calls
to update(). Once done, getString() or getDigest() is called to
obtain the computed checksum. This also moves the instance to "closed"
state, which means update() may no longer be called. (Create a new
instance to compute a checksum for subsequent data.)
The type of checksum to compute.
StaticcomputeComputes the checksum of the specified data. Returns the checksum as an
all-lowercase hexadecimal string. The length of the digest depends on the
type of checksum.
The desired type of checksum.
The data to compute the checksum of.
Gets the digest as a raw binary vector. The size of the digest depends on the type of checksum.
Once this method has been called the checksum can no longer be updated
with update().
Gets the digest as an all-lowercase hexadecimal string. The length of the digest depends on the type of checksum.
Once this method has been called the checksum can no longer be updated
with update().
Feeds data into the checksum instance. The checksum must still be open,
i.e. getString() or getDigest() must not have been called yet.
The data used to compute the checksum.
Provides access to checksumming algorithms.