Click here to Skip to main content
15,907,233 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How does net start service_name.exe call the service? Pin
Tim Smith3-May-02 9:59
Tim Smith3-May-02 9:59 
GeneralRe: How does net start service_name.exe call the service? Pin
Craig Miller3-May-02 10:13
Craig Miller3-May-02 10:13 
GeneralRe: How does net start service_name.exe call the service? Pin
Tim Smith3-May-02 10:36
Tim Smith3-May-02 10:36 
GeneralRe: How does net start service_name.exe call the service? Pin
Craig Miller3-May-02 11:44
Craig Miller3-May-02 11:44 
GeneralTest my new hash algorithm Pin
Dominik Reichl3-May-02 8:42
Dominik Reichl3-May-02 8:42 
GeneralRe: Test my new hash algorithm Pin
Tim Smith3-May-02 9:08
Tim Smith3-May-02 9:08 
GeneralRe: Test my new hash algorithm Pin
Dominik Reichl3-May-02 9:12
Dominik Reichl3-May-02 9:12 
GeneralRe: Test my new hash algorithm Pin
Tim Smith3-May-02 9:53
Tim Smith3-May-02 9:53 
Ok, I have found many failures so far.

1. The following two data streams match (all bytes processed in one UFH_HashIn)

unsigned char szData1 [] = { 1, 0x80, 2, 3, 1,    0, 2, 3 };
unsigned char szData2 [] = { 1,    0, 2, 3, 1, 0x80, 2, 3 };


2. These two data streams match (all bytes processed in one UFH_HashIn)

unsigned char szData1 [] = { 0 };
unsigned char szData2 [] = { 0, 0 };


3. These two data stream match (all bytes processed in one UFH_HashIn). This is really a variant on #2.

unsigned char szData1 [] = { 1 };
unsigned char szData2 [] = { 1, 0 };


4. The routine is very depending on how a stream is processed. Given the following stream, if 5 bytes are processed followed by 3 to generate the first hash, and then all 8 bytes are processed to generate a new hash, the resulting values do not match. Thus giving you a false failure to match.

unsigned char szData1 [] = { 1, 0x80, 2, 3, 1,    0, 2, 3 };


Many of the problems you have are the exact problems that CRC-32 try to fix. Now even CRC32 can have a problem with test case #2 *IF* a value of 0 is used for the seed. But the other failures wouldn't happen with CRC32.

Tim Smith

I know what you're thinking punk, you're thinking did he spell check this document? Well, to tell you the truth I kinda forgot myself in all this excitement. But being this here's CodeProject, the most powerful forums in the world and would blow your head clean off, you've got to ask yourself one question, Do I feel lucky? Well do ya punk?
GeneralStandard Form prob! Pin
Steven Richardson3-May-02 8:42
Steven Richardson3-May-02 8:42 
Generalsorting ctreectrl's items Pin
3-May-02 8:01
suss3-May-02 8:01 
Generalrepost: my math problem Pin
lucy3-May-02 6:51
lucy3-May-02 6:51 
QuestionVStudio setting to see macro expansion? Pin
hiseldl3-May-02 6:10
hiseldl3-May-02 6:10 
AnswerRe: VStudio setting to see macro expansion? Pin
Tom Archer3-May-02 6:36
Tom Archer3-May-02 6:36 
GeneralRe: VStudio setting to see macro expansion? Pin
lucy3-May-02 6:55
lucy3-May-02 6:55 
GeneralRe: VStudio setting to see macro expansion? Pin
Tom Archer3-May-02 7:02
Tom Archer3-May-02 7:02 
GeneralRe: VStudio setting to see macro expansion? Pin
lucy3-May-02 7:11
lucy3-May-02 7:11 
GeneralRe: VStudio setting to see macro expansion? Pin
Tom Archer3-May-02 7:18
Tom Archer3-May-02 7:18 
GeneralRe: VStudio setting to see macro expansion? Pin
lucy3-May-02 7:39
lucy3-May-02 7:39 
GeneralRe: VStudio setting to see macro expansion? Pin
Tom Archer3-May-02 10:08
Tom Archer3-May-02 10:08 
GeneralRe: VStudio setting to see macro expansion? Pin
hiseldl3-May-02 7:30
hiseldl3-May-02 7:30 
GeneralRe: VStudio setting to see macro expansion? Pin
Tom Archer3-May-02 7:35
Tom Archer3-May-02 7:35 
QuestionDebug Assertion? Pin
Aoife3-May-02 5:08
Aoife3-May-02 5:08 
AnswerRe: Debug Assertion? Pin
mystro_AKA_kokie3-May-02 5:17
mystro_AKA_kokie3-May-02 5:17 
GeneralRe: Debug Assertion? Pin
Aoife3-May-02 5:31
Aoife3-May-02 5:31 
AnswerRe: Debug Assertion? Pin
Tim Smith3-May-02 5:30
Tim Smith3-May-02 5:30 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.