Closed skmcgrail closed 2 months ago
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 78.34%. Comparing base (
79ec696
) to head (c8abc8c
). Report is 15 commits behind head on main.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Description of changes:
Enables ACVP testing of SHA3 signatures with RSA for PKCS#1.5 signatures and PSS signatures.
How are new algorithms added to
kPKCS1SigPrefixes
?This is my outline of how I generated the prefixes for additional algorithms:
For each algorithm:
Generate an arbitrary digest using the digest algorithm
Make a file with the ASN.1 definition and content, being sure to set
id
to the correct algorithm OID name, anddigest
to the arbitrary digest from step 1.[info] alg = SEQUENCE:alg digest = FORMAT:HEX,OCT:a7ffc6f8bf1ed76651c14756a061d662f580ff4de43b49fa82d80a4b80f8434a
[alg] id = OID:SHA3-256 param = NULL
EOF
$ openssl asn1parse -genconf ~/encoding.txt -out ~/encoding.der
$ xxd -i < ~/encoding.der 0x30, 0x31, 0x30, 0x0d, 0x06, 0x09, 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x04, 0x02, 0x08, 0x05, 0x00, 0x04, 0x20, 0xa7, 0xff, 0xc6, 0xf8, 0xbf, 0x1e, 0xd7, 0x66, 0x51, 0xc1, 0x47, 0x56, 0xa0, 0x61, 0xd6, 0x62, 0xf5, 0x80, 0xff, 0x4d, 0xe4, 0x3b, 0x49, 0xfa, 0x82, 0xd8, 0x0a, 0x4b, 0x80, 0xf8, 0x43, 0x4a
0x30, 0x31, 0x30, 0x0d, 0x06, 0x09, 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x04, 0x02, 0x08, 0x05, 0x00, 0x04, 0x20