Skip to content

Wycheproof tests vectors #1106

@real-or-random

Description

@real-or-random

Though we have good tests, the Wycheproof test vectors will be a good addition.

  • The ECDSA test vectors are probably most interesting but some test vectors are incompatible with Bitcoin (see Distinguish ECDSA malleability? C2SP/wycheproof#70). We asked for other vectors there but they don't respond currently. But even if we disable the incompatible vectors (after careful checking), the other vectors will be a good addition
  • Not sure if we can ECDH to work but I expect it will work at least with a custom derivation function
  • SHA256 and HMAC should not be an issue

The test cases are in a simple JSON format: https://github.com/google/wycheproof/tree/master/testvectors We could either parse them (e.g., https://github.com/zserge/jsmn is very thin, MIT single-header parser that we ), or have a small script (in whatever language) that converts the vectors to C code.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions