1.1 --- a/test/compiler/7184394/TestAESEncode.java Wed Jul 31 14:28:51 2019 -0400 1.2 +++ b/test/compiler/7184394/TestAESEncode.java Wed Jun 17 17:48:25 2015 -0700 1.3 @@ -1,5 +1,5 @@ 1.4 /* 1.5 - * Copyright (c) 2012, 2014, Oracle and/or its affiliates. All rights reserved. 1.6 + * Copyright (c) 2012, 2015, Oracle and/or its affiliates. All rights reserved. 1.7 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 1.8 * 1.9 * This code is free software; you can redistribute it and/or modify it 1.10 @@ -32,7 +32,11 @@ 1.11 @Override 1.12 public void run() { 1.13 try { 1.14 - if (!noReinit) cipher.init(Cipher.ENCRYPT_MODE, key, algParams); 1.15 + if (mode.equals("GCM")) { 1.16 + gcm_init(); 1.17 + } else if (!noReinit) { 1.18 + cipher.init(Cipher.ENCRYPT_MODE, key, algParams); 1.19 + } 1.20 encode = new byte[encodeLength]; 1.21 if (testingMisalignment) { 1.22 int tempSize = cipher.update(input, encInputOffset, (msgSize - lastChunkSize), encode, encOutputOffset);