ICspAsymmetricAlgorithm 接口

定义

定义允许 AsymmetricAlgorithm 类枚举密钥容器信息,并导入和导出与 Microsoft 加密 API (CAPI) 兼容的密钥 blob 的方法。Defines methods that allow an AsymmetricAlgorithm class to enumerate key container information, and import and export Microsoft Cryptographic API (CAPI)-compatible key blobs.

public interface class ICspAsymmetricAlgorithm
[System.Runtime.InteropServices.ComVisible(true)]
public interface ICspAsymmetricAlgorithm
type ICspAsymmetricAlgorithm = interface
Public Interface ICspAsymmetricAlgorithm
派生
属性

注解

扩展AsymmetricAlgorithm类的类应该ICspAsymmetricAlgorithm实现接口, 以便使用CspKeyContainerInfo对象枚举密钥容器信息, 并导入和导出与 Microsoft 加密 API (CAPI) 兼容的密钥 blob。Classes that extend the AsymmetricAlgorithm class should implement the ICspAsymmetricAlgorithm interface to enumerate key container information using a CspKeyContainerInfo object, and to import and export Microsoft Cryptographic API (CAPI)-compatible key blobs.

属性

CspKeyContainerInfo

获取描述有关加密密钥对的附加信息的 CspKeyContainerInfo 对象。Gets a CspKeyContainerInfo object that describes additional information about a cryptographic key pair.

方法

ExportCspBlob(Boolean)

导出包含与 AsymmetricAlgorithm 对象关联的密钥信息的 Blob。Exports a blob that contains the key information associated with an AsymmetricAlgorithm object.

ImportCspBlob(Byte[])

导入一个表示非对称密钥信息的 Blob。Imports a blob that represents asymmetric key information.

适用于