Skip to content

crypto.ecdsa: improves internal function of calc_digest_with_evpkey#23901

Merged
spytheman merged 2 commits into
vlang:masterfrom
blackshirt:ecdsa_cleansup_bits
Mar 11, 2025
Merged

crypto.ecdsa: improves internal function of calc_digest_with_evpkey#23901
spytheman merged 2 commits into
vlang:masterfrom
blackshirt:ecdsa_cleansup_bits

Conversation

@blackshirt

@blackshirt blackshirt commented Mar 11, 2025

Copy link
Copy Markdown
Contributor

The current internal rotine calc_digest_with_evpkey call key size calculations step before match block. This key size check only happens when you pass .with_custom_hash as an options., so, with default options, this calculation step was not needed in another options.

This PR improves it a bit by moving out this key size calculation step goes down inside .with_custom_hash branch of match block. In my benchmark, nothing significantly changes in the number, its only about $\pm$ 5% improvement.

@huly-for-github

Copy link
Copy Markdown

Connected to Huly®: V_0.6-22303

@blackshirt blackshirt changed the title crypto.ecdsa: improves internal function of 'calc_digest_with_evpkey' crypto.ecdsa: improves internal function of calc_digest_with_evpkey Mar 11, 2025
@spytheman spytheman merged commit de54be0 into vlang:master Mar 11, 2025
@blackshirt blackshirt deleted the ecdsa_cleansup_bits branch March 13, 2025 00:39
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