From: Gordon M. <go...@us...> - 2003-10-27 03:10:07
|
Update of /cvsroot/bitcollider/bitcollider/include In directory sc8-pr-cvs1:/tmp/cvs-serv31737/include Modified Files: bc_version.h bitcollider.h ftuuhash.h Log Message: added crc32 cmd-line switch; renamed md5 command-line switch; added registry check for Calculate[CRC32|MD5] for win-gui; tinkered with UI labelling; updated version to 0.5.1 Index: bc_version.h =================================================================== RCS file: /cvsroot/bitcollider/bitcollider/include/bc_version.h,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -r1.8 -r1.9 *** bc_version.h 24 Feb 2003 10:59:29 -0000 1.8 --- bc_version.h 27 Oct 2003 03:09:35 -0000 1.9 *************** *** 22,26 **** /* Your agent-version string; should be #[.#[.#[etc]]] format */ ! #define BC_VERSION "0.5.0" #endif --- 22,26 ---- /* Your agent-version string; should be #[.#[.#[etc]]] format */ ! #define BC_VERSION "0.5.1" #endif Index: bitcollider.h =================================================================== RCS file: /cvsroot/bitcollider/bitcollider/include/bitcollider.h,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -r1.13 -r1.14 *** bitcollider.h 25 Oct 2003 23:54:29 -0000 1.13 --- bitcollider.h 27 Oct 2003 03:09:35 -0000 1.14 *************** *** 43,46 **** --- 43,47 ---- b_bool preview; b_bool calculateMD5; + b_bool calculateCRC32; b_bool exitNow; #if USE_BDB *************** *** 85,88 **** --- 86,91 ---- b_bool enable); void set_calculateMD5 (Bitcollider *bc, + b_bool enable); + void set_calculateCRC32 (Bitcollider *bc, b_bool enable); void set_exit (Bitcollider *bc, Index: ftuuhash.h =================================================================== RCS file: /cvsroot/bitcollider/bitcollider/include/ftuuhash.h,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -r1.2 -r1.3 *** ftuuhash.h 6 Jul 2002 09:38:02 -0000 1.2 --- ftuuhash.h 27 Oct 2003 03:09:35 -0000 1.3 *************** *** 1,33 **** ! /* Support for calculating fasttrack identifiers ! * ! * $Id$ ! */ ! ! #ifndef __FTUUHASH_H__ ! #define __FTUUHASH_H__ ! ! #include "md5.h" ! ! #ifndef __BYTE__ ! #define __BYTE__ ! typedef unsigned char byte; ! #endif ! ! ! /* ftuu context. */ ! typedef struct { ! struct MD5Context md5context; // for md5'ing the first 307,200 bytes ! unsigned long nextPos; // next byte location of the file to be processed ! unsigned int smallHash; // running weak hash of later file ranges ! unsigned int backupSmallHash; // in case the endrange overlaps the last internal range ! byte rollingBuffer[307200]; // the last 307,200 bytes read ! unsigned long nextSampleStart; // position where the next 307,200 range to be smallHashed ends ! } FTUU_CTX; ! ! void FTUUInit(FTUU_CTX * ); ! void FTUUUpdate(FTUU_CTX *, const unsigned char *, unsigned int); ! void FTUUFinal(unsigned char [20], FTUU_CTX *); ! ! void bitziEncodeBase64(byte *, int , char *); ! ! #endif --- 1,33 ---- ! /* Support for calculating fasttrack identifiers ! * ! * $Id$ ! */ ! ! #ifndef __FTUUHASH_H__ ! #define __FTUUHASH_H__ ! ! #include "md5.h" ! ! #ifndef __BYTE__ ! #define __BYTE__ ! typedef unsigned char byte; ! #endif ! ! ! /* ftuu context. */ ! typedef struct { ! struct MD5Context md5context; // for md5'ing the first 307,200 bytes ! unsigned long nextPos; // next byte location of the file to be processed ! unsigned int smallHash; // running weak hash of later file ranges ! unsigned int backupSmallHash; // in case the endrange overlaps the last internal range ! byte rollingBuffer[307200]; // the last 307,200 bytes read ! unsigned long nextSampleStart; // position where the next 307,200 range to be smallHashed ends ! } FTUU_CTX; ! ! void FTUUInit(FTUU_CTX * ); ! void FTUUUpdate(FTUU_CTX *, const unsigned char *, unsigned int); ! void FTUUFinal(unsigned char [20], FTUU_CTX *); ! unsigned int hashSmallHash(byte *, size_t , unsigned int ); ! void bitziEncodeBase64(byte *, int , char *); ! ! #endif |