]> source.dussan.org Git - jgit.git/commit
Apache MINA sshd client: test reading encrypted ed25519 keys 56/141356/2
authorThomas Wolf <thomas.wolf@paranor.ch>
Tue, 15 Jan 2019 18:50:12 +0000 (19:50 +0100)
committerMatthias Sohn <matthias.sohn@sap.com>
Mon, 6 May 2019 13:22:08 +0000 (15:22 +0200)
commitc33d2bfb9f5d0f407bb736fafe2fa8ff93309e93
tree260f3e145fb5f1d7e26f482db5e09d720fadf238
parent86cee68e0d9282ecc6a49792693309e8d5d9d984
Apache MINA sshd client: test reading encrypted ed25519 keys

Add encrypted ed25519 keys in the tests; sshd 2.2.0 can finally
decrypt encrypted new-style OpenSSH key files. (Needs the "unlimited
strength" JCE, which is the default since Java 8u161. On older JREs,
users should install the policy files available from Oracle.)

The "expensive" key added has been generated with OpenSSH's
ssh-keygen -t ed25519 -a 256, i.e., with 256 bcrypt KDF rounds
instead of the default 16. On my machine it takes about 2sec to
decrypt.

Bug: 541703
Change-Id: Id3872ca2fd75d8f009cbc932eeb6357d3d1f267c
Signed-off-by: Thomas Wolf <thomas.wolf@paranor.ch>
org.eclipse.jgit.ssh.apache/META-INF/MANIFEST.MF
org.eclipse.jgit.ssh.apache/src/org/eclipse/jgit/transport/sshd/SshdSessionFactory.java
org.eclipse.jgit.test/resources/org/eclipse/jgit/transport/ssh/id_ed25519_expensive_testpass [new file with mode: 0644]
org.eclipse.jgit.test/resources/org/eclipse/jgit/transport/ssh/id_ed25519_expensive_testpass.pub [new file with mode: 0644]
org.eclipse.jgit.test/src/org/eclipse/jgit/transport/ssh/SshTestBase.java