Algorithm Name Struct
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Specifies the name of a cryptographic hash algorithm.
public value class HashAlgorithmName : IEquatable<System::Security::Cryptography::HashAlgorithmName>
public readonly struct HashAlgorithmName : IEquatable<System.Security.Cryptography.HashAlgorithmName>
public struct HashAlgorithmName : IEquatable<System.Security.Cryptography.HashAlgorithmName>
type HashAlgorithmName = struct
Public Structure HashAlgorithmName Implements IEquatable(Of HashAlgorithmName)
The HashAlgorithmName structure includes some static properties that return predefined hash algorithm names, as well as a Name property that can represent a custom hash algorithm name as a strongly-typed string. Hash algorithm names are case-sensitive.
Asymmetric algorithms implemented using Microsoft's CNG (Cryptographic Next Generation) API interpret the underlying string value as a CNG algorithm identifier.
Asymmetric algorithms implemented using other technologies:
Must recognize at least "MD5", "SHA1", "SHA256", "SHA384", and "SHA512".
Should recognize additional CNG identifiers for any additional hash algorithms that they support.
Due to collision problems with MD5 and SHA1, Microsoft recommends a security model based on SHA256 or better.
Initializes a new instance of the HashAlgorithmName structure with a custom name.
Gets a hash algorithm name that represents "MD5".
Gets the underlying string representation of the algorithm name.
Gets a hash algorithm name that represents "SHA1".
Gets a hash algorithm name that represents "SHA256".
Gets a hash algorithm name that represents "SHA384".
Gets a hash algorithm name that represents "SHA512".
Returns a value that indicates whether two HashAlgorithmName instances are equal.
Returns a value that indicates whether the current instance and a specified object are equal.
Converts the specified OID to a hash algorithm name.
Returns the hash code for the current instance.
Returns the string representation of the current HashAlgorithmName instance.
Tries to convert the specified OID to a hash algorithm name.
Determines whether two specified HashAlgorithmName objects are equal.
Determines whether two specified HashAlgorithmName objects are not equal.