Skip to content

Commit

Permalink
Fixes typo in ecdsa error message (#373)
Browse files Browse the repository at this point in the history
  • Loading branch information
tjs-cinemo committed Jan 12, 2024
1 parent 4d0edcd commit 3c0777d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ecdsa.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ func (m *SigningMethodECDSA) Verify(signingString string, sig []byte, key interf
case *ecdsa.PublicKey:
ecdsaKey = k
default:
return newError("ECDSA verify expects *ecsda.PublicKey", ErrInvalidKeyType)
return newError("ECDSA verify expects *ecdsa.PublicKey", ErrInvalidKeyType)
}

if len(sig) != 2*m.KeySize {
Expand Down Expand Up @@ -96,7 +96,7 @@ func (m *SigningMethodECDSA) Sign(signingString string, key interface{}) ([]byte
case *ecdsa.PrivateKey:
ecdsaKey = k
default:
return nil, newError("ECDSA sign expects *ecsda.PrivateKey", ErrInvalidKeyType)
return nil, newError("ECDSA sign expects *ecdsa.PrivateKey", ErrInvalidKeyType)
}

// Create the hasher
Expand Down

0 comments on commit 3c0777d

Please sign in to comment.