@Test public void testRsaSha512() throws Exception { byte[] out = SshSignatureConverter.getSshSignatureRsa(RAW_RSA_SIGNATURE_SHA512, HashAlgorithmTags.SHA512); Assert.assertArrayEquals(SSH_RSA_SIGNATURE_SHA512, out); }
public static byte[] getSshSignatureRsa(byte[] rawSignature, int hashAlgorithm) throws NoSuchAlgorithmException { SshEncodedData signature = new SshEncodedData(); signature.putString(getRsaSignatureFormatId(hashAlgorithm)); signature.putString(rawSignature); return signature.getBytes(); }
SshSignatureConverter { public static byte[] getSshSignatureRsa(byte[] rawSignature, int hashAlgorithm) throws NoSuchAlgorithmException { SshEncodedData signature = new SshEncodedData(); signature.putString(getRsaSignatureFormatId(hashAlgorithm)); signature.putString(rawSignature); return signature.getBytes(); } }
SshSignatureConverter { public static byte[] getSshSignatureRsa(byte[] rawSignature, int hashAlgorithm) throws NoSuchAlgorithmException { SshEncodedData signature = new SshEncodedData(); signature.putString(getRsaSignatureFormatId(hashAlgorithm)); signature.putString(rawSignature); return signature.getBytes(); }  }
SshSignatureConverter { public static byte[] getSshSignatureRsa(byte[] rawSignature, int hashAlgorithm) throws NoSuchAlgorithmException { SshEncodedData signature = new SshEncodedData(); signature.putString(getRsaSignatureFormatId(hashAlgorithm)); 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); }
SshSignatureConverter { public static byte[] getSshSignatureRsa(byte[] rawSignature, int hashAlgorithm) throws NoSuchAlgorithmException { SshEncodedData signature = new SshEncodedData(); signature.putString(getRsaSignatureFormatId(hashAlgorithm)); 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);  }