SetHashAlgorithm()
DSASignatureDeformatter::SetHashAlgorithm(String) method
Sets hash algorithm to use.
void System::Security::Cryptography::DSASignatureDeformatter::SetHashAlgorithm(String strName) override
Arguments
| Parameter | Type | Description |
|---|---|---|
| strName | String | Hash algorithm name. Should be “SHA1”, “SHA256”, “SHA384” or “SHA512”. |
Exceptions
| Exception | Description |
|---|---|
| ArgumentNullException | If strName is null. |
| CryptographicUnexpectedOperationException | If the hash algorithm is not supported. |
See Also
- Class String
- Class DSASignatureDeformatter
- Namespace System::Security::Cryptography
- Library Aspose.Slides