Giter Club home page Giter Club logo

Comments (6)

cocowalla avatar cocowalla commented on May 19, 2024 1

@eldruin I had come across your rust port, but hadn't seen this test utility, so thanks for the pointer 😄

from wyhash.

wangyi-fudan avatar wangyi-fudan commented on May 19, 2024

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.

cocowalla avatar cocowalla commented on May 19, 2024

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.

wangyi-fudan avatar wangyi-fudan commented on May 19, 2024

thanks for your comment! I add test vectors in readme

from wyhash.

eldruin avatar eldruin commented on May 19, 2024

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.

Sahnvour avatar Sahnvour commented on May 19, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.