def METHOD_NAME(self, data: bytes, signature: bytes, digest: HashAlgorithm | Prehashed) -> None:
    """Verify signature for string containing data."""
    with reraise_errors('Bad signature: {0!r}'):
        pad = padding.PSS(
            mgf=padding.MGF1(digest),
            salt_length=padding.PSS.MAX_LENGTH)
        self.get_pubkey().METHOD_NAME(signature, ensure_bytes(data), pad, digest)