def METHOD_NAME(self, signature, payload):
    k = self.key
    if isinstance(self.key, rsa.RSAPrivateKey):
        k = self.key.public_key()
    return k.METHOD_NAME(signature=signature, data=payload,
                    padding=PSS(mgf=MGF1(SHA256()), salt_length=32),
                    algorithm=SHA256())