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

Add Span<byte> overloads for ProtectedData #109529

Merged
merged 18 commits into from
Nov 8, 2024

Conversation

ChadNedzlek
Copy link
Member

@ChadNedzlek ChadNedzlek commented Nov 5, 2024

ProtectedData only has allocating byte[] overloads, but in .NET 5+, Span overloads can avoid allocations.

Resolves #108734

ProtectedData only has allocating byte[] overloads,
but in .NET 5+, Span<byte> overloads can avoid allocations.
Copy link

Note regarding the new-api-needs-documentation label:

This serves as a reminder for when your PR is modifying a ref *.cs file and adding/modifying public APIs, please make sure the API implementation in the src *.cs file is documented with triple slash comments, so the PR reviewers can sign off that change.

Copy link

Note regarding the new-api-needs-documentation label:

This serves as a reminder for when your PR is modifying a ref *.cs file and adding/modifying public APIs, please make sure the API implementation in the src *.cs file is documented with triple slash comments, so the PR reviewers can sign off that change.

@danzuep
Copy link

danzuep commented Nov 5, 2024

ProtectedData only has allocating byte[] overloads, but in .NET 5+, Span overloads can avoid allocations.

Issue #109480 108734

Wrong issue link 🙂

ChadNedzlek and others added 9 commits November 5, 2024 13:08
…ystem/Security/Cryptography/ProtectedData.cs

Co-authored-by: Jeremy Barton <[email protected]>
…ystem/Security/Cryptography/ProtectedData.cs

Co-authored-by: Jeremy Barton <[email protected]>
…ystem/Security/Cryptography/ProtectedData.cs

Co-authored-by: Jeremy Barton <[email protected]>
…ystem/Security/Cryptography/ProtectedData.cs

Co-authored-by: Jeremy Barton <[email protected]>
…/SpanProtectedDataTests.cs

Co-authored-by: Jeremy Barton <[email protected]>
…ystem/Security/Cryptography/ProtectedData.cs

Co-authored-by: Jeremy Barton <[email protected]>
…ystem/Security/Cryptography/ProtectedData.cs

Co-authored-by: Jeremy Barton <[email protected]>
…ystem/Security/Cryptography/ProtectedData.cs

Co-authored-by: Jeremy Barton <[email protected]>
@bartonjs bartonjs merged commit 2f24ac9 into dotnet:main Nov 8, 2024
80 of 83 checks passed
@bartonjs bartonjs added this to the 10.0.0 milestone Nov 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[API Proposal]: Add Span<byte> support to System.Security.Cryptography.ProtectedData
4 participants