Skip to content

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
@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