func (s *sigHead) verify(pl []byte, key interface{}, method crypto.SigningMethod) error { if s.method.Alg() != method.Alg() || s.method.Hasher() != method.Hasher() { return ErrMismatchedAlgorithms } return method.Verify(format(s.Protected, pl), s.Signature, key) }