feat: use constant-time equality checking for DHKE#232
feat: use constant-time equality checking for DHKE#232SWvheerden merged 1 commit intotari-project:mainfrom
Conversation
2dab023 to
9740715
Compare
stringhandler
left a comment
There was a problem hiding this comment.
While the intention to use this type is good, I think this type mostly is unused. It adds very little apart from being a marker trait. I feel that now that we are adding code to make it less vulnerable means that it is more harm than good. I would suggest that we instead delete this type and it's usages and replace them with the standard public key
|
sorry, this PR is fine, but I think the type should be deleted instead |
|
@stringhandler I get where you're coming from, but the intent isn't for this to simple be a Removing the type and simply using a As to this PR specifically, it was noted in #219 that while we can require constant-time equality support for |
stringhandler
left a comment
There was a problem hiding this comment.
After discussing this offline, I'm happy to merge it
This PR ensures that
DiffieHellmanSharedSecretequality testing is done in constant time.Previously, this equality testing was offloaded to the underlying
PublicKeytype. While this type supports theConstantTimeEqtrait, it is not guaranteed that equality testing will use this in all implementations.