< prev index next >
test/compiler/codegen/aes/TestAESDecode.java
Print this page
rev 11557 : 8132919: use package in compiler tests
Reviewed-by: duke
*** 20,35 ****
* or visit www.oracle.com if you need additional information or have any
* questions.
*
*/
! /**
! * @author Tom Deneau
! */
import javax.crypto.Cipher;
public class TestAESDecode extends TestAESBase {
@Override
public void run() {
try {
if (mode.equals("GCM")) {
--- 20,36 ----
* or visit www.oracle.com if you need additional information or have any
* questions.
*
*/
! package compiler.codegen.aes;
import javax.crypto.Cipher;
+ /**
+ * @author Tom Deneau
+ */
public class TestAESDecode extends TestAESBase {
@Override
public void run() {
try {
if (mode.equals("GCM")) {
*** 45,62 ****
dCipher.doFinal(encode, encOutputOffset, decodeMsgSize, decode, decOutputOffset);
}
if (checkOutput) {
compareArrays(decode, expectedDecode);
}
}
- catch (Exception e) {
- e.printStackTrace();
- System.exit(1);
}
- }
@Override
void childShowCipher() {
showCipher(dCipher, "Decryption");
}
-
}
--- 46,60 ----
dCipher.doFinal(encode, encOutputOffset, decodeMsgSize, decode, decOutputOffset);
}
if (checkOutput) {
compareArrays(decode, expectedDecode);
}
+ } catch (Exception e) {
+ throw new Error(e.getMessage(), e);
}
}
@Override
void childShowCipher() {
showCipher(dCipher, "Decryption");
}
}
< prev index next >