Early Preview

This is currently very much a preview. Please feel free to try things out, but don't be upset if anything is not yet working. Feedback is welcome over on our GitHub Dicussions page.

struct System.​Security.​Cryptography.​ICspAsymmetricAlgorithm

Assembly: System.Security.Cryptography

Defines methods that allow an <see cref="T:System.Security.Cryptography.AsymmetricAlgorithm" /> class to enumerate key container information, and import and export Microsoft Cryptographic API (CAPI)-compatible key blobs.

Properties

CspKeyContainerInfo
Gets a <see cref="T:System.Security.Cryptography.CspKeyContainerInfo" /> object that describes additional information about a cryptographic key pair.

Methods

public byte[]
ExportCspBlob​(bool includePrivateParameters)
includePrivateParameters <see langword="true" /> to include the private key; otherwise, <see langword="false" /> .
Returns A byte array that contains the key information associated with an <see cref="T:System.Security.Cryptography.AsymmetricAlgorithm" /> object.
Exports a blob that contains the key information associated with an <see cref="T:System.Security.Cryptography.AsymmetricAlgorithm" /> object.
public void
ImportCspBlob​(byte[] rawData)
rawData A byte array that represents an asymmetric key blob.
Imports a blob that represents asymmetric key information.