Skip to content

Commit

Permalink
verifier: return error with non-EC pubkey type
Browse files Browse the repository at this point in the history
  • Loading branch information
Greg Guthe committed May 11, 2021
1 parent ac72d15 commit baedbde
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion verifier/contentsignature/verifier.go
Expand Up @@ -181,7 +181,7 @@ func Verify(input, certChain []byte, signature, rootHash string) error {
// Get the public key from the end-entity (certs[0] is the end entity)
key, ok := certs[0].PublicKey.(*ecdsa.PublicKey)
if !ok {
return fmt.Errorf("Cannot verify EE/leaf cert with non-ECDSA public key type: %T", key)
return fmt.Errorf("Cannot verify EE/leaf cert with non-ECDSA public key type: %T", certs[0].PublicKey)
}
// parse the json signature
sig, err := Unmarshal(signature)
Expand Down

0 comments on commit baedbde

Please sign in to comment.