Skip to content

ZeroMemory for sensetive buffer clear - #66577

Merged
BrennanConroy merged 4 commits into
dotnet:mainfrom
unsafePtr:feature/dataprotection-zeromemory
Jun 24, 2026
Merged

BrennanConroy merged 4 commits into
dotnet:mainfrom
unsafePtr:feature/dataprotection-zeromemory

Conversation

@unsafePtr

Copy link
Copy Markdown
Contributor

Description

Routes plaintext-secret buffer clears through a new CryptoUtil.ZeroMemory helper which is using CryptographicOperations.ZeroMemory if available.

Pattern is the same as within dotnet/runtime

@BrennanConroy

Copy link
Copy Markdown
Member

/ba-g unrelated

@BrennanConroy
BrennanConroy merged commit 687d5d4 into dotnet:main Jun 24, 2026
22 of 24 checks passed
@BrennanConroy

Copy link
Copy Markdown
Member

Thanks @unsafePtr!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-dataprotection Includes: DataProtection

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants