Skip to content

Commit 354ca42

Browse files
committed
Update DSA and RSA encryption separately
1 parent 2fa3419 commit 354ca42

File tree

1 file changed

+4
-4
lines changed
  • team/bundles/org.eclipse.jsch.ui/src/org/eclipse/jsch/internal/ui/preference

1 file changed

+4
-4
lines changed

team/bundles/org.eclipse.jsch.ui/src/org/eclipse/jsch/internal/ui/preference/PreferencePage.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -498,9 +498,9 @@ else if(e.widget==keyGenerateRSA){
498498
BusyIndicator.showWhile(getShell().getDisplay(), () -> {
499499
try {
500500
if (__type == KeyPair.RSA) {
501-
_kpair[0] = KeyPair.genKeyPair(getJSch(), __type, 2048);
501+
_kpair[0] = KeyPair.genKeyPair(getJSch(), __type, 4096);
502502
} else {
503-
_kpair[0] = KeyPair.genKeyPair(getJSch(), __type);
503+
_kpair[0] = KeyPair.genKeyPair(getJSch(), __type, 3072);
504504
}
505505
} catch (JSchException e1) {
506506
_e[0] = e1;
@@ -513,9 +513,9 @@ else if(e.widget==keyGenerateRSA){
513513

514514
ByteArrayOutputStream out=new ByteArrayOutputStream();
515515
if (__type == KeyPair.RSA) {
516-
kpairComment = _type + "-2048"; //$NON-NLS-1$
516+
kpairComment = _type + "-4096"; //$NON-NLS-1$
517517
} else {
518-
kpairComment = _type + "-1024"; //$NON-NLS-1$
518+
kpairComment = _type + "-3072"; //$NON-NLS-1$
519519
}
520520
kpair.writePublicKey(out, kpairComment);
521521
out.close();

0 commit comments

Comments
 (0)