-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use
ecdsa.{SignASN1,VerifyASN1}
in `subtle.{ECDSASigner,ECDSAVerifi…
…er}` This avoids using the legacy `ecdsa.Sign` [1] for DER encoded signatures -- this is still used for the IEEE_P1363 encoding, and `ecdsa.Verify` [2]. The `crypto/ecdsa` package is moving away from using `math/big` [3]. [1] https://github.com/golang/go/blob/fe7d97d0322c283462b38c0f53bc340b642fe1cb/src/crypto/ecdsa/ecdsa_legacy.go#L59 [2] https://github.com/golang/go/blob/fe7d97d0322c283462b38c0f53bc340b642fe1cb/src/crypto/ecdsa/ecdsa_legacy.go#L135 [3] golang/go@08f2091 PiperOrigin-RevId: 698354627 Change-Id: I3b83575d614a65127f480a41cf90d76288444f4c
- Loading branch information
1 parent
8401621
commit 9a4e757
Showing
2 changed files
with
39 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters