We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2c4f6f8 + fae8c45 commit 5989d52Copy full SHA for 5989d52
pg/src/main/java/org/bouncycastle/bcpg/SecretKeyPacket.java
@@ -146,11 +146,11 @@ public class SecretKeyPacket
146
147
if (this instanceof SecretSubkeyPacket)
148
{
149
- pubKeyPacket = new PublicSubkeyPacket(in);
+ pubKeyPacket = new PublicSubkeyPacket(in, newPacketFormat);
150
}
151
else
152
153
- pubKeyPacket = new PublicKeyPacket(in);
+ pubKeyPacket = new PublicKeyPacket(in, newPacketFormat);
154
155
156
int version = pubKeyPacket.getVersion();
@@ -342,7 +342,7 @@ public SecretKeyPacket(
342
byte[] iv,
343
byte[] secKeyData)
344
345
- super(keyTag);
+ super(keyTag, pubKeyPacket.hasNewPacketFormat());
346
347
this.pubKeyPacket = pubKeyPacket;
348
this.encAlgorithm = encAlgorithm;
0 commit comments