Git Product home page Git Product logo

Comments (7)

dspdon avatar dspdon commented on April 28, 2024

Sorry, I believe I opened this in error.

from wycheproof.

dspdon avatar dspdon commented on April 28, 2024

I paused on this issue due to some insight I was receiving from Daniel regarding a KW and a KWP issue I opened. However, I see a different basis for concern here. The base85 test file contains a duplicate underscore symbol in the alphabet. The same alphabet is defined for all test cases. Having a duplicate symbol seems appropropriate for some test cases, but it seems unlikely to have been intended for all test cases.

Do you confirm two underscore symbols in the alphabet? I wonder if it downloaded properly.

from wycheproof.

bleichenbacher-daniel avatar bleichenbacher-daniel commented on April 28, 2024

Yes, this is a mistake. aes_ff1_radix85_test.json contains the same test vectors in a different format.

from wycheproof.

dspdon avatar dspdon commented on April 28, 2024

Thanks - I ran those radix85 test cases, they work fine. Will you be able to regenerate the base85 test with a unique alphabet? It would be nice to have that case for validation purposes.

from wycheproof.

bleichenbacher-daniel avatar bleichenbacher-daniel commented on April 28, 2024

Unfortunately, I don't have access to the generation code anymore since I'm no longer working at Google. This is sad because fixing this would probably require just 2 lines of change.
I'm working on it but regenerating the whole set of test vectors from scratch will take some time. FF1 is an algorithm that has many opportunities for mistakes. E.g., BouncyCastle had flaw that was caused by a floating point rounding error. After noticing this flaw, I did add quite a large number of additional test vectors for more edge cases. As far as I can see these test cases have not yet been uploaded.

from wycheproof.

dspdon avatar dspdon commented on April 28, 2024

from wycheproof.

bleichenbacher-daniel avatar bleichenbacher-daniel commented on April 28, 2024

Thanks a lot for looking into this issue.

Please note, that I can't upload any new files, since I don't have access. All the test vector files are generated and fixing them would best be done by fixing the generation code.

I was forced to write my own formatter for the test vector. Mainly, since the only pretty printer that generated reasonably looking output ran afoul with the style checkers and generated test vector files would trigger thousands of style violations. Personally, I don't care a lot about the amount of spaces used. Also, no spaces before ':' does indeed look better. More important is the format of the files, which could be checked with JSON schemas. Unfortunately, the schemas for testvector_v1 files are still missing on github. I would think that many test implementations would fail if "tests" just contain a single test vector instead of an array.

Thanks again, it is really sad that this issue cannot be fixed in reasonable time.

from wycheproof.

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.