brycx / pasetors

PASETOrs: PASETO tokens in pure Rust
MIT License
91 stars 10 forks source link

v3: Update test vectors with normalized S value sigs #130

Closed brycx closed 3 weeks ago

brycx commented 3 weeks ago

closes #122

Before this change, we had the signatures generated by v3.public be tested to be reproducible. Such that we given the same input could generate the same token. This is possible because we employ deterministic nonces.

New test vectors for v3.public have been issued (https://github.com/paseto-standard/test-vectors/releases/tag/v1.3.0) to only include low-S/normalized S. These test vectors we can't reproduce the tokens for, and thus that part of the tests have been removed. Justification of removal:

Note: During tests with the new vectors and using elliptic-curve's provided normalize_s() internally for the signature, didn't reproduce either, suggesting maybe the new test vectors were generated non-deterministically or the normalization routine used in generation of them differed somehow.