From 560effc7c6234fc10101c287057bcc998a44f7db Mon Sep 17 00:00:00 2001 From: bilalashraf123 Date: Fri, 29 Jan 2021 02:33:43 +0500 Subject: [PATCH] Wrong primary user ID when setting withAdditionalUserId --- .../main/java/org/pgpainless/key/generation/KeySpecBuilder.java | 1 + 1 file changed, 1 insertion(+) diff --git a/pgpainless-core/src/main/java/org/pgpainless/key/generation/KeySpecBuilder.java b/pgpainless-core/src/main/java/org/pgpainless/key/generation/KeySpecBuilder.java index acc75f78..4c7dd697 100644 --- a/pgpainless-core/src/main/java/org/pgpainless/key/generation/KeySpecBuilder.java +++ b/pgpainless-core/src/main/java/org/pgpainless/key/generation/KeySpecBuilder.java @@ -34,6 +34,7 @@ public class KeySpecBuilder implements KeySpecBuilderInterface { KeySpecBuilder(@Nonnull KeyType type) { this.type = type; + hashedSubPackets.setPrimaryUserID(false, true); } @Override