Skip to content

Commit 3e35798

Browse files
committed
register curve-to-algorithm mapping for Ed448
1 parent 570c11e commit 3e35798

3 files changed

Lines changed: 6 additions & 3 deletions

File tree

ed448.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ func init() {
3737
// Register Ed448 as valid algorithm for OKP key type
3838
jws.RegisterAlgorithmForKeyType(jwa.OKP(), jwa.EdDSAEd448())
3939

40+
// Register Ed448 algorithm for Ed448 curve (enables curve-specific algorithm filtering)
41+
jws.RegisterAlgorithmForCurve(jwa.Ed448(), jwa.EdDSAEd448())
42+
4043
// Register signer/verifier that handle JWK key unwrapping.
4144
// The dsig-circl-ed448 signer only accepts raw ed448 keys,
4245
// so we need this layer to convert JWK keys before dispatch.

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ go 1.25.0
55
require (
66
github.com/cloudflare/circl v1.6.3
77
github.com/lestrrat-go/dsig-circl-ed448 v0.0.0-20260402082439-9eb97b3a7f2e
8-
github.com/lestrrat-go/jwx/v3 v3.0.14-0.20260402234301-4ae43ddee427
8+
github.com/lestrrat-go/jwx/v3 v3.0.14-0.20260403051613-136a2d956850
99
)
1010

1111
require (

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ github.com/lestrrat-go/httpcc v1.0.1 h1:ydWCStUeJLkpYyjLDHihupbn2tYmZ7m22BGkcvZZ
1919
github.com/lestrrat-go/httpcc v1.0.1/go.mod h1:qiltp3Mt56+55GPVCbTdM9MlqhvzyuL6W/NMDA8vA5E=
2020
github.com/lestrrat-go/httprc/v3 v3.0.5 h1:S+Mb4L2I+bM6JGTibLmxExhyTOqnXjqx+zi9MoXw/TM=
2121
github.com/lestrrat-go/httprc/v3 v3.0.5/go.mod h1:mSMtkZW92Z98M5YoNNztbRGxbXHql7tSitCvaxvo9l0=
22-
github.com/lestrrat-go/jwx/v3 v3.0.14-0.20260402234301-4ae43ddee427 h1:xEyNWus/E7KGMK5EiWv0Z9un8LxHyCgyma9FfL+8ePU=
23-
github.com/lestrrat-go/jwx/v3 v3.0.14-0.20260402234301-4ae43ddee427/go.mod h1:LaVeWOQEoDvlcJUSN0F2xrJDm6++CvncT3cw4w3hbDY=
22+
github.com/lestrrat-go/jwx/v3 v3.0.14-0.20260403051613-136a2d956850 h1:SXYbvHjZ7CEwIE6KlDO1ixazE1t/nB1hNOC8Wjhp9Kg=
23+
github.com/lestrrat-go/jwx/v3 v3.0.14-0.20260403051613-136a2d956850/go.mod h1:LaVeWOQEoDvlcJUSN0F2xrJDm6++CvncT3cw4w3hbDY=
2424
github.com/lestrrat-go/option/v2 v2.0.0 h1:XxrcaJESE1fokHy3FpaQ/cXW8ZsIdWcdFzzLOcID3Ss=
2525
github.com/lestrrat-go/option/v2 v2.0.0/go.mod h1:oSySsmzMoR0iRzCDCaUfsCzxQHUEuhOViQObyy7S6Vg=
2626
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=

0 commit comments

Comments
 (0)