Add table of OIDs for use when implementing HashML-DSA and HashSLH-DSA#331
Add table of OIDs for use when implementing HashML-DSA and HashSLH-DSA#331athoelke merged 2 commits intoARM-software:mainfrom
Conversation
MarcusJGStreets
left a comment
There was a problem hiding this comment.
I have not checked that you have copied and pasted the OIDs correctly.
But the structure looks good.
|
The OID values are correct (match the source documents). The DER-encoded hex values are just the data string part of the encoding - but are missing the OBJECT IDENTIFIER tag and data string length prefix bytes. For both ML-DSA and SLH-DSA I think these prefix bytes |
|
FIPS 204 and FIPS 205 state that the hash algorithm identifier string used in the Hash variants must have the OID tag and length included. I will amend this PR to add those bytes to the hex strings here. For RSASSA-PKCS#1, the OID is enclosed in an AlgorithmIdentifier structure, that must also have an explicit NULL parameters field (after the OID); which is itself included in the DigestInfoValue structure that has the hash value string following the AlgorithmIdentifier. We could clarify that the hex values provided in the table for RSASSA-PKCS#1 are just the OID data values for each hash algorithm? |
d9c63d6 to
8c3f5ed
Compare
Fixes #323