-
-
Notifications
You must be signed in to change notification settings - Fork 959
Use BCL Curve25519 for Windows 10+ #1702
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
base: develop
Are you sure you want to change the base?
Conversation
f5486b5
to
9d15116
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm otherwise
internal abstract partial class KeyExchangeEC | ||
{ | ||
private sealed class BclImpl : Impl | ||
protected internal sealed class BclImpl : Impl |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit, here and elsewhere
protected internal sealed class BclImpl : Impl | |
protected sealed class BclImpl : Impl |
{ | ||
base.Start(session, message, sendClientInitMessage); | ||
#if NET | ||
if (System.OperatingSystem.IsWindowsVersionAtLeast(10)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is it all versions of windows 10?
{ | ||
private readonly ECDomainParameters _domainParameters; | ||
private readonly ECDHCBasicAgreement _keyAgreement; | ||
private readonly ECDHBasicAgreement _keyAgreement; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what does this change do?
actually, it is not working on my win10 22H2 machine (connected aborted). develop branch works fine, using curve25519-sha256 |
Beginning in Windows 10, CNG provides support for Curve25519.
See https://learn.microsoft.com/en-us/windows/win32/seccng/cng-named-elliptic-curves