Skip to content

Add a portable KAT format, and a tool to produce and check it - #2

Closed
cce wants to merge 1 commit into
nullun:det512-buildfrom
cce:det512-build
Closed

cce wants to merge 1 commit into
nullun:det512-buildfrom
cce:det512-build

Conversation

@cce

@cce cce commented Sep 22, 2026 •

Copy link
Copy Markdown

The committed KAT arrays derive each key from a seeded PRNG, which no other implementation can reproduce. tests/kat_tool re-exports the same vectors with keys, public keys and messages as literal bytes, so a port in another language needs only a signer.

make kat         regenerate the committed files
make check-kat   re-derive every record and compare (added to CI)
make kat-full    write the exhaustive 512-record sets

See kat/README.md for the format.

The committed KAT arrays derive each key from a seeded PRNG, which no
other implementation can reproduce. tests/kat_tool re-exports the same
vectors with keys, public keys and messages as literal bytes, so a port
in another language needs only a signer.

  make kat         regenerate the committed files
  make check-kat   re-derive every record and compare (added to CI)
  make kat-full    write the exhaustive 512-record sets

See kat/README.md for the format.
@cce

cce commented Sep 22, 2026

Copy link
Copy Markdown
Author

unnecessary IMO. can just parse the KAT .h files

@cce cce closed this Sep 22, 2026
@cce
cce deleted the det512-build branch September 22, 2026 18:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant