SetHashAlgorithm()

DSASignatureDeformatter::SetHashAlgorithm(String) method

Sets hash algorithm to use.

void System::Security::Cryptography::DSASignatureDeformatter::SetHashAlgorithm(String strName) override

Arguments

ParameterTypeDescription
strNameStringHash algorithm name. Should be “SHA1”, “SHA256”, “SHA384” or “SHA512”.

Exceptions

ExceptionDescription
ArgumentNullExceptionIf strName is null.
CryptographicUnexpectedOperationExceptionIf the hash algorithm is not supported.

See Also