Contains parameters that are passed to the cryptographic service provider (CSP) that performs cryptographic computations. This class cannot be inherited.
See Also: CspParameters Members
The System.Security.Cryptography.CspParameters class represents parameters that you can pass to managed cryptography classes that internally use Microsoft Cryptographic Service Providers (CSPs) from the unmanaged Microsoft Cryptography API (CAPI). Classes with names ending in "CryptoServiceProvider" are managed code wrappers for the corresponding CSP.
Use the System.Security.Cryptography.CspParameters class to do the following:
Specify a particular CSP by passing the provider type to the CspParameters.ProviderType or CspParameters.ProviderName property. You can also specify a CSP using an overload of the constructor.
Create a key container where you can store cryptographic keys. Key containers provide the most secure way to persist cryptographic keys and keep them secret from malicious third parties. For more information about creating key containers, see How to: Store Asymmetric Keys in a Key Container.
Specify whether to create an asymmetric signature key or an asymmetric exchange key using the CspParameters.KeyNumber property.