1
0
Fork 0
mirror of https://github.com/pgpainless/pgpainless.git synced 2024-11-30 00:02:06 +01:00

Change visibility of BcPGPHashContextContentSignerBuilder constructor

This commit is contained in:
Paul Schaub 2022-04-22 22:43:19 +02:00
parent 6c442e9568
commit 4764202ac9
Signed by: vanitasvitae
GPG key ID: 62BEE9264BF17311

View file

@ -42,7 +42,7 @@ class BcPGPHashContextContentSignerBuilder extends PGPHashContextContentSignerBu
private final MessageDigest messageDigest; private final MessageDigest messageDigest;
private final HashAlgorithm hashAlgorithm; private final HashAlgorithm hashAlgorithm;
public BcPGPHashContextContentSignerBuilder(MessageDigest messageDigest) { BcPGPHashContextContentSignerBuilder(MessageDigest messageDigest) {
this.messageDigest = messageDigest; this.messageDigest = messageDigest;
this.hashAlgorithm = HashAlgorithm.fromName(messageDigest.getAlgorithm()); this.hashAlgorithm = HashAlgorithm.fromName(messageDigest.getAlgorithm());
if (hashAlgorithm == null) { if (hashAlgorithm == null) {