Set the hash algorithm to be used to compute the digital signature. For DSA the default (and only acceptable) hash algorithm is SHA-1.
- strName
- Name of the hash algorithm. This name will be resolved by System.Security.Cryptography.CryptoConfig to create an instance of the class.
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.
Namespace: System.Security.Cryptography
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0