public function doVerify(string $expected, string $payload, Key $key) : bool
{
return $this->adapter->verifyHash($expected, $this->keyParser->getPublicKey($key), $this->adapter->createSigningHash($payload, $this->getAlgorithm()), $this->getAlgorithm());
}