jigdo API

util/md5sum-test.cc File Reference

#include <config.h>
#include <iomanip>
#include <iostream>
#include <fstream>
#include <bstream.hh>
#include <log.hh>
#include <md5sum.hh>
#include <mimestream.hh>

Functions

string toHex (const byte *sum)
void compare (const byte *suite, const byte *mine)
void printBlockSums (size_t blockSize, const char *fileName)
int main (int argc, char *argv[])

Variables

int returnCode = 0
const byte t1 [] = ""
const byte s1 []
const byte t2 [] = "a"
const byte s2 []
const byte t3 [] = "abc"
const byte s3 []
const byte t4 [] = "message digest"
const byte s4 []
const byte t5 [] = "abcdefghijklmnopqrstuvwxyz"
const byte s5 []
const byte t6 [] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"
const byte s6 []
const byte t7 [] = "12345678901234567890123456789012345678901234567890123456789012345678901234567890"
const byte s7 []
const byte sAll []
const char *const hexDigits = "0123456789abcdef"

Function Documentation

void compare ( const byte *  suite,
const byte *  mine 
)

References msg, returnCode, and toHex().

Referenced by main().

int main ( int  argc,
char *  argv[] 
)

void printBlockSums ( size_t  blockSize,
const char *  fileName 
)

References buf, cur, MD5Sum::finishForReuse(), readBytes(), and MD5Sum::update().

Referenced by main().

string toHex ( const byte *  sum  ) 

References hexDigits.

Referenced by compare().


Variable Documentation

const char* const hexDigits = "0123456789abcdef" [static]

int returnCode = 0 [static]

const byte s1[] [static]

Initial value:

"\xd4\x1d\x8c\xd9\x8f\x00\xb2\x04\xe9\x80\x09\x98\xec\xf8\x42\x7e"

Referenced by main(), and ConfigFile::rescan().

const byte s2[] [static]

Initial value:

"\x0c\xc1\x75\xb9\xc0\xf1\xb6\xa8\x31\xc3\x99\xe2\x69\x77\x26\x61"

Referenced by main(), and ConfigFile::rescan().

const byte s3[] [static]

Initial value:

"\x90\x01\x50\x98\x3c\xd2\x4f\xb0\xd6\x96\x3f\x7d\x28\xe1\x7f\x72"

Referenced by main().

const byte s4[] [static]

Initial value:

"\xf9\x6b\x69\x7d\x7c\xb7\x93\x8d\x52\x5a\x2f\x31\xaa\xf1\x61\xd0"

Referenced by main().

const byte s5[] [static]

Initial value:

"\xc3\xfc\xd3\xd7\x61\x92\xe4\x00\x7d\xfb\x49\x6c\xca\x67\xe1\x3b"

Referenced by main().

const byte s6[] [static]

Initial value:

"\xd1\x74\xab\x98\xd2\x77\xd9\xf5\xa5\x61\x1c\x2c\x9f\x41\x9d\x9f"

Referenced by main().

const byte s7[] [static]

Initial value:

"\x57\xed\xf4\xa2\x2b\xe3\xc9\x55\xac\x49\xda\x2e\x21\x07\xb6\x7a"

Referenced by main().

const byte sAll[] [static]

Initial value:

"\x6f\xec\x75\xd4\xe7\xfc\xd7\xe9\x66\x46\xb4\xc7\xaf\x96\xbc\xe2"

Referenced by main().

const byte t1[] = "" [static]

Referenced by main().

const byte t2[] = "a" [static]

Referenced by main().

const byte t3[] = "abc" [static]

Referenced by main().

const byte t4[] = "message digest" [static]

Referenced by main().

const byte t5[] = "abcdefghijklmnopqrstuvwxyz" [static]

Referenced by main().

const byte t6[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789" [static]

Referenced by main().

const byte t7[] = "12345678901234567890123456789012345678901234567890123456789012345678901234567890" [static]

Referenced by main().


Generated on Tue Sep 23 14:27:42 2008 for jigdo by  doxygen 1.5.6