CngAlgorithmGroup CngAlgorithmGroup CngAlgorithmGroup CngAlgorithmGroup Class

定义

封装加密算法组的名称。Encapsulates the name of an encryption algorithm group.

public ref class CngAlgorithmGroup sealed : IEquatable<System::Security::Cryptography::CngAlgorithmGroup ^>
[System.Serializable]
public sealed class CngAlgorithmGroup : IEquatable<System.Security.Cryptography.CngAlgorithmGroup>
type CngAlgorithmGroup = class
    interface IEquatable<CngAlgorithmGroup>
Public NotInheritable Class CngAlgorithmGroup
Implements IEquatable(Of CngAlgorithmGroup)
继承
CngAlgorithmGroupCngAlgorithmGroupCngAlgorithmGroupCngAlgorithmGroup
属性
实现

注解

CngAlgorithmGroup类是一个实用工具类。The CngAlgorithmGroup class is a utility class. 它由静态属性、比较方法和用于定义算法组名称的私有、内部维护的字符串组成。It consists of static properties, comparison methods, and a private, internally maintained string that defines an algorithm group name.

静态属性返回CngAlgorithmGroup对象。The static properties return CngAlgorithmGroup objects. 每个对象的内部字符串都初始化为与静态属性的名称相对应的算法组名称。Each object's internal string is initialized to the algorithm group name that corresponds to the name of the static property.

你还可以使用此类为静态属性未涵盖的算法组创建对象。You can also use this class to create objects for algorithm groups that are not covered by the static properties.

下一代加密技术 (CNG) 类 (如CngKey) 返回CngAlgorithmGroup对象。Several Cryptography Next Generation (CNG) classes (such as CngKey) return CngAlgorithmGroup objects. 接收CngAlgorithm对象的类可以通过调用对象的AlgorithmGroup属性来检索嵌入的算法组名称。Classes that receive CngAlgorithm objects can retrieve the embedded algorithm group name by calling the object's AlgorithmGroup property.

因此, CngAlgorithmGroup用作已知算法组的枚举。Therefore, CngAlgorithmGroup serves as an enumeration of well-known algorithm groups. 使用强类型化的值而不是字符串, 可以指定算法组的名称。It lets you specify an algorithm group name by using a strongly typed value instead of a string.

构造函数

CngAlgorithmGroup(String) CngAlgorithmGroup(String) CngAlgorithmGroup(String) CngAlgorithmGroup(String)

初始化 CngAlgorithmGroup 类的新实例。Initializes a new instance of the CngAlgorithmGroup class.

属性

AlgorithmGroup AlgorithmGroup AlgorithmGroup AlgorithmGroup

获取当前 CngAlgorithm 对象指定的算法组的名称。Gets the name of the algorithm group that the current CngAlgorithm object specifies.

DiffieHellman DiffieHellman DiffieHellman DiffieHellman

获取一个指定 Diffie-Hellman 算法系列的 CngAlgorithmGroup 对象。Gets a CngAlgorithmGroup object that specifies the Diffie-Hellman family of algorithms.

Dsa Dsa Dsa Dsa

获取一个指定数字签名算法 (DSA) 算法系列的 CngAlgorithmGroup 对象。Gets a CngAlgorithmGroup object that specifies the Digital Signature Algorithm (DSA) family of algorithms.

ECDiffieHellman ECDiffieHellman ECDiffieHellman ECDiffieHellman

获取一个指定椭圆曲线 Diffie-Hellman (ECDH) 算法系列的 CngAlgorithmGroup 对象。Gets a CngAlgorithmGroup object that specifies the Elliptic Curve Diffie-Hellman (ECDH) family of algorithms.

ECDsa ECDsa ECDsa ECDsa

获取一个指定椭圆曲线数字签名算法 (ECDSA) 算法系列的 CngAlgorithmGroup 对象。Gets a CngAlgorithmGroup object that specifies the Elliptic Curve Digital Signature Algorithm (ECDSA) family of algorithms.

Rsa Rsa Rsa Rsa

获取一个指定 Rivest-Shamir-Adleman (RSA) 算法系列的 CngAlgorithmGroup 对象。Gets a CngAlgorithmGroup object that specifies the Rivest-Shamir-Adleman (RSA) family of algorithms.

方法

Equals(CngAlgorithmGroup) Equals(CngAlgorithmGroup) Equals(CngAlgorithmGroup) Equals(CngAlgorithmGroup)

将指定的 CngAlgorithmGroup 对象与当前的 CngAlgorithmGroup 对象进行比较。Compares the specified CngAlgorithmGroup object to the current CngAlgorithmGroup object.

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

将指定的对象与当前的 CngAlgorithmGroup 对象进行比较。Compares the specified object to the current CngAlgorithmGroup object.

GetHashCode() GetHashCode() GetHashCode() GetHashCode()

为当前 CngAlgorithmGroup 对象中嵌入的算法组名称生成一个哈希值。Generates a hash value for the algorithm group name that is embedded in the current CngAlgorithmGroup 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()

获取当前 CngAlgorithm 对象指定的算法组的名称。Gets the name of the algorithm group that the current CngAlgorithm object specifies.

操作员

Equality(CngAlgorithmGroup, CngAlgorithmGroup) Equality(CngAlgorithmGroup, CngAlgorithmGroup) Equality(CngAlgorithmGroup, CngAlgorithmGroup) Equality(CngAlgorithmGroup, CngAlgorithmGroup)

确定两个 CngAlgorithmGroup 对象指定的是否是同一算法组。Determines whether two CngAlgorithmGroup objects specify the same algorithm group.

Inequality(CngAlgorithmGroup, CngAlgorithmGroup) Inequality(CngAlgorithmGroup, CngAlgorithmGroup) Inequality(CngAlgorithmGroup, CngAlgorithmGroup) Inequality(CngAlgorithmGroup, CngAlgorithmGroup)

确定两个 CngAlgorithmGroup 对象是否未指定同一算法组。Determines whether two CngAlgorithmGroup objects do not specify the same algorithm group.

适用于