github moved hashpackets addition outside of test in case people adding other hashed packets get caught by dependency on userID packet.
@@ -262,9 +262,9 @@ else if (digestName.equals("RIPEMD160"))
Iterator it = pgpSecKey.getPublicKey().getUserIDs();
if (it.hasNext())
{
- spGen.setSignerUserID(false, (String)it.next());
- sGen.setHashedSubpackets(spGen.generate());
+ spGen.addSignerUserID(false, (String)it.next());
}
+ sGen.setHashedSubpackets(spGen.generate());
InputStream fIn = new BufferedInputStream(new FileInputStream(fileName));
ArmoredOutputStream aOut = new ArmoredOutputStream(out);
