equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2014, 2017, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2014, 2018, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. |
7 * published by the Free Software Foundation. |
37 import java.security.spec.*; |
37 import java.security.spec.*; |
38 import java.util.*; |
38 import java.util.*; |
39 import javax.crypto.*; |
39 import javax.crypto.*; |
40 import javax.crypto.spec.*; |
40 import javax.crypto.spec.*; |
41 |
41 |
|
42 import jdk.test.lib.OSVersion; |
42 import jdk.test.lib.Platform; |
43 import jdk.test.lib.Platform; |
43 import jdk.test.lib.Utils; |
44 import jdk.test.lib.Utils; |
44 |
45 |
45 public class TestAES extends UcryptoTest { |
46 public class TestAES extends UcryptoTest { |
46 |
47 |
374 return equal; |
375 return equal; |
375 } |
376 } |
376 |
377 |
377 // The cases on CFB128 mode have to be skipped on pre-S11.3. |
378 // The cases on CFB128 mode have to be skipped on pre-S11.3. |
378 private static boolean isBadSolaris() { |
379 private static boolean isBadSolaris() { |
379 return Platform.isSolaris() |
380 return Platform.isSolaris() && OSVersion.current().compareTo(new OSVersion(11, 3)) < 0; |
380 && Platform.getOsVersionMajor() <= 5 |
|
381 && Platform.getOsVersionMinor() <= 11 |
|
382 && Utils.distro().compareTo("11.3") < 0; |
|
383 } |
381 } |
384 } |
382 } |