Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set MacOS Runner to 11 and Fix Unknown Method Error #242

Merged
merged 4 commits into from
Sep 9, 2023
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
4 changes: 2 additions & 2 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ jobs:
continue-on-error: ${{ matrix.experimental }}
strategy:
matrix:
# ubuntu-latest uses OpenSSL 3 which breaks tests
os: [macos-latest, ubuntu-20.04, windows-latest]
# macos-latest and ubuntu-latest uses OpenSSL 3 which breaks tests
os: [macos-11, ubuntu-20.04, windows-latest]
java: [ 8, 11, 17 ]
experimental: [false]
# include:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
import org.apache.commons.crypto.random.CryptoRandom;
import org.apache.commons.crypto.random.CryptoRandomFactory;
import org.apache.commons.crypto.utils.AES;
import org.apache.commons.crypto.utils.Utils;

import static org.junit.jupiter.api.Assertions.assertEquals;

Expand All @@ -39,7 +38,7 @@ public abstract class AbstractBenchmark {
0x09, 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16 };
private static final byte[] IV = { 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08,
0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08 };
private static final SecretKeySpec keySpec = Utils.newSecretKeySpec(KEY);
private static final SecretKeySpec keySpec = AES.newSecretKeySpec(KEY);
private static final IvParameterSpec ivSpec = new IvParameterSpec(IV);
private static final byte[] BUFFER = new byte[1000];

Expand Down