622623624625626627628629630631632
{ if (ids.get(i) instanceof String) { String id = (String)ids.get(i); out.writePacket(new UserIDPacket(id)); } else { PGPUserAttributeSubpacketVector v = (PGPUserAttributeSubpacketVector)ids.get(i);
628629630631632633634635636637638
} else { PGPUserAttributeSubpacketVector v = (PGPUserAttributeSubpacketVector)ids.get(i); out.writePacket(new UserAttributePacket(v.toSubpacketArray())); } if (idTrusts.get(i) != null) { out.writePacket((ContainedPacket)idTrusts.get(i));
633634635636637638639640641642643
out.writePacket(new UserAttributePacket(v.toSubpacketArray())); } if (idTrusts.get(i) != null) { out.writePacket((ContainedPacket)idTrusts.get(i)); } List sigs = (List)idSigs.get(i); for (int j = 0; j != sigs.size(); j++) {
259260261262263264265266
else { out = new BCPGOutputStream(outStream); } out.writePacket(sigPack); } }
678679680681682683684685686687688
else { out = new BCPGOutputStream(outStream); } out.writePacket(publicPk); if (trustPk != null) { out.writePacket(trustPk); }
681682683684685686687688689690691
} out.writePacket(publicPk); if (trustPk != null) { out.writePacket(trustPk); } if (subSigs == null) // not a sub-key { for (int i = 0; i != keySigs.size(); i++)
697698699700701702703704705706707
703704705706707708709710711712713
708709710711712713714715716717718
714715716717718719720721722723724
else { out = new BCPGOutputStream(outStream); } out.writePacket(secret); if (trust != null) { out.writePacket(trust); }