Comments (6)
@eldruin I had come across your rust port, but hadn't seen this test utility, so thanks for the pointer đ
from wyhash.
Dear Cocowalla:
I am not sure about the meaning of "test vectors". I guess the simplest way to verify a ported code is to run the c version and c# version seperately, and compare them.
thanks!
from wyhash.
Test vectors are inputs along with their expected outputs, and are commonly published for ciphers and hashes (although for some reason they seem to be more commonly published for cryptographic hashes, rather than non-cryptographic ones đ€·ââïž).
For example, in the MD5 RFC some vectors are included in section A.5, some are published on the RIPEMD160 website, and NIST publishes test vectors for various algorithms.
I can of course run the C version myself, but it would be really useful to have an authoritative list published here. This might also help, for example, if different results are observed on different processor architectures, or if different compilers produce different results.
from wyhash.
thanks for your comment! I add test vectors in readme
from wyhash.
Historically at least the hash results have changed in between revisions. In my rust implementation of wyhash I added a small program that downloads the reference version of wyhash for my implementation automatically and generates the hashes and random numbers for a list of inputs which I later use in my tests.
from wyhash.
Looks like they're gone, would you mind putting them back ?
I guess that the version 2 of wyhash also changed their results.
from wyhash.
Related Issues (20)
- v4 has even more bad seeds HOT 5
- Benchmark not measuring what you expect
- How do you use practrand? HOT 2
- License issue
- Using wyhash64 to mix numbers into prngs? HOT 5
- New release for wy_hash_final4?
- WyRand fails 64-bit 1-dimensional collision tests HOT 14
- Streaming hash HOT 1
- `make_secret` but for strings or other data
- Link to absl's wyhash implement seems to be changed. HOT 1
- WyRand64 (bit reversed) fails PractRand at 32TB HOT 3
- Question about wymum HOT 1
- Full round for every multiple 48-bytes, including last one HOT 1
- Secret seeds and primes HOT 4
- sprp and is_prime should be static inline?
- c-string optimized version?
- wy2u0k returns [1, k] instead of [0, k) when WYHASH_CONDOM=2
- wyhash election started HOT 1
- æŻćŠćŻèœç»ćœæ°æŽć€çç” HOT 2
- Is wy2u01 mistakenly not making use of all 53 bits?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
đ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. đđđ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google â€ïž Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wyhash.