sshd-benchmarks/src/main/java/org/apache/sshd/benchmarks/sftp/upload/SshBenchmark.java [66:81]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        private SshClient createClient() throws Exception {
            SshClient client = SshClient.setUpDefaultClient();
            if ("jsch".equals(settings)) {
                // Same as JSch default
                client.setCipherFactoriesNames("aes128-ctr");
                client.setMacFactoriesNames("hmac-sha2-256-etm@openssh.com");
            }
            client.setServerKeyVerifier((s, a, k) -> true);
            // Load the user key
            try (InputStream in = Files.newInputStream(Paths.get(sftpKey), StandardOpenOption.READ)) {
                Iterable<KeyPair> clientKeys = SecurityUtils.loadKeyPairIdentities(null, null, in, null);
                client.setKeyIdentityProvider(s -> clientKeys);
            }
            client.start();
            return client;
        }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



sshd-benchmarks/src/main/java/org/apache/sshd/benchmarks/sftp/upload/CatBenchmark.java [68:83]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        private SshClient createClient() throws Exception {
            SshClient client = SshClient.setUpDefaultClient();
            if ("jsch".equals(settings)) {
                // Same as JSch default
                client.setCipherFactoriesNames("aes128-ctr");
                client.setMacFactoriesNames("hmac-sha2-256-etm@openssh.com");
            }
            client.setServerKeyVerifier((s, a, k) -> true);
            // Load the user key
            try (InputStream in = Files.newInputStream(Paths.get(sftpKey), StandardOpenOption.READ)) {
                Iterable<KeyPair> clientKeys = SecurityUtils.loadKeyPairIdentities(null, null, in, null);
                client.setKeyIdentityProvider(s -> clientKeys);
            }
            client.start();
            return client;
        }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



