diff a/test/jdk/sun/security/ec/SignedObjectChain.java b/test/jdk/sun/security/ec/SignedObjectChain.java --- a/test/jdk/sun/security/ec/SignedObjectChain.java +++ b/test/jdk/sun/security/ec/SignedObjectChain.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2015, 2018, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2015, 2020, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. @@ -21,11 +21,11 @@ * questions. */ /* * @test - * @bug 8050374 8146293 + * @bug 8050374 8146293 8172366 * @summary Verify a chain of signed objects * @library /test/lib * @build jdk.test.lib.SigTestUtil * @compile ../../../java/security/SignedObject/Chain.java * @run main SignedObjectChain @@ -39,14 +39,18 @@ } } private static final Test[] tests = { new Test(Chain.SigAlg.SHA1withECDSA), - new Test(Chain.SigAlg.SHA256withECDSA), new Test(Chain.SigAlg.SHA224withECDSA), + new Test(Chain.SigAlg.SHA256withECDSA), new Test(Chain.SigAlg.SHA384withECDSA), new Test(Chain.SigAlg.SHA512withECDSA), + new Test(Chain.SigAlg.SHA3_224withECDSA), + new Test(Chain.SigAlg.SHA3_256withECDSA), + new Test(Chain.SigAlg.SHA3_384withECDSA), + new Test(Chain.SigAlg.SHA3_512withECDSA), }; public static void main(String argv[]) { boolean resutl = java.util.Arrays.stream(tests).allMatch( (test) -> Chain.runTest(test));