/hg/release/icedtea7-forest-2.2/jdk: Skip wrap mode tests if wra...
andrew at icedtea.classpath.org
andrew at icedtea.classpath.org
Wed May 23 10:10:35 PDT 2012
changeset 8e7653eb3797 in /hg/release/icedtea7-forest-2.2/jdk
details: http://icedtea.classpath.org/hg/release/icedtea7-forest-2.2/jdk?cmd=changeset;node=8e7653eb3797
author: andrew
date: Fri May 04 01:36:23 2012 +0100
Skip wrap mode tests if wrap mode is not available.
diffstat:
test/com/oracle/security/ucrypto/TestAES.java | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diffs (17 lines):
diff -r d56081011fc8 -r 8e7653eb3797 test/com/oracle/security/ucrypto/TestAES.java
--- a/test/com/oracle/security/ucrypto/TestAES.java Fri May 04 14:05:28 2012 +0100
+++ b/test/com/oracle/security/ucrypto/TestAES.java Fri May 04 01:36:23 2012 +0100
@@ -219,7 +219,12 @@
System.err.println("Skipping Unsupported CIP algo: " + algos[i]);
continue;
}
- c1.init(Cipher.WRAP_MODE, key, (AlgorithmParameters)null, null);
+ try {
+ c1.init(Cipher.WRAP_MODE, key, (AlgorithmParameters)null, null);
+ } catch (InvalidAlgorithmParameterException e) {
+ System.err.println("Skipping due to lack of WRAP_MODE support.");
+ continue;
+ }
AlgorithmParameters params = c1.getParameters();
Cipher c2 = Cipher.getInstance(algos[i], interopP);
c2.init(Cipher.UNWRAP_MODE, key, params, null);
More information about the distro-pkg-dev
mailing list