Skip to content

Commit e6d12af

Browse files
samspychergrealish
authored andcommitted
Fix Parsec error with missing hash alg
1 parent c0c2c21 commit e6d12af

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

parsec-jca-java/src/main/java/org/parallaxsecond/parsec/jce/provider/ParsecRsaSignature.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ public enum ParsecRsaSignature implements ParsecSignatureInfo {
1919
pkcs1WithHash(PsaAlgorithm.Algorithm.Hash.SHA_256),
2020
() -> MessageDigest.getInstance("SHA-256")),
2121

22-
NONE_WITH_RSA("NONEwithRSA",
23-
pkcs1(),
22+
SHA256_PRECALCULATED_WITH_RSA("SHA256PrecalculatedWithRSA",
23+
pkcs1WithHash(PsaAlgorithm.Algorithm.Hash.SHA_256),
2424
() -> MessageDigest.getInstance("None")),
2525
;
2626

0 commit comments

Comments
 (0)