DSAKeyInfo keyInfo = DSAKeyInfo.getDSAKeyInfo(asn);
ByteArrayWriter baw = new ByteArrayWriter();
baw.writeString("ssh-dss");
baw.writeBigInteger(keyInfo.getP());
baw.writeBigInteger(keyInfo.getQ());
baw.writeBigInteger(keyInfo.getG());
baw.writeBigInteger(keyInfo.getX());
return baw.toByteArray();
} else if (PEM.RSA_PRIVATE_KEY.equals(pem.getType())) {
RSAKeyInfo keyInfo = RSAKeyInfo.getRSAKeyInfo(asn);