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