phpseclib\System\SSH\Agent\Identity::setHash PHP Метод

setHash() публичный Метод

ssh-agent only supports signatures with sha1 hashes but to maintain BC with RSA.php this function exists
public setHash ( string $hash = 'sha1' )
$hash string optional
    function setHash($hash = 'sha1')
    {
        if ($hash != 'sha1') {
            throw new UnsupportedAlgorithmException('ssh-agent can only be used with the sha1 hash');
        }
    }