Skip to content

Commit f1112ce

Browse files
committed
Update SignatureLength test
Add OpenJCEPlus as a verifier that may return false. Signed-off-by: Dev Agarwal <[email protected]>
1 parent b6bf86a commit f1112ce

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

test/jdk/java/security/Signature/SignatureLength.java

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,12 @@
2121
* questions.
2222
*/
2323

24+
/*
25+
* ===========================================================================
26+
* (c) Copyright IBM Corp. 2025, 2025 All Rights Reserved
27+
* ===========================================================================
28+
*/
29+
2430
/*
2531
* @test
2632
* @bug 8161571 8178370
@@ -54,10 +60,11 @@ public static void main(String[] args) throws Exception {
5460
if (p0.getName().equals("SunMSCAPI")
5561
&& !p1.getName().equals("SunMSCAPI")) continue;
5662

57-
// SunMSCAPI and SunPKCS11 verifiers may return false
63+
// SunMSCAPI, SunPKCS11, and OpenJCEPlus verifiers may return false
5864
// instead of throwing SignatureException
5965
boolean mayNotThrow = p2.getName().equals("SunMSCAPI")
60-
|| p2.getName().startsWith("SunPKCS11");
66+
|| p2.getName().startsWith("SunPKCS11")
67+
|| p2.getName().startsWith("OpenJCEPlus");
6168

6269
main0("EC", 256, "SHA256withECDSA", p0, p1, p2, mayNotThrow);
6370
main0("RSA", 2048, "SHA256withRSA", p0, p1, p2, mayNotThrow);

0 commit comments

Comments
 (0)