Skip to content

Commit

Permalink
Revert "Fix RSA encryption bit size to 2048"
Browse files Browse the repository at this point in the history
This reverts commit c2dc063.
  • Loading branch information
HannesWell committed Oct 26, 2024
1 parent c2dc063 commit 193b12c
Showing 1 changed file with 2 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -497,11 +497,7 @@ else if(e.widget==keyGenerateRSA){
final JSchException[] _e=new JSchException[1];
BusyIndicator.showWhile(getShell().getDisplay(), () -> {
try {
if (__type == KeyPair.RSA) {
_kpair[0] = KeyPair.genKeyPair(getJSch(), __type, 2048);
} else {
_kpair[0] = KeyPair.genKeyPair(getJSch(), __type);
}
_kpair[0] = KeyPair.genKeyPair(getJSch(), __type);
} catch (JSchException e1) {
_e[0] = e1;
}
Expand All @@ -512,11 +508,7 @@ else if(e.widget==keyGenerateRSA){
kpair=_kpair[0];

ByteArrayOutputStream out=new ByteArrayOutputStream();
if (__type == KeyPair.RSA) {
kpairComment = _type + "-2048"; //$NON-NLS-1$
} else {
kpairComment = _type + "-1024"; //$NON-NLS-1$
}
kpairComment=_type+"-1024"; //$NON-NLS-1$
kpair.writePublicKey(out, kpairComment);
out.close();
publicKeyText.setText(out.toString());
Expand Down

0 comments on commit 193b12c

Please sign in to comment.