protected static function verifyData(
        ReadOnlyFile $input,
        SignaturePublicKey $publicKey,
        string $signature,
        $encoding = Halite::ENCODE_BASE64URLSAFE
    ): bool {
        $checksum = self::checksumData($input, $publicKey, true);
        return AsymmetricCrypto::verify(
            $checksum,
            $publicKey,
            $signature,
            $encoding
        );
    }
protected static function verifyData(
        ReadOnlyFile $input,
        SignaturePublicKey $publicKey,
        string $signature,
        $encoding = Halite::ENCODE_BASE64URLSAFE
    ): bool {
        $checksum = self::checksumData($input, $publicKey, true);
        return AsymmetricCrypto::verify(
            $checksum,
            $publicKey,
            $signature,
            $encoding
        );
    }
protected static function verifyData ( ReadOnlyFile $ input , SignaturePublicKey $ publicKey , string $ signature , $ encoding = Halite :: ENCODE_BASE64URLSAFE ) : bool { $ checksum = self :: checksumData ( $ input , $ publicKey , true ) ; return AsymmetricCrypto :: verify ( $ checksum , $ publicKey , $ signature , $ encoding ) ; }
Verify the contents of a file

@param $input (file handle)
@param SignaturePublicKey $publicKey
@param string $signature
@param mixed $encoding Which encoding scheme to use for the signature?

@return bool

@throws InvalidSignature
@throws CannotPerformOperation
@throws FileAccessDenied
@throws FileError
@throws InvalidKey
@throws InvalidMessage
@throws InvalidType
@throws \TypeError
Verify the contents of a file