Skip to content

Clean up Abstractions / use HashData #1451

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

Merged
merged 2 commits into from
Jul 23, 2024

Conversation

mus65
Copy link
Contributor

@mus65 mus65 commented Jul 21, 2024

- replace usages of GenerateRandom(byte[]) with GenerateRandom(int)
- remove Create() functions and make use of static HashData methods
  on .NET 6+, see https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/ca1850
- Remove unused ReflectionAbstraction
@Rob-Hague
Copy link
Collaborator

I wrote a very similar branch just the other day 🙂 develop...Rob-Hague:SSH.NET:hashoneshot

May I suggest taking the CryptoAbstraction.Hash[..] pattern from that branch. Seems like the ideal place for the ifdefs

@mus65
Copy link
Contributor Author

mus65 commented Jul 22, 2024

ha, bad timing. 😄

yeah, that's better, PrivateKeyFile.cs was kind of messy with all the ifdefs. I cherry-picked your changes and added you as co-auhor.

@Rob-Hague Rob-Hague merged commit 4cc1278 into sshnet:develop Jul 23, 2024
1 check passed
@mus65 mus65 deleted the abstractioncleanup_hashdata branch September 14, 2024 09:30
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