Git Product home page Git Product logo

slh-dsa-py's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

gmh5225

slh-dsa-py's Issues

slh-dsa.py key generation issue

Hi,

I was looking at the kat directory, and I'm not sure if key generation is being done correctly?

I have the sphincsplus consistent-based branch installed and I've run PQCgenKAT_sign for sphincs-sha2-128f. I then hashed the resulting PQCsignKAT_64.rsp and verified its value against the value listed for sphincs-sha2-128f-robust at https://github.com/sphincs/sphincsplus/blob/consistent-basew/SHA256SUMS#L13C1-L13C90 and the values match.

Looking closer at PQCsignKAT_64.rsp for sphincs-sha2-128f, the values for count = 0 are (I omitted sm as it was so large):

seed = 061550234D158C5EC95595FE04EF7A25767F2E24CC2BC479D09D86DC9ABCFDE7056A8C266F9EF97ED08541DBD2E1FFA1
mlen = 33
msg = D81C4D8D734FCBFBEADE3D3F8A039FAA2A2C9957E835AD55B22E75BF57BB556AC8
pk = B505D7CFAD1B497499323C8686325E473985E5A31E5B9A0457916C84320C2EA8
sk = 7C9935A0B07694AA0C6D10E4DB6B1ADD2FD81A25CCB148032DCD739936737F2DB505D7CFAD1B497499323C8686325E473985E5A31E5B9A0457916C84320C2EA8
smlen = 17121

The values calculated by your py implementation from https://github.com/mjosaarinen/slh-dsa-py/blob/main/kat/sphincs-sha2-128f-simple.rsp.1 are:

seed = 061550234D158C5EC95595FE04EF7A25767F2E24CC2BC479D09D86DC9ABCFDE7056A8C266F9EF97ED08541DBD2E1FFA1
mlen = 33
msg = D81C4D8D734FCBFBEADE3D3F8A039FAA2A2C9957E835AD55B22E75BF57BB556AC8
pk = B505D7CFAD1B497499323C8686325E47FDF7400AB7A5D8C7ABA7350AC4092ADD
sk = 7C9935A0B07694AA0C6D10E4DB6B1ADD2FD81A25CCB148032DCD739936737F2DB505D7CFAD1B497499323C8686325E47FDF7400AB7A5D8C7ABA7350AC4092ADD
smlen = 17121

Notice that the last 32 characters of pk and sk differ.

Thanks,

Ben

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.