mirror of
https://github.com/retoaccess1/haveno-reto.git
synced 2024-11-14 07:03:37 +01:00
increase key pair size to 2048 bits
This commit is contained in:
parent
bd70b935e4
commit
4dbbcd6217
@ -59,7 +59,7 @@ public class Sig {
|
|||||||
long ts = System.currentTimeMillis();
|
long ts = System.currentTimeMillis();
|
||||||
try {
|
try {
|
||||||
KeyPairGenerator keyPairGenerator = KeyPairGenerator.getInstance(KEY_ALGO);
|
KeyPairGenerator keyPairGenerator = KeyPairGenerator.getInstance(KEY_ALGO);
|
||||||
keyPairGenerator.initialize(1024);
|
keyPairGenerator.initialize(2048);
|
||||||
return keyPairGenerator.genKeyPair();
|
return keyPairGenerator.genKeyPair();
|
||||||
} catch (NoSuchAlgorithmException e) {
|
} catch (NoSuchAlgorithmException e) {
|
||||||
log.error("Could not create key.", e);
|
log.error("Could not create key.", e);
|
||||||
|
@ -45,7 +45,7 @@ public class TestUtils {
|
|||||||
public static KeyPair generateKeyPair() throws NoSuchAlgorithmException {
|
public static KeyPair generateKeyPair() throws NoSuchAlgorithmException {
|
||||||
long ts = System.currentTimeMillis();
|
long ts = System.currentTimeMillis();
|
||||||
final KeyPairGenerator keyPairGenerator = KeyPairGenerator.getInstance("DSA");
|
final KeyPairGenerator keyPairGenerator = KeyPairGenerator.getInstance("DSA");
|
||||||
keyPairGenerator.initialize(1024);
|
keyPairGenerator.initialize(2048);
|
||||||
KeyPair keyPair = keyPairGenerator.genKeyPair();
|
KeyPair keyPair = keyPairGenerator.genKeyPair();
|
||||||
log.trace("Generate storageSignatureKeyPair needed {} ms", System.currentTimeMillis() - ts);
|
log.trace("Generate storageSignatureKeyPair needed {} ms", System.currentTimeMillis() - ts);
|
||||||
return keyPair;
|
return keyPair;
|
||||||
|
Loading…
Reference in New Issue
Block a user