SshSignatureConverter { public static byte[] getSshSignatureEdDsa(byte[] rawSignature) { SshEncodedData signature = new SshEncodedData(); signature.putString("ssh-ed25519"); signature.putString(rawSignature); return signature.getBytes(); }  static byte[] getSshSignatureEdDsa(byte[] rawSignature); static byte[] getSshSignatureDsa(byte[] rawSignature); static byte[] getSshSignatureRsa(byte[] rawSignature, int hashAlgorithm); static byte[] getSshSignatureEcDsa(byte[] rawSignature, String curveOid);  }
@Test public void testEdDsa() throws Exception { byte[] out = SshSignatureConverter.getSshSignatureEdDsa(RAW_EDDSA_SIGNATURE); Assert.assertArrayEquals(SSH_EDDSA_SIGNATURE, out); }