Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Memoize some CngKey standard properties#99053

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
vcsjones merged 4 commits intodotnet:mainfromvcsjones:cng-memoize
Mar 6, 2024

Conversation

vcsjones
Copy link
Member

This memoizes some CngKey properties similar to what we did for KeySize in#89599 for performance. Accessing CNG key properties by Win32 have non-trivial performance characteristics since it results in an LRPC call. These properties are set during key creation time and cannot be changed after-the-fact, so storing them is reasonable.

Closes#89821

@ghost
Copy link

Tagging subscribers to this area: @dotnet/area-system-security,@bartonjs,@vcsjones
See info inarea-owners.md if you want to be subscribed.

Issue Details

This memoizes some CngKey properties similar to what we did for KeySize in#89599 for performance. Accessing CNG key properties by Win32 have non-trivial performance characteristics since it results in an LRPC call. These properties are set during key creation time and cannot be changed after-the-fact, so storing them is reasonable.

Closes#89821

Author:vcsjones
Assignees:-
Labels:

area-System.Security

Milestone:9.0.0

@vcsjonesvcsjones merged commit5f52977 intodotnet:mainMar 6, 2024
@vcsjonesvcsjones deleted the cng-memoize branchMarch 6, 2024 21:12
@github-actionsgithub-actionsbot locked and limited conversation to collaboratorsApr 7, 2024
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.
Reviewers

@stephentoubstephentoubstephentoub left review comments

@bartonjsbartonjsbartonjs approved these changes

Assignees

@vcsjonesvcsjones

Projects
None yet
Milestone
9.0.0
Development

Successfully merging this pull request may close these issues.

Consider memoizing more CNG properties on CngKey that can't change after the key is finalized
3 participants
@vcsjones@stephentoub@bartonjs

[8]ページ先頭

©2009-2025 Movatter.jp