Skip to content

Conversation

@makavity
Copy link
Contributor

  • ecdh - generic param for hash
  • remove deprecated stuff
  • verify is constant time now


// 8. If 𝑆0 != 𝑡, return NO.
if s0 == &t.as_slice()[..16] {
if s0.ct_eq(&t.as_slice()[..16]).into() {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doesn't typically matter in a verification context, unless you want whole algorithm to be constant-time for some reason (I know there are some cases of "unusual requirements" for that)

FWIW I hope in the next release we can switch to using wNAF for verification which will be variable-time but faster. The ecdsa crate already makes use of variable-time inversions.

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