Skip to content

Commit 193b12c

Browse files
committed
Revert "Fix RSA encryption bit size to 2048"
This reverts commit c2dc063.
1 parent c2dc063 commit 193b12c

File tree

1 file changed

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

1 file changed

+2
-10
lines changed

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

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -497,11 +497,7 @@ else if(e.widget==keyGenerateRSA){
497497
final JSchException[] _e=new JSchException[1];
498498
BusyIndicator.showWhile(getShell().getDisplay(), () -> {
499499
try {
500-
if (__type == KeyPair.RSA) {
501-
_kpair[0] = KeyPair.genKeyPair(getJSch(), __type, 2048);
502-
} else {
503-
_kpair[0] = KeyPair.genKeyPair(getJSch(), __type);
504-
}
500+
_kpair[0] = KeyPair.genKeyPair(getJSch(), __type);
505501
} catch (JSchException e1) {
506502
_e[0] = e1;
507503
}
@@ -512,11 +508,7 @@ else if(e.widget==keyGenerateRSA){
512508
kpair=_kpair[0];
513509

514510
ByteArrayOutputStream out=new ByteArrayOutputStream();
515-
if (__type == KeyPair.RSA) {
516-
kpairComment = _type + "-2048"; //$NON-NLS-1$
517-
} else {
518-
kpairComment = _type + "-1024"; //$NON-NLS-1$
519-
}
511+
kpairComment=_type+"-1024"; //$NON-NLS-1$
520512
kpair.writePublicKey(out, kpairComment);
521513
out.close();
522514
publicKeyText.setText(out.toString());

0 commit comments

Comments
 (0)