RSACryptoServiceProvider.ImportCspBlob Method (Byte[])


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Imports a blob that represents RSA key information.

Namespace:   System.Security.Cryptography
Assembly:  mscorlib (in mscorlib.dll)

abstract ImportCspBlob : 
        keyBlob:byte[] -> unit
override ImportCspBlob : 
        keyBlob:byte[] -> unit


Type: System.Byte[]

A byte array that represents an RSA key blob.

The ImportCspBlob method initializes the key data of an RSACryptoServiceProvider object using a blob that is compatible with the unmanaged Microsoft Cryptographic API (CAPI).


for permission to access a key container when importing a key. Security action: Demand. Associated enumeration: KeyContainerPermissionFlags.Import

.NET Framework
Available since 2.0
Windows Phone Silverlight
Available since 7.1
Return to top