Skip to content
Merged
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
24 changes: 0 additions & 24 deletions src/test/java/ibm/jceplus/junit/openjceplus/TestAESCCM.java

This file was deleted.

24 changes: 0 additions & 24 deletions src/test/java/ibm/jceplus/junit/openjceplus/TestAESCCM2.java

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,8 +13,6 @@

@SelectClasses({
TestAES256Interop.class,
TestAESCCM.class,
TestAESCCM2.class,
TestAESCCMInteropBC.class,
TestAESCCMParameters.class,
TestAESGCM_ExtIV.class,
Expand Down
24 changes: 0 additions & 24 deletions src/test/java/ibm/jceplus/junit/openjceplusfips/TestAESCCM.java

This file was deleted.

24 changes: 0 additions & 24 deletions src/test/java/ibm/jceplus/junit/openjceplusfips/TestAESCCM2.java

This file was deleted.

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

@SelectClasses({
TestAES256Interop.class,
TestAESCCM.class,
TestAESCCM2.class,
TestAESCCMInteropBC.class,
TestAESCCMParameters.class,
TestAESGCM_ExtIV.class,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
/*
* Copyright IBM Corp. 2023, 2024
* 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 ibm.security.internal.spec.CCMParameterSpec;
import java.nio.ByteBuffer;
Expand All @@ -19,11 +19,25 @@
import javax.crypto.SecretKey;
import javax.crypto.spec.SecretKeySpec;
import org.junit.jupiter.api.Assertions;
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;

// This test case exercises the AES/CCM cipher using a CCMParameterSpec object

public class BaseTestAESCCM extends BaseTestJunit5 {
@Tag(Tags.OPENJCEPLUS_NAME)
@Tag(Tags.OPENJCEPLUS_FIPS_NAME)
@TestInstance(TestInstance.Lifecycle.PER_CLASS)
@ParameterizedClass
@MethodSource("ibm.jceplus.junit.tests.TestArguments#getEnabledProviders")
public class TestAESCCM extends BaseTest {

@Parameter(0)
TestProvider provider;

public static int iterationLimit = 100;
public static int iterationCounter = 0;
Expand Down Expand Up @@ -52,6 +66,11 @@ public class BaseTestAESCCM extends BaseTestJunit5 {

public static boolean printJunitTrace = Boolean.valueOf(System.getProperty("com.ibm.jceplus.junit.printJunitTrace"));

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

@Test
public void testAESCCM() throws Exception {
while (iterationCounter < iterationLimit) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
/*
* Copyright IBM Corp. 2023, 2024
* 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 ibm.security.internal.spec.CCMParameterSpec;
import java.nio.ByteBuffer;
Expand All @@ -20,11 +20,25 @@
import javax.crypto.SecretKey;
import javax.crypto.spec.SecretKeySpec;
import org.junit.jupiter.api.Assertions;
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;

// This test case exercises the AES/CCM cipher using a CCMParameters object

public class BaseTestAESCCM2 extends BaseTestJunit5 {
@Tag(Tags.OPENJCEPLUS_NAME)
@Tag(Tags.OPENJCEPLUS_FIPS_NAME)
@TestInstance(TestInstance.Lifecycle.PER_CLASS)
@ParameterizedClass
@MethodSource("ibm.jceplus.junit.tests.TestArguments#getEnabledProviders")
public class TestAESCCM2 extends BaseTest {

@Parameter(0)
TestProvider provider;

public int iterationLimit = 100;
public int iterationCounter = 0;
Expand Down Expand Up @@ -53,6 +67,11 @@ public class BaseTestAESCCM2 extends BaseTestJunit5 {

public boolean printJunitTrace = Boolean.valueOf(System.getProperty("com.ibm.jceplus.junit.printJunitTrace"));

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

@Test
public void testAESCCM() throws Exception {
while (iterationCounter < iterationLimit) {
Expand Down
Loading