KeyAgreeRecipientInfo KeyAgreeRecipientInfo KeyAgreeRecipientInfo KeyAgreeRecipientInfo Class


KeyAgreeRecipientInfo 类定义密钥协议收信方信息。The KeyAgreeRecipientInfo class defines key agreement recipient information. “密钥协议”算法通常使用 Diffie-Hellman 密钥协议算法,在 Diffie-Hellman 密钥协议算法中,建立共享加密密钥的双方都要参与密钥的生成,当然,双方都认同生成的密钥。Key agreement algorithms typically use the Diffie-Hellman key agreement algorithm, in which the two parties that establish a shared cryptographic key both take part in its generation and, by definition, agree on that key. 这与密钥传输算法不同,在密钥传输算法中,将由一方单独生成密钥,然后将密钥发送或传输给另一方。This is in contrast to key transport algorithms, in which one party generates the key unilaterally and sends, or transports it, to the other party.

public ref class KeyAgreeRecipientInfo sealed : System::Security::Cryptography::Pkcs::RecipientInfo
public sealed class KeyAgreeRecipientInfo : System.Security.Cryptography.Pkcs.RecipientInfo
type KeyAgreeRecipientInfo = class
    inherit RecipientInfo
Public NotInheritable Class KeyAgreeRecipientInfo
Inherits RecipientInfo


此类没有公共构造函数;因此, 不能对其进行公共实例化。This class does not have a public constructor; therefore, it cannot be publicly instantiated. 它是可通过EnvelopedCms.RecipientInfos属性访问的只读类。It is a read-only class accessible from the EnvelopedCms.RecipientInfos property.


Date Date Date Date

Date 属性检索发信方开始密钥协议的日期和时间。The Date property retrieves the date and time of the start of the key agreement protocol by the originator.

EncryptedKey EncryptedKey EncryptedKey EncryptedKey

EncryptedKey 属性检索加密的收信方密钥材料。The EncryptedKey property retrieves the encrypted recipient keying material.

KeyEncryptionAlgorithm KeyEncryptionAlgorithm KeyEncryptionAlgorithm KeyEncryptionAlgorithm

KeyEncryptionAlgorithm 属性检索用于执行密钥协议的算法。The KeyEncryptionAlgorithm property retrieves the algorithm used to perform the key agreement.

OriginatorIdentifierOrKey OriginatorIdentifierOrKey OriginatorIdentifierOrKey OriginatorIdentifierOrKey

OriginatorIdentifierOrKey 属性检索关于密钥协议的发信方的信息,以获取保证协议的密钥协议算法。The OriginatorIdentifierOrKey property retrieves information about the originator of the key agreement for key agreement algorithms that warrant it.

OtherKeyAttribute OtherKeyAttribute OtherKeyAttribute OtherKeyAttribute

OtherKeyAttribute 属性检索密钥材料的特性。The OtherKeyAttribute property retrieves attributes of the keying material.

RecipientIdentifier RecipientIdentifier RecipientIdentifier RecipientIdentifier

RecipientIdentifier 属性检索收信方的标识符。The RecipientIdentifier property retrieves the identifier of the recipient.

Type Type Type Type

Type 属性检索收件人的类型。The Type property retrieves the type of the recipient. 收件人的类型决定使用两个主要协议中的哪个协议在 CMS/PKCS #7 消息的发信方和收件人之间建立密钥。The type of the recipient determines which of two major protocols is used to establish a key between the originator and the recipient of a CMS/PKCS #7 message.

(Inherited from RecipientInfo)
Version Version Version Version

Version 属性检索密钥协议收信方的版本。The Version property retrieves the version of the key agreement recipient. 对于此类中的对象,这是自动设置的,该值暗示收信方参与的是密钥协议算法。This is automatically set for objects in this class, and the value implies that the recipient is taking part in a key agreement algorithm.


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)
ToString() ToString() ToString() ToString()

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

(Inherited from Object)