3838 */
3939/*
4040 * @test
41+ * @comment This test should be reenabled on aarch64
42+ * @requires os.simpleArch == "x64"
4143 * @library /test/lib
4244 * @key randomness
4345 * @modules java.base/sun.security.provider:+open
4850// -XX:+UnlockDiagnosticVMOptions -XX:+UseDilithiumIntrinsics test/jdk/sun/security/provider/acvp/ML_DSA_Intrinsic_Test.java
4951
5052public class ML_DSA_Intrinsic_Test {
51- public static void main (String [] args ) throws Exception , Throwable {
53+ public static void main (String [] args ) throws Throwable {
5254 MethodHandles .Lookup lookup = MethodHandles .lookup ();
5355 Class <?> kClazz = sun .security .provider .ML_DSA .class ;
5456
@@ -129,7 +131,7 @@ public static void main(String[] args) throws Exception, Throwable {
129131 private static final int ML_DSA_N = 256 ;
130132 public static void testMult (int [] prod1 , int [] prod2 , int [] coeffs1 , int [] coeffs2 ,
131133 MethodHandle mult , MethodHandle multJava , Random rnd ,
132- long seed , int i ) throws Exception , Throwable {
134+ long seed , int i ) throws Throwable {
133135
134136 for (int j = 0 ; j <ML_DSA_N ; j ++) {
135137 coeffs1 [j ] = rnd .nextInt ();
@@ -146,7 +148,7 @@ public static void testMult(int[] prod1, int[] prod2, int[] coeffs1, int[] coeff
146148
147149 public static void testMultConst (int [] prod1 , int [] prod2 ,
148150 MethodHandle multConst , MethodHandle multConstJava , Random rnd ,
149- long seed , int i ) throws Exception , Throwable {
151+ long seed , int i ) throws Throwable {
150152
151153 for (int j = 0 ; j <ML_DSA_N ; j ++) {
152154 prod1 [j ] = prod2 [j ] = rnd .nextInt ();
@@ -165,7 +167,7 @@ public static void testMultConst(int[] prod1, int[] prod2,
165167
166168 public static void testDecompose (int [] low1 , int [] high1 , int [] low2 , int [] high2 , int [] coeffs1 , int [] coeffs2 ,
167169 MethodHandle decompose , MethodHandle decomposeJava , Random rnd ,
168- long seed , int i ) throws Exception , Throwable {
170+ long seed , int i ) throws Throwable {
169171
170172 for (int j = 0 ; j <ML_DSA_N ; j ++) {
171173 coeffs1 [j ] = coeffs2 [j ] = rnd .nextInt ();
@@ -190,7 +192,7 @@ public static void testDecompose(int[] low1, int[] high1, int[] low2, int[] high
190192
191193 public static void testAlmostNtt (int [] coeffs1 , int [] coeffs2 ,
192194 MethodHandle almostNtt , MethodHandle almostNttJava , Random rnd ,
193- long seed , int i ) throws Exception , Throwable {
195+ long seed , int i ) throws Throwable {
194196 for (int j = 0 ; j <ML_DSA_N ; j ++) {
195197 coeffs1 [j ] = coeffs2 [j ] = rnd .nextInt ();
196198 }
@@ -205,7 +207,7 @@ public static void testAlmostNtt(int[] coeffs1, int[] coeffs2,
205207
206208 public static void testInverseNtt (int [] coeffs1 , int [] coeffs2 ,
207209 MethodHandle inverseNtt , MethodHandle inverseNttJava , Random rnd ,
208- long seed , int i ) throws Exception , Throwable {
210+ long seed , int i ) throws Throwable {
209211 for (int j = 0 ; j <ML_DSA_N ; j ++) {
210212 coeffs1 [j ] = coeffs2 [j ] = rnd .nextInt ();
211213 }
0 commit comments