Fixes typo in ecdsa error message (#373)

This commit is contained in:
Tim Scheuermann 2024-01-12 19:22:13 +01:00 committed by GitHub
parent 4d0edcd99c
commit 3c0777d0c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -62,7 +62,7 @@ func (m *SigningMethodECDSA) Verify(signingString string, sig []byte, key interf
case *ecdsa.PublicKey: case *ecdsa.PublicKey:
ecdsaKey = k ecdsaKey = k
default: default:
return newError("ECDSA verify expects *ecsda.PublicKey", ErrInvalidKeyType) return newError("ECDSA verify expects *ecdsa.PublicKey", ErrInvalidKeyType)
} }
if len(sig) != 2*m.KeySize { if len(sig) != 2*m.KeySize {
@ -96,7 +96,7 @@ func (m *SigningMethodECDSA) Sign(signingString string, key interface{}) ([]byte
case *ecdsa.PrivateKey: case *ecdsa.PrivateKey:
ecdsaKey = k ecdsaKey = k
default: default:
return nil, newError("ECDSA sign expects *ecsda.PrivateKey", ErrInvalidKeyType) return nil, newError("ECDSA sign expects *ecdsa.PrivateKey", ErrInvalidKeyType)
} }
// Create the hasher // Create the hasher