public function verify($content, $signature, $publicKey)
    {
        try {
            return (new CryptoVirgilSigner($this->hashAlgorithm))->verify($content, $signature, $publicKey);
        } catch (Exception $exception) {
            throw new ContentVerificationException($exception->getMessage(), $exception->getCode());
        }
    }
public function verify($content, $signature, $publicKey)
    {
        try {
            return (new CryptoVirgilSigner($this->hashAlgorithm))->verify($content, $signature, $publicKey);
        } catch (Exception $exception) {
            throw new ContentVerificationException($exception->getMessage(), $exception->getCode());
        }
    }
public function verify ( $ content , $ signature , $ publicKey ) { try { return ( new CryptoVirgilSigner ( $ this -> hashAlgorithm ) ) -> verify ( $ content , $ signature , $ publicKey ) ; } catch ( Exception $ exception ) { throw new ContentVerificationException ( $ exception -> getMessage ( ) , $ exception -> getCode ( ) ) ; } }
Verify content with a public key and signature.

@param string $content
@param string $signature
@param string $publicKey

@return bool

@throws ContentVerificationException
Verify content with a public key and signature .