diff --git a/common/src/main/java/bisq/common/crypto/Sig.java b/common/src/main/java/bisq/common/crypto/Sig.java index c167e62531..ede991f603 100644 --- a/common/src/main/java/bisq/common/crypto/Sig.java +++ b/common/src/main/java/bisq/common/crypto/Sig.java @@ -59,7 +59,7 @@ public class Sig { long ts = System.currentTimeMillis(); try { KeyPairGenerator keyPairGenerator = KeyPairGenerator.getInstance(KEY_ALGO); - keyPairGenerator.initialize(1024); + keyPairGenerator.initialize(2048); return keyPairGenerator.genKeyPair(); } catch (NoSuchAlgorithmException e) { log.error("Could not create key.", e); diff --git a/p2p/src/test/java/bisq/network/p2p/TestUtils.java b/p2p/src/test/java/bisq/network/p2p/TestUtils.java index 8ff9168e2e..ad550e8791 100644 --- a/p2p/src/test/java/bisq/network/p2p/TestUtils.java +++ b/p2p/src/test/java/bisq/network/p2p/TestUtils.java @@ -45,7 +45,7 @@ public class TestUtils { public static KeyPair generateKeyPair() throws NoSuchAlgorithmException { long ts = System.currentTimeMillis(); final KeyPairGenerator keyPairGenerator = KeyPairGenerator.getInstance("DSA"); - keyPairGenerator.initialize(1024); + keyPairGenerator.initialize(2048); KeyPair keyPair = keyPairGenerator.genKeyPair(); log.trace("Generate storageSignatureKeyPair needed {} ms", System.currentTimeMillis() - ts); return keyPair;