Skip to content

Conversation

@oncilla
Copy link
Contributor

@oncilla oncilla commented Jun 17, 2025

Mirror of github/smimesign#97

Pass the public key instead of the marshalled public key to digestAlgorithmForPublicKey in SignedData.AddSignerInfo.

Previously, the marshalled public key was passed instead of the actual public key. The result is that always SHA256 was being selected, even for ECDSA where the hash algorithm should be selected based on the curve.

Mirror of github/smimesign#97

Pass the public key instead of the marshalled public key to
digestAlgorithmForPublicKey in SignedData.AddSignerInfo.

Previously, the marshalled public key was passed instead of the actual
public key. The result is that always SHA256 was being selected, even
for ECDSA where the hash algorithm should be selected based on the curve.
@oncilla oncilla enabled auto-merge (squash) July 3, 2025 14:27
@oncilla oncilla merged commit 3062768 into scionproto:master Jul 3, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants