Class FinHashAlgorithmFactory

Namespace
Subsembly.FinTS
Assembly
Subsembly.FinTS.Core.dll

Simple helper factory for conveniently creating IFinHashAlgorithm implementations.

public sealed class FinHashAlgorithmFactory
Inheritance
FinHashAlgorithmFactory
Inherited Members

Remarks

Use the static CreateHashAlgorithm(FinHash) method of this class in order to instantiate a IFinHashAlgorithm implementation from a FinHash enumeration value.

Methods

CreateHashAlgorithm(FinHash)

Creates a new instance of an implementation of the requested hash algorithm.

public static IFinHashAlgorithm CreateHashAlgorithm(FinHash nHash)

Parameters

nHash FinHash

Returns

IFinHashAlgorithm

If an implementation of the requested hash algorithm exists, then a new instance of it is returned. If the parameter was None or no suitable implementation exists, then null is returned.

Remarks

Currently implementations for Sha1, Sha256, and RipeMD160 are provided by this method. The value Sha256Sha256 is used synonymous to Sha256.