public function verify($value, $signature, $publicKey)
{
$result = openssl_verify($value, $signature, $publicKey, $this->getAlgorithm());
if ($result === -1) {
throw new \RuntimeException('Failed to verify signature. ' . implode("\n", $this->getSslErrors()));
}
return (bool) $result;
}