Skip to content

Commit 3c0777d

Browse files
authored
Fixes typo in ecdsa error message (#373)
1 parent 4d0edcd commit 3c0777d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ecdsa.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ func (m *SigningMethodECDSA) Verify(signingString string, sig []byte, key interf
6262
case*ecdsa.PublicKey:
6363
ecdsaKey=k
6464
default:
65-
returnnewError("ECDSA verify expects *ecsda.PublicKey", ErrInvalidKeyType)
65+
returnnewError("ECDSA verify expects *ecdsa.PublicKey", ErrInvalidKeyType)
6666
}
6767

6868
iflen(sig) !=2*m.KeySize {
@@ -96,7 +96,7 @@ func (m *SigningMethodECDSA) Sign(signingString string, key interface{}) ([]byte
9696
case*ecdsa.PrivateKey:
9797
ecdsaKey=k
9898
default:
99-
returnnil, newError("ECDSA sign expects *ecsda.PrivateKey", ErrInvalidKeyType)
99+
returnnil, newError("ECDSA sign expects *ecdsa.PrivateKey", ErrInvalidKeyType)
100100
}
101101

102102
// Create the hasher

0 commit comments

Comments
 (0)
close