8000
  • Clean up Abstractions / use HashData by mus65 · Pull Request #1451 · sshnet/SSH.NET · GitHub
    [go: up one dir, main page]

    Skip to content

    Clean up Abstractions / use HashData#1451

    Merged
    Rob-Hague merged 2 commits intosshnet:developfrom
    mus65:abstractioncleanup_hashdata
    Jul 23, 2024
    Merged

    Clean up Abstractions / use HashData#1451
    Rob-Hague merged 2 commits intosshnet:developfrom
    mus65:abstractioncleanup_hashdata

    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

    Co-authored-by: Robert Hague <rh@johnstreetcapital.com>
    @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

    0