12 #include "mbedtls/sha1.h"
27 void Update(
const Byte * a_Data,
size_t a_Length);
Calculates a SHA1 checksum for data stream.
mbedtls_sha1_context m_Sha1
void Update(const Byte *a_Data, size_t a_Length)
Adds the specified data to the checksum.
void Restart(void)
Clears the current context and start a new checksum calculation.
void Finalize(Checksum &a_Output)
Calculates and returns the final checksum.
bool DoesAcceptInput(void) const
Returns true if the object is accepts more input data, false if Finalize()-d (need to Restart())
bool m_DoesAcceptInput
True if the object is accepts more input data, false if Finalize()-d (need to Restart())
static void DigestToHex(const Checksum &a_Digest, AString &a_Out)
Converts a SHA1 digest into hex.
static void DigestToJava(const Checksum &a_Digest, AString &a_Out)
Converts a raw 160-bit SHA1 digest into a Java Hex representation According to http://wiki....