AsymmetricKeyExchangeFormatter AsymmetricKeyExchangeFormatter AsymmetricKeyExchangeFormatter AsymmetricKeyExchangeFormatter Class

定义

表示从中派生出所有非对称密钥交换格式化程序的基类。Represents the base class from which all asymmetric key exchange formatters derive.

public ref class AsymmetricKeyExchangeFormatter abstract
[System.Runtime.InteropServices.ComVisible(true)]
public abstract class AsymmetricKeyExchangeFormatter
type AsymmetricKeyExchangeFormatter = class
Public MustInherit Class AsymmetricKeyExchangeFormatter
继承
AsymmetricKeyExchangeFormatterAsymmetricKeyExchangeFormatterAsymmetricKeyExchangeFormatterAsymmetricKeyExchangeFormatter
派生
属性

注解

非对称密钥交换格式化程序加密密钥交换数据。Asymmetric key exchange formatters encrypt key exchange data.

密钥交换允许发件人创建机密信息,如可以用作对称加密算法中的密钥的随机数据,并使用加密将它发送到目标接收方。Key exchange allows a sender to create secret information, such as random data that can be used as a key in a symmetric encryption algorithm, and use encryption to send it to the intended recipient.

注意

强烈建议您不要尝试使用所提供的基本功能来创建自己的密钥交换方法,因为必须仔细执行操作的许多详细信息,密钥交换才会成功。It is highly recommended that you not attempt to create your own key exchange method from the basic functionality provided, because many details of the operation must be performed carefully in order for the key exchange to be successful.

构造函数

AsymmetricKeyExchangeFormatter() AsymmetricKeyExchangeFormatter() AsymmetricKeyExchangeFormatter() AsymmetricKeyExchangeFormatter()

初始化 AsymmetricKeyExchangeFormatter 的新实例。Initializes a new instance of AsymmetricKeyExchangeFormatter.

属性

Parameters Parameters Parameters Parameters

当在派生类中重写时,获取非对称密钥交换的参数。When overridden in a derived class, gets the parameters for the asymmetric key exchange.

方法

CreateKeyExchange(Byte[]) CreateKeyExchange(Byte[]) CreateKeyExchange(Byte[]) CreateKeyExchange(Byte[])

当在派生类中重写时,请从指定的输入数据创建加密的密钥交换数据。When overridden in a derived class, creates the encrypted key exchange data from the specified input data.

CreateKeyExchange(Byte[], Type) CreateKeyExchange(Byte[], Type) CreateKeyExchange(Byte[], Type) CreateKeyExchange(Byte[], Type)

当在派生类中重写时,请从指定的输入数据创建加密的密钥交换数据。When overridden in a derived class, creates the encrypted key exchange data from the specified input data.

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

确定指定的对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

作为默认哈希函数。Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

获取当前实例的 TypeGets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(Inherited from Object)
SetKey(AsymmetricAlgorithm) SetKey(AsymmetricAlgorithm) SetKey(AsymmetricAlgorithm) SetKey(AsymmetricAlgorithm)

当在派生类中重写时,设置用于加密机密信息的公钥。When overridden in a derived class, sets the public key to use for encrypting the secret information.

ToString() ToString() ToString() ToString()

返回表示当前对象的字符串。Returns a string that represents the current object.

(Inherited from Object)

适用于

另请参阅