Closed dajiaji closed 2 years ago
All of these tests are automatically tested here: https://github.com/paragonie/paserk-php/tree/master/tests/KAT
The JSON files are replicated here: https://github.com/paragonie/paserk-php/tree/master/tests/test-vectors
https://github.com/paragonie/paserk-php/commit/c2194adbd2faa9a9f26c2fc833f40964e3085beb And. indeed, it breaks.
Sorry. I guess I should have asked you to fix this.
Should I fix it? Or should I leave it to you?
Because of the bug that I mentioned in https://github.com/paragonie/paserk-php/pull/3, I think key wrapping test vectors are wrong.
For example, the PASERK data in "k2.local-wrap.pie.json" would look like the following as an example:
I could send a PR to fix them, but you probably have your own style of creating test data, so please fix them.