File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
pg/src/main/java/org/bouncycastle/openpgp Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -293,7 +293,7 @@ public PGPSecretKey(
293293 //
294294 // generate the certification
295295 //
296- PGPSignatureGenerator sGen = new PGPSignatureGenerator (certificationSignerBuilder );
296+ PGPSignatureGenerator sGen = new PGPSignatureGenerator (certificationSignerBuilder , masterKeyPair . getPublicKey () );
297297
298298 sGen .init (PGPSignature .SUBKEY_BINDING , masterKeyPair .getPrivateKey ());
299299
@@ -302,7 +302,7 @@ public PGPSecretKey(
302302 {
303303 if (hashedPcks == null )
304304 {
305- PGPSignatureGenerator signatureGenerator = new PGPSignatureGenerator (certificationSignerBuilder );
305+ PGPSignatureGenerator signatureGenerator = new PGPSignatureGenerator (certificationSignerBuilder , keyPair . getPublicKey () );
306306
307307 signatureGenerator .init (PGPSignature .PRIMARYKEY_BINDING , keyPair .getPrivateKey ());
308308
@@ -382,7 +382,7 @@ private static PGPPublicKey certifiedPublicKey(
382382
383383 try
384384 {
385- sGen = new PGPSignatureGenerator (certificationSignerBuilder );
385+ sGen = new PGPSignatureGenerator (certificationSignerBuilder , keyPair . getPublicKey () );
386386 }
387387 catch (Exception e )
388388 {
You can’t perform that action at this time.
0 commit comments