Repository navigation
Fix encoding of AlgorithmIdentifier.parameters of Digests, add support of Shake-based signatures. - #906
Fix encoding of AlgorithmIdentifier.parameters of Digests, add support of Shake-based signatures.#906xipki wants to merge 0 commit into
Conversation
|
I think we'll need to take small steps with this one, I agree with most of it, but it's a bit of a rabbit warren. For example the change: else if (sigAlgId.getAlgorithm().equals(EdECObjectIdentifiers.id_Ed448))
is incorrect. What's currently there is based on RFC 8419, Section 3.1. It's very easy to blow one's foot off here... If there's no objection, I'll make some small corrections first and then get you to update. |
|
One other one, would you generate a couple of PSS signatures using SHAKE128 and SHAKE256 and send me enough details so I can verify them. There's another way of adding PSS for these, assuming we both produce the same results there is a better chance that the RFC has been followed correctly. Thanks. |
|
I will re-submit the pull requests. |
|
Sure, by the way I've found a source of test vectors for PSS. |
|
I've just pushed some code for PSS and ECDSA, it combines RFC 8702 and the draft of FIPS 186-5. Please take a look and poke a bit... The only doubtful one seems to be ECDSA with SHAKE128 not passing the test vectors I have, but they may actually be incorrect. The SHAKE256 vectors from the same provider do match up, investigating. |
|
Reviewed your changes, they are fine. It would be better, if you can also specify the source of the test vectors. |
|
Thanks, I generated the vectors from the ACVP demo system. They are apparently planning to start publishing vectors for download sometime soon - when that happens I'll update so people have a definitive source to check against. |
added support for ECDSA with SHAKE128/SHAKE256 (some from github bcgit#906)
For the SHAKE-based signatures, I cannot find test vectors, so please review the code before merge.