Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix HashVerifyECDSA function signature in notboring.go #93

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dbenoit17
Copy link
Collaborator

@dbenoit17 dbenoit17 commented Jul 13, 2023

We missed a spot changing from math/big.Int to openssl.BigInt.

@@ -61,7 +61,7 @@ func NewPublicKeyECDSA(curve string, X, Y BigInt) (*PublicKeyECDSA, error) {
func HashSignECDSA(priv *PrivateKeyECDSA, hash []byte, h crypto.Hash) (r, s BigInt, err error) {
panic("boringcrypto: not available")
}
func HashVerifyECDSA(pub *PublicKeyECDSA, msg []byte, r, s *big.Int, h crypto.Hash) bool {
func HashVerifyECDSA(pub *PublicKeyECDSA, msg []byte, r, s *BigInt, h crypto.Hash) bool {
Copy link
Collaborator

Choose a reason for hiding this comment

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

I'm not sure if this alone is correct; in the current git master, ecdsa.go defines both HashSignECDSA and HashVerifyECDSA with *big.Int. Maybe they should also be using *BigInt?

@karianna
Copy link
Collaborator

@dbenoit17 Are you able to address the comments in this review?

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.

3 participants