Skip to content

Commit

Permalink
Fix after rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
lestrrat committed Feb 19, 2024
1 parent 9e12366 commit 4566c17
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
6 changes: 3 additions & 3 deletions jwk/ecdsa.go
Original file line number Diff line number Diff line change
Expand Up @@ -228,9 +228,9 @@ func ecdsaValidateKey(k interface {
X() []byte
Y() []byte
}, checkPrivate bool) error {
crv, ok := ecutil.CurveForAlgorithm(k.Crv())
if !ok {
return fmt.Errorf(`invalid curve algorithm %q`, k.Crv())
crv, err := ourecdsa.CurveFromAlgorithm(k.Crv())
if err != nil {
return fmt.Errorf(`invalid curve algorithm %q: %w`, k.Crv(), err)
}

keySize := ecutil.CalculateKeySize(crv)
Expand Down
4 changes: 0 additions & 4 deletions jws/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,7 @@ go_library(
deps = [
"//cert",
"//internal/base64",
<<<<<<< HEAD
"//internal/ecutil",
"//internal/iter",
=======
>>>>>>> 7497448 (Remove iterators (#999))
"//internal/json",
"//internal/keyconv",
"//internal/pool",
Expand Down

0 comments on commit 4566c17

Please sign in to comment.