Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

implement openssh config behavior to handle append, prepend and removal of algorithms #104

Merged
merged 12 commits into from
Dec 20, 2021

Conversation

mwiede
Copy link
Owner

@mwiede mwiede commented Dec 16, 2021

as a user was facing the issue in #103 I implemented the openssh config file interpretation, so that Jsch users can use openssh config file without modifiying them. As mentioned in ssh_config man page, the + means appending to the comma separated list, ^ means to prepend and - means to remove from the list of algorithms.

Copy link
Contributor

@norrisjeremy norrisjeremy left a comment

Choose a reason for hiding this comment

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

A few notes (see comments).

norrisjeremy and others added 7 commits December 20, 2021 12:58
…plementation.

JEP 329 implements an RFC-7539 version of ChaCha20 (96 bit nonce + 32
bit counter), while OpenSSH uses a different variant of ChaCha20 (64 bit
nonce + 64 bit counter).

Switching to Bouncy Castle's ChaChaEngine eliminates dependence upon JEP 329's
implementation working for the non RFC-7539 version of ChaCha20 that OpenSSH
utilizes.
Copy link
Contributor

@norrisjeremy norrisjeremy left a comment

Choose a reason for hiding this comment

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

LGTM.

@mwiede mwiede merged commit 66db587 into master Dec 20, 2021
@mwiede mwiede deleted the opensshconfig branch December 20, 2021 13:18
@jthalmai
Copy link

It would be nice to have this option also for the configuration with java system properties.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants