Skip to content

Commit

Permalink
Update DSA and RSA encryption separately
Browse files Browse the repository at this point in the history
  • Loading branch information
axmanalad committed Oct 27, 2024
1 parent 2fa3419 commit 354ca42
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -498,9 +498,9 @@ else if(e.widget==keyGenerateRSA){
BusyIndicator.showWhile(getShell().getDisplay(), () -> {
try {
if (__type == KeyPair.RSA) {
_kpair[0] = KeyPair.genKeyPair(getJSch(), __type, 2048);
_kpair[0] = KeyPair.genKeyPair(getJSch(), __type, 4096);
} else {
_kpair[0] = KeyPair.genKeyPair(getJSch(), __type);
_kpair[0] = KeyPair.genKeyPair(getJSch(), __type, 3072);
}
} catch (JSchException e1) {
_e[0] = e1;
Expand All @@ -513,9 +513,9 @@ else if(e.widget==keyGenerateRSA){

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

1 comment on commit 354ca42

@axmanalad
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Accidentally reverted this change as well, so I recommitted the changes again.

Please sign in to comment.