Class FinHashAlgorithmFactory
Simple helper factory for conveniently creating IFinHashAlgorithm implementations.
Inheritance
System.Object
FinHashAlgorithmFactory
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Subsembly.FinTS
Assembly: Subsembly.FinTS.Core.dll
Syntax
public sealed class FinHashAlgorithmFactory
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.
Declaration
public static IFinHashAlgorithm CreateHashAlgorithm(FinHash nHash)
Parameters
Type | Name | Description |
---|---|---|
FinHash | nHash |
Returns
Type | Description |
---|---|
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 |
Remarks
Currently implementations for Sha1, Sha256, and RipeMD160 are provided by this method. The value Sha256Sha256 is used synonymous to Sha256.