Skip to content

Commit

Permalink
Add ecdsa p521 support
Browse files Browse the repository at this point in the history
  • Loading branch information
J3imip committed Jan 6, 2025
1 parent 0f936a5 commit 4fbe21b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/types/signature_algorithm.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ func verifyECDSA(data, sig []byte, publicKey *ecdsa.PublicKey) error {
// Handle raw (r || s) signature format
var index int
switch len(sig) {
case 132:
index = 66
case 64:
index = 32
case 56:
Expand Down

0 comments on commit 4fbe21b

Please sign in to comment.