AsymmetricSignatureProvider.GetHashAlgorithmName(String) Method
Definition
Important
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.
Creating a Signature requires the use of a HashAlgorithm. This method returns the HashAlgorithmName that describes the HashAlgorithmto use when generating a Signature.
protected virtual System.Security.Cryptography.HashAlgorithmName GetHashAlgorithmName (string algorithm);
abstract member GetHashAlgorithmName : string -> System.Security.Cryptography.HashAlgorithmName
override this.GetHashAlgorithmName : string -> System.Security.Cryptography.HashAlgorithmName
Protected Overridable Function GetHashAlgorithmName (algorithm As String) As HashAlgorithmName
Parameters
- algorithm
- String
The SignatureAlgorithm in use.
Returns
The HashAlgorithmName to use.
Exceptions
Thrown if algorithm
is null or whitespace.
Thrown if algorithm
is not supported.