System.Security.Cryptography.CngAlgorithmGroup Class

Encapsulates the name of an encryption algorithm group.

See Also: CngAlgorithmGroup Members


public sealed class CngAlgorithmGroup : IEquatable<CngAlgorithmGroup>


The System.Security.Cryptography.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.

The static properties return System.Security.Cryptography.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.

Several Cryptography Next Generation (CNG) classes (such as System.Security.Cryptography.CngKey) return System.Security.Cryptography.CngAlgorithmGroup objects. Classes that receive System.Security.Cryptography.CngAlgorithm objects can retrieve the embedded algorithm group name by calling the object's CngKey.AlgorithmGroup property.

Therefore, System.Security.Cryptography.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.


Namespace: System.Security.Cryptography
Assembly: System.Core (in System.Core.dll)
Assembly Versions: