Share via


AsymmetricSignatureProvider.GetHashAlgorithmName(String) Method

Definition

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.

Applies to