Mono Class Library: System.Security.Cryptography.DSASignatureFormatter Overview | Members

System.Security.Cryptography.DSASignatureFormatter.SetHashAlgorithm Method

Set the hash algorithm to be used to compute the digital signature. For DSA the default (and only acceptable) hash algorithm is SHA-1. [Edit]

public override void SetHashAlgorithm (string strName)

Parameters

strName
Name of the hash algorithm. This name will be resolved by System.Security.Cryptography.CryptoConfig to create an instance of the class. [Edit]

Remarks

This class only support the System.Security.Cryptography.SHA1 hash algorithm. Any name that resolves in another hash algorithm (or anything else) will throw a System.Security.Cryptography.CryptographicUnexpectedOperationException. This is a restriction of the DSA algorithm (FIPS 186) not of the class library. [Edit]

Requirements

Namespace: System.Security.Cryptography
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0