if (PEM.DSA_PRIVATE_KEY.equals(pem.getType())) {
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();