-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
key exchange performance degradation #9063
Comments
One important note about this issue, it doesn't occur with all key exchange algorithms. We see this degradation of performance with |
Thanks for the clear report. Right now the minimal reproducer still has all of asyncssh, the next step for us is to minimize down to just the parts of pyca/cryptography that regressed. It looks like https://github.com/ronf/asyncssh/blob/develop/asyncssh/crypto/dh.py is the relevant part of asyncssh. Which part of it is in the hot-path? |
Nice. I removed asyncssh from the reproduction thanks to that and updated the README accordingly.
and
|
Thanks! I suspect the issue might be that we are more aggressive in validating that DH params are valid now, but I'll dig and really measure this evening. |
Confirmed.
|
Great. We'll have to do some security analysis to make sure removing these checks isn't a problem, but it seems likely we'll be good to merge that. |
Thanks very much for the quick fix on this issue. When do you expect to release a version that will include this fix? |
We don't currently have any releases planned, so I don't have a better
answer than "TBD".
…On Mon, Jun 19, 2023 at 8:36 AM John Marrett ***@***.***> wrote:
Thanks very much for the quick fix on this issue. When do you expect to
release a version that will include this fix?
—
Reply to this email directly, view it on GitHub
<#9063 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAAGBE7ZTCOHPCEAR4PNBTXMBIXVANCNFSM6AAAAAAZEEXN64>
.
You are receiving this because you commented.Message ID:
***@***.***>
--
All that is necessary for evil to succeed is for good people to do nothing.
|
We've noticed a substantial degradation of performance in the key exchange portion of a ssh connection setup using asyncssh after upgrading cryptography from
40.0.2
to41.0.0
.Full reproduction is available here here.
Here are some numbers that stood out from some profiling the same test case with version 41 vs 40:
The text was updated successfully, but these errors were encountered: