public function verifyStream($stream, $signature, $publicKey)
    {
        try {
            $virgilSourceStream = new VirgilStreamDataSource($stream);

            return (new CryptoVirgilStreamSigner($this->hashAlgorithm))->verify(
                $virgilSourceStream,
                $signature,
                $publicKey
            );
        } catch (Exception $exception) {
            throw new ContentVerificationException($exception->getMessage(), $exception->getCode());
        }
    }
public function verifyStream($stream, $signature, $publicKey)
    {
        try {
            $virgilSourceStream = new VirgilStreamDataSource($stream);

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

@param resource $stream
@param string   $signature
@param string   $publicKey

@return bool

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