| rfc9923v9.txt | rfc9923.txt | |||
|---|---|---|---|---|
| skipping to change at line 5274 ¶ | skipping to change at line 5274 ¶ | |||
| e32Context.Computed = FNVclobber+FNV32state; | e32Context.Computed = FNVclobber+FNV32state; | |||
| TestBlockin (FNV32blockin, e32Context, FNV32context) | TestBlockin (FNV32blockin, e32Context, FNV32context) | |||
| TestStringin (FNV32stringin, e32Context, FNV32context) | TestStringin (FNV32stringin, e32Context, FNV32context) | |||
| TestFilein (FNV32filein, e32Context, FNV32context) | TestFilein (FNV32filein, e32Context, FNV32context) | |||
| TestResult (FNV32result, e32Context, FNV32context) | TestResult (FNV32result, e32Context, FNV32context) | |||
| TestINTrf(FNV32INTresult,FNV32INTfile,FNV32INTfileBasis, | TestINTrf(FNV32INTresult,FNV32INTfile,FNV32INTfileBasis, | |||
| e32Context,FNV32context,eUint32,uint32_t) | e32Context,FNV32context,eUint32,uint32_t) | |||
| ErrTestReport (); | ErrTestReport (); | |||
| Terr = 0; | Terr = 0; | |||
| err = TestR ( "fnv0s", fnvSuccess, | err = TestR ( "fnv0s", fnvSuccess, | |||
| FNV32stringBasis ( BasisString, hash, ZeroBasis ) ); | FNV32stringBasis ( BasisString, hash, ZeroBasis ) ); | |||
| if ( err == fnvSuccess ) { | if ( err == fnvSuccess ) { | |||
| hash[0] ^= '\\'; | hash[0] ^= '\\'; | |||
| TestNValue ( "fnv0sv32", BasisString, FNV32size, | TestNValue ( "fnv0sv32", BasisString, FNV32size, | |||
| hash, (uint8_t *)&FNV32svalues[0]); | hash, (uint8_t *)&FNV32svalues[0]); | |||
| } | } | |||
| BasisINTZero (FNV32INTstringBasis,FNV32size,FNV32svalues, \ | BasisINTZero (FNV32INTstringBasis,FNV32size,FNV32svalues, \ | |||
| eUint32,uint32_t) | eUint32,uint32_t) | |||
| for ( i = 0; i < NTstrings; ++i ) { | for ( i = 0; i < NTstrings; ++i ) { | |||
| /* test actual results int */ | /* test actual results int */ | |||
| err = TestR ( "stringai", fnvSuccess, | err = TestR ( "stringai", fnvSuccess, | |||
| skipping to change at line 5395 ¶ | skipping to change at line 5395 ¶ | |||
| TestBlockin (FNV64blockin, e64Context, FNV64context) | TestBlockin (FNV64blockin, e64Context, FNV64context) | |||
| TestStringin (FNV64stringin, e64Context, FNV64context) | TestStringin (FNV64stringin, e64Context, FNV64context) | |||
| TestFilein (FNV64filein, e64Context, FNV64context) | TestFilein (FNV64filein, e64Context, FNV64context) | |||
| TestResult (FNV64result, e64Context, FNV64context) | TestResult (FNV64result, e64Context, FNV64context) | |||
| TestINTrf(FNV64INTresult,FNV64INTfile,FNV64INTfileBasis, | TestINTrf(FNV64INTresult,FNV64INTfile,FNV64INTfileBasis, | |||
| e64Context,FNV64context,eUint64,uint64_t) | e64Context,FNV64context,eUint64,uint64_t) | |||
| ErrTestReport (); | ErrTestReport (); | |||
| /* test actual results int */ | /* test actual results int */ | |||
| Terr = 0; | Terr = 0; | |||
| err = TestR ( "fnv0s", fnvSuccess, | err = TestR ( "fnv0s", fnvSuccess, | |||
| FNV64stringBasis ( BasisString, hash, ZeroBasis ) ); | FNV64stringBasis ( BasisString, hash, ZeroBasis ) ); | |||
| if ( err == fnvSuccess ) { | if ( err == fnvSuccess ) { | |||
| hash[0] ^= '\\'; | hash[0] ^= '\\'; | |||
| TestNValue ( "fnv0sv64", BasisString, FNV64size, | TestNValue ( "fnv0sv64", BasisString, FNV64size, | |||
| hash, (uint8_t *)&FNV64svalues[0]); | hash, (uint8_t *)&FNV64svalues[0]); | |||
| } | } | |||
| BasisINTZero (FNV64INTstringBasis,FNV64size,FNV64svalues, \ | BasisINTZero (FNV64INTstringBasis,FNV64size,FNV64svalues, \ | |||
| eUint64,uint64_t) | eUint64,uint64_t) | |||
| for ( i = 0; i < NTstrings; ++i ) { | for ( i = 0; i < NTstrings; ++i ) { | |||
| /* test actual results int */ | /* test actual results int */ | |||
| err = TestR ( "stringai", fnvSuccess, | err = TestR ( "stringai", fnvSuccess, | |||
| skipping to change at line 6239 ¶ | skipping to change at line 6239 ¶ | |||
| digest = digest.multiply(fnvPrime).mod(m); | digest = digest.multiply(fnvPrime).mod(m); | |||
| } | } | |||
| return (digest); | return (digest); | |||
| } | } | |||
| } | } | |||
| <CODE ENDS> | <CODE ENDS> | |||
| Acknowledgements | Acknowledgements | |||
| Significant contributions were made by Glenn S. Fowler. | The authors greatly appreciate the work of Glenn S. Fowler, who was | |||
| part of the team that created the FNV algorithm. | ||||
| The contributions of the following, listed in alphabetical order, are | The contributions of the following, listed in alphabetical order, are | |||
| gratefully acknowledged: | gratefully acknowledged: | |||
| Roman Donchenko, Frank Ellermann, Stephen Farrell, Tony Finch, Paul | Roman Donchenko, Frank Ellermann, Stephen Farrell, Tony Finch, Paul | |||
| Hoffman, Charlie Kaufman, Eliot Lear, Bob Moskowitz, Gayle Noble, | Hoffman, Charlie Kaufman, Eliot Lear, Bob Moskowitz, Gayle Noble, | |||
| Stefan Santesson, Mukund Sivaraman, and Paul Wouters. | Stefan Santesson, Mukund Sivaraman, and Paul Wouters. | |||
| Authors' Addresses | Authors' Addresses | |||
| End of changes. 3 change blocks. | ||||
| 3 lines changed or deleted | 4 lines changed or added | |||
This html diff was produced by rfcdiff 1.48. | ||||