Skip to content

ECDSA minor refactor#25

Merged
tarakby merged 3 commits into
mainfrom
tarak/ecdsa
Mar 28, 2025
Merged

ECDSA minor refactor#25
tarakby merged 3 commits into
mainfrom
tarak/ecdsa

Conversation

@tarakby

@tarakby tarakby commented Mar 26, 2025

Copy link
Copy Markdown
Collaborator

ECDSA minor refactor preparing for Go 1.24 support

  • add a readme note about the lastest Go version supported (currently 1.23)
  • compute the go crypto/ecdsa public key field when constructing a private key structure
  • internal function naming adjustment
  • update some go dependencies

@tarakby tarakby requested a review from Kay-Zee March 26, 2025 19:32
Comment thread ecdsa.go
alg: a,
goPrKey: sk,
pubKey: nil, // public key is not computed
pubKey: nil, // public key is not constructed

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Now that we do the computation right away, does defering construction still bring some amount of benefit?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

The benefit is negligible, it only saves the extra structure allocation.
The real reason is that I wanted this PR to make minimal changes till I work on supporting 1.24. There will be more internal changes at that time (to also remove the usage of deprecated functions) and I don't exclude getting back to the status where the public key computation isn't needed (non FIPS 140-3).

@tarakby tarakby merged commit bec7f62 into main Mar 28, 2025
@tarakby tarakby deleted the tarak/ecdsa branch March 28, 2025 23:29
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