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.
1 parent 089657e commit ed9b3bcCopy full SHA for ed9b3bc
pg/src/main/java/org/bouncycastle/openpgp/operator/jcajce/OperatorHelper.java
@@ -36,9 +36,6 @@ class OperatorHelper
36
this.helper = helper;
37
}
38
39
-
40
41
42
MessageDigest createDigest(int algorithm)
43
throws GeneralSecurityException, PGPException
44
{
@@ -53,7 +50,7 @@ MessageDigest createDigest(int algorithm)
53
50
54
51
if (algorithm >= HashAlgorithmTags.SHA256 && algorithm <= HashAlgorithmTags.SHA224)
55
52
56
- dig = helper.createMessageDigest("SHA" + digestName.substring(4));
+ dig = helper.createMessageDigest("SHA-" + digestName.substring(3));
57
58
else
59
0 commit comments