Table of Contents

Method SidFromAlgorithm

Namespace
DocWright.Cryptography
Assembly
DocWright.Cryptography.dll

SidFromAlgorithm(OfficeHashAlgorithmKind)

Maps an algorithm onto its w:cryptAlgorithmSid value.

public static int SidFromAlgorithm(OfficeHashAlgorithmKind algorithm)

Parameters

algorithm OfficeHashAlgorithmKind

The algorithm.

Returns

int

The SID.

Exceptions

ArgumentOutOfRangeException

The algorithm has no SID.