Skip to content

Consider memoizing more CNG properties on CngKey that can't change after the key is finalized #89821

@vcsjones

Description

@vcsjones

#89599 shows that accessing some CNG properties are relatively expensive to the cryptographic operation itself. That pull request memoized the result for KeySize so that reading the KeySize property doesn't incur the overhead of reading ncrypt properties, which requires an RPC call.

We should consider what other properties can be memoized for performance. #89819 showed that AlgorithmGroup is likely another candidate.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions