Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

This file was deleted.

This file was deleted.

2 changes: 0 additions & 2 deletions src/test/java/ibm/jceplus/junit/openjceplus/TestAll.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,11 @@

@SelectClasses({
TestAES256Interop.class,
TestAESCCMInteropBC.class,
TestAESCCMParameters.class,
TestAESGCM_ExtIV.class,
TestAESGCM_IntIV.class,
TestAESGCMBufferIV.class,
TestAESGCMUpdate.class,
TestAESGCMUpdateInteropBC.class,
TestAESKeyWrap.class,
TestAliases.class,
TestAttributes.class,
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@

@SelectClasses({
TestAES256Interop.class,
TestAESCCMInteropBC.class,
TestAESCCMParameters.class,
TestAESGCM_ExtIV.class,
TestAESGCM_IntIV.class,
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
/*
* Copyright IBM Corp. 2023, 2025
* Copyright IBM Corp. 2023, 2026
*
* This code is free software; you can redistribute it and/or modify it
* under the terms provided by IBM in the LICENSE file that accompanied
* this code, including the "Classpath" Exception described therein.
*/

package ibm.jceplus.junit.base;
package ibm.jceplus.junit.tests;

import java.lang.reflect.Method;
import java.security.AlgorithmParameters;
Expand All @@ -17,10 +17,28 @@
import javax.crypto.SecretKey;
import javax.crypto.spec.GCMParameterSpec;
import javax.crypto.spec.SecretKeySpec;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Tag;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.TestInstance;
import org.junit.jupiter.params.Parameter;
import org.junit.jupiter.params.ParameterizedClass;
import org.junit.jupiter.params.provider.MethodSource;
import static org.junit.jupiter.api.Assertions.assertTrue;

public class BaseTestAESGCMUpdateInteropBC extends BaseTestJunit5Interop {
@Tag(Tags.OPENJCEPLUS_NAME)
@Tag(Tags.OPENJCEPLUS_FIPS_NAME)
@TestInstance(TestInstance.Lifecycle.PER_CLASS)
@ParameterizedClass
@MethodSource("ibm.jceplus.junit.tests.TestArguments#getOpenJCEPlusWithBCInteropProvider")
public class TestAESGCMUpdateInteropBC extends BaseTestInterop {

@Parameter(0)
TestProvider provider;

@Parameter(1)
TestProvider interopProvider;

private final static int GCM_IV_LENGTH = 12;
private final static int GCM_TAG_LENGTH = 16;
private static int ARRAY_OFFSET = 16;
Expand Down Expand Up @@ -68,6 +86,12 @@ private static String compressString(String original) {
return original;
}

@BeforeEach
public void setUp() throws Exception {
setAndInsertProvider(provider);
setAndInsertInteropProvider(interopProvider);
}

@Test
public void testWithOneDataUpdate() throws Exception {
byte[] iv = new byte[GCM_IV_LENGTH];
Expand Down
Loading