Skip to content
Discussion options

You must be logged in to vote

1.59 is the release you're looking for. 1.58 still has the extra provider prehash; 1.59 streams the message directly to SM2Signer

there's a historical report for exactly what you found. #218 calls out both repeated sm3 hashing and the missing default id, with bcgit acknowledging the mistake. commit b071aa17 addresses both. the 1.59 release note explicitly records the default-id fix

for your last question, the 1.57 source amounts to signing SM3(M) as the message with an empty id. i'd try verifying those prehashed bytes, using the same public key and empty id. verification against M checks a different input, so those failures don't establish that no standard implementation could verify the …

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by Juwan-Hwang
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants