protected static function signData(
        ReadOnlyFile $input,
        SignatureSecretKey $secretKey,
        $encoding = Halite::ENCODE_BASE64URLSAFE
    ): string {
        $checksum = self::checksumData(
            $input,
            $secretKey->derivePublicKey(),
            true
        );
        return AsymmetricCrypto::sign(
            $checksum,
            $secretKey,
            $encoding
        );
    }
protected static function signData(
        ReadOnlyFile $input,
        SignatureSecretKey $secretKey,
        $encoding = Halite::ENCODE_BASE64URLSAFE
    ): string {
        $checksum = self::checksumData(
            $input,
            $secretKey->derivePublicKey(),
            true
        );
        return AsymmetricCrypto::sign(
            $checksum,
            $secretKey,
            $encoding
        );
    }
protected static function signData ( ReadOnlyFile $ input , SignatureSecretKey $ secretKey , $ encoding = Halite :: ENCODE_BASE64URLSAFE ) : string { $ checksum = self :: checksumData ( $ input , $ secretKey -> derivePublicKey ( ) , true ) ; return AsymmetricCrypto :: sign ( $ checksum , $ secretKey , $ encoding ) ; }
Sign the contents of a file

@param ReadOnlyFile $input
@param SignatureSecretKey $secretKey
@param mixed $encoding Which encoding scheme to use for the signature?
@return string

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