Skip to content

Commit

Permalink
fixed JCA digest creation fallback
Browse files Browse the repository at this point in the history
  • Loading branch information
dghgit committed Apr 16, 2024
1 parent 089657e commit ed9b3bc
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,6 @@ class OperatorHelper
this.helper = helper;
}




MessageDigest createDigest(int algorithm)
throws GeneralSecurityException, PGPException
{
Expand All @@ -53,7 +50,7 @@ MessageDigest createDigest(int algorithm)
{
if (algorithm >= HashAlgorithmTags.SHA256 && algorithm <= HashAlgorithmTags.SHA224)
{
dig = helper.createMessageDigest("SHA" + digestName.substring(4));
dig = helper.createMessageDigest("SHA-" + digestName.substring(3));
}
else
{
Expand Down

0 comments on commit ed9b3bc

Please sign in to comment.