Adapt ASN1_item_sign_ctx() for use with provided keypairs#10920
Adapt ASN1_item_sign_ctx() for use with provided keypairs#10920levitte wants to merge 10 commits intoopenssl:masterfrom
Conversation
|
The EXPERIMENTAL (#10797) test failure that triggered this is |
|
Travis failure appears relevant. |
|
There will be corresponding work for ASN1_item_verify_ctx. That's a bit more involved because of horrid SM2 hackery in x_all.c. I'm pondering if I should make that a separate PR or include that in this PR. Thoughts? |
It should be fine now |
Rebuilt the failing travis tests (now that the error in master is fixed). |
6e0f879 to
4b10f1d
Compare
|
There is a memory leak.. |
|
Is Travis relevant here? (fuzz test failure). |
Its a memory leak picked up by asan |
|
Time for a re-review |
1b593bc to
71ee5da
Compare
The mechanism to do this is to ask the signature operation for the DER encoded AlgorithmIdentifier that corresponds to the combination of signature algorithm and digest algorithm.
ec5fd73 to
62e2474
Compare
The mechanism to do this is to ask the signature operation for the DER encoded AlgorithmIdentifier that corresponds to the combination of signature algorithm and digest algorithm. Reviewed-by: Shane Lontis <[email protected]> (Merged from #10920)
…tifiers Reviewed-by: Shane Lontis <[email protected]> (Merged from #10920)
Reviewed-by: Shane Lontis <[email protected]> (Merged from #10920)
| ENCODE_ALGORITHMIDENTIFIER_SHAx(sha3_224, 5); | ||
| ENCODE_ALGORITHMIDENTIFIER_SHAx(sha3_256, 6); | ||
| ENCODE_ALGORITHMIDENTIFIER_SHAx(sha3_384, 7); | ||
| ENCODE_ALGORITHMIDENTIFIER_SHAx(sha3_512, 8); |
There was a problem hiding this comment.
This is perfect for FIPS. It isn't so good if dsa-with-XXX exists for other digests. Probably more of an issue for ECDSA than here.
The mechanism to do this is to ask the signature operation for the DER
encoded AlgorithmIdentifier that corresponds to the combination of
signature algorithm and digest algorithm.
The provided DSA implementation is adapted to suit.