<PackageReference Include="System.Security.Cryptography.Cng" Version="5.0.0-preview.5.20278.1" />

System.Security.Cryptography.CngKeyUsages

public enum CngKeyUsages
Specifies the cryptographic operations that a Cryptography Next Generation (CNG) key may be used with.
AllUsages = 16777215

The key can be used for all purposes.

The key can be used for encryption and decryption.

The key can be used for secret agreement generation and key exchange.

None = 0

No usage values are assigned to the key.

Signing = 2

The key can be used for signing and verification.