Git Product home page Git Product logo

xmss-reference's People

Contributors

ahuelsing avatar bwesterb avatar dcooper16 avatar jamathews avatar joostrijneveld avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

xmss-reference's Issues

hash_message wrong when padding_len < n

hash_message expects the message at offset 4n. When padding_len < n, then it computes H(PADDING_HASH || R || Root || 0...0 || M') instead of H(PADDING_HASH || R || Root || M) as described by the NIST draft (where M' is M with last n - padding_len bytes truncated.)

fast and "general" versions are not interoperable

(linux_crypto) developer@9a6f15be17ac:~/python-virtual-environments/linux/linux_crypto/xmss-reference/ui$ ./xmss_keypair XMSS-SHA2_10_256 > ref.key
(linux_crypto) developer@9a6f15be17ac:~/python-virtual-environments/linux/linux_crypto/xmss-reference/ui$ ./xmss_sign_fast ref.key message.txt > msg_signed.txt
Segmentation fault
(linux_crypto) developer@9a6f15be17ac:~/python-virtual-environments/linux/linux_crypto/xmss-reference/ui$ ./xmss_keypair_fast XMSS-SHA2_10_256 > fast.key
(linux_crypto) developer@9a6f15be17ac:~/python-virtual-environments/linux/linux_crypto/xmss-reference/ui$ ./xmss_sign_fast fast.key message.txt > msg_signed.txt

VLAs

Variable Length Allocations are used in the reference code.

Refactoring of these are recommended for anyone building off this codebase, although it is accepted that the risk posed is minimal.

test xmss_fast fails last iteration (#1023)

last iteration fails. Here is the output:

  - iteration #1022:
    smlen as expected [2532].
    verification succeeded.
    mlen as expected [32].
    output message as expected.
    flipping a bit of m invalidates signature.
  - iteration #1023:
    smlen as expected [2532].
  X verification failed!
  X mlen incorrect [0 != 32]!
  X output message incorrect!
    flipping a bit of m invalidates signature.

target machine: PC x86_64

xmss_xmssmt_initialize_params() does not initialize params->padding_len

Hello,

The description of xmss_xmssmt_initialize_params() suggests that it would initialize a "params" structure from the sort of data that is available in SP 800-208 tables. At least padding_len is left untouched, which causes unpredictable behavior if you try to use it.

Cheers,

  • markku

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.