Method SidFromAlgorithm
SidFromAlgorithm(OfficeHashAlgorithmKind)
Maps an algorithm onto its w:cryptAlgorithmSid value.
public static int SidFromAlgorithm(OfficeHashAlgorithmKind algorithm)
Parameters
algorithmOfficeHashAlgorithmKindThe algorithm.
Returns
- int
The SID.
Exceptions
- ArgumentOutOfRangeException
The algorithm has no SID.