86 { md5.Streamer(buf);
return buf; }
92 {
return !(m1 ==
m2); }
void Print() const
Print digest in ascii hex form.
friend Bool_t operator==(const TMD5 &m1, const TMD5 &m2)
Compare two message digests for equality.
static TMD5 * FileChecksum(const char *file)
Returns checksum of specified file.
void Final()
MD5 finalization, ends an MD5 message-digest operation, writing the the message digest and zeroizing ...
void Encode(UChar_t *out, const UInt_t *in, UInt_t len)
Encodes input into output. Assumes len is a multiple of 4.
Bool_t operator!=(const TMD5 &m1, const TMD5 &m2)
Buffer base class used for serializing objects.
TMD5 & operator=(const TMD5 &rhs)
MD5 assignment operator.
const char * AsString() const
Return message digest as string.
void Decode(UInt_t *out, const UChar_t *in, UInt_t len)
Decodes input into output. Assumes len is a multiple of 4.
#define ClassDef(name, id)
This code implements the MD5 message-digest algorithm.
TMD5()
Create TMD5 object.
Char_t fString[33]
temp buffer
void Update(const UChar_t *buf, UInt_t len)
Update TMD5 object to reflect the concatenation of another buffer full of bytes.
static Int_t WriteChecksum(const char *file, const TMD5 *md5)
Writes checksum in ASCII format to specified file.
UChar_t fIn[64]
temp buffer
static constexpr double m2
TBuffer & operator>>(TBuffer &buf, TMD5 &md5)
Int_t SetDigest(const char *md5ascii)
Set the digest from the ASCII representation 'md5ascii'.
Bool_t operator==(const TMD5 &m1, const TMD5 &m2)
Compare two message digests for equality.
static TMD5 * ReadChecksum(const char *file)
Returns checksum stored in ASCII in specified file.
UChar_t fDigest[16]
string representation of digest
UInt_t fBits[2]
temp buffer
TBuffer & operator<<(TBuffer &buf, const TMD5 &md5)
Input operator. Delegate to Streamer.
void Transform(UInt_t buf[4], const UChar_t in[64])
The core of the MD5 algorithm, this alters an existing MD5 hash to reflect the addition of 16 longwor...