Skip to content

Commit

Permalink
Docker specific changes and restoration of orignal keysize
Browse files Browse the repository at this point in the history
  • Loading branch information
aaron-kumar committed Sep 24, 2023
1 parent b449dae commit bfb858d
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
file: ./Dockerfile
platforms: linux/amd64,linux/arm64/v8
push: true
tags: norstella/oxalis:6.0.0-latest-java11
tags: norstella/oxalis:6.1.1-latest
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ jobs:
file: ./Dockerfile
platforms: linux/amd64,linux/arm64/v8
push: true
tags: norstella/oxalis:6.0.0
tags: norstella/oxalis:6.1.1
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public class EncryptionTest {
@BeforeClass
public void createKeyPair() throws NoSuchAlgorithmException, InvalidAlgorithmParameterException {
KeyPairGenerator keyPairGenerator = KeyPairGenerator.getInstance("RSA");
keyPairGenerator.initialize(2048); // Medium security is fine
keyPairGenerator.initialize(1024); // Medium security is fine
keyPair = keyPairGenerator.generateKeyPair();

KeyGenerator keyGenerator = KeyGenerator.getInstance("DES");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ private byte[] encrypt(KeyPair keyPair) throws NoSuchAlgorithmException, NoSuchP
private KeyPair generateKeyPair() throws NoSuchAlgorithmException, NoSuchProviderException {
KeyPairGenerator keyPairGenerator = KeyPairGenerator.getInstance("DSA");
SecureRandom secureRandom = SecureRandom.getInstance("SHA1PRNG", "SUN");
keyPairGenerator.initialize(2048, secureRandom);
keyPairGenerator.initialize(1024, secureRandom);

return keyPairGenerator.generateKeyPair();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public class CertificateMock {
public static X509Certificate withCN(String cn) {
try {
KeyPairGenerator keyPairGenerator = KeyPairGenerator.getInstance("RSA", "BC");
keyPairGenerator.initialize(2048, new SecureRandom()); // No ment to be secure!
keyPairGenerator.initialize(1024, new SecureRandom()); // No ment to be secure!

KeyPair keyPair = keyPairGenerator.generateKeyPair();

Expand Down

0 comments on commit bfb858d

Please sign in to comment.