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

Always use factories for HmacAlgorithms #1262

Merged
merged 3 commits into from
Dec 9, 2023

Conversation

Rob-Hague
Copy link
Collaborator

Add a wrapping delegate on all the hmac factories in ConnectionInfo. This removes the need to load SshNet.Security.Cryptography.dll unless HMACRIPEMD160 is actually used (helpful when referencing the project directly in a test app).

Also re-order the algorithms. Note: a Dictionary does not guarantee order, and we should change it, but it does tend to enumerate in order as an implementation detail when items have not been removed).

Copy link
Collaborator

@WojciechNagorski WojciechNagorski left a comment

Choose a reason for hiding this comment

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

LGTM!

@WojciechNagorski WojciechNagorski merged commit 04178d8 into sshnet:develop Dec 9, 2023
1 check passed
@Rob-Hague Rob-Hague deleted the factories branch December 9, 2023 11:08
@WojciechNagorski WojciechNagorski added this to the 2023.0.1 milestone Dec 20, 2023
@WojciechNagorski
Copy link
Collaborator

The 2023.0.1 version has been released to Nuget: https://www.nuget.org/packages/SSH.NET/2023.0.1

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.

2 participants