Skip to content

Commit

Permalink
Upgrade to Bouncy Castle 1.79
Browse files Browse the repository at this point in the history
Closes gh-6
  • Loading branch information
wilkinsona committed Nov 19, 2024
1 parent ed481ef commit e813a63
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ dependencies {

implementation(platform(org.springframework.boot.gradle.plugin.SpringBootPlugin.BOM_COORDINATES))

implementation("org.bouncycastle:bcpg-jdk18on:1.77")
implementation("org.bouncycastle:bcpg-jdk18on:1.79")
implementation("org.springframework:spring-web")
implementation("org.springframework.boot:spring-boot-starter-json")

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,8 @@ private void sign(InputStream source, ArmoredOutputStream destination) throws PG
}

private PGPSignatureGenerator getSignatureGenerator() throws PGPException {
PGPSignatureGenerator signatureGenerator = new PGPSignatureGenerator(this.contentSigner);
PGPSignatureGenerator signatureGenerator = new PGPSignatureGenerator(this.contentSigner,
this.signingKey.getPublicKey());
signatureGenerator.init(PGPSignature.BINARY_DOCUMENT, this.privateKey);
PGPSignatureSubpacketGenerator subpacketGenerator = getSignatureSubpacketGenerator();
signatureGenerator.setHashedSubpackets(subpacketGenerator.generate());
Expand Down

0 comments on commit e813a63

Please sign in to comment.