Interface IFinHashAlgorithm
Provides the hash algorithm to the Hash(IFinHashAlgorithm) method.
Namespace: Subsembly.FinTS
Assembly: Subsembly.FinTS.Core.dll
Syntax
public interface IFinHashAlgorithm
Remarks
HBCI and FinTS currently use three different hash algorthm: RIPE-MD 160, SHA-1, and SHA-256. An implementation of the IFinHashAlgorithm interface provides the actual hash algorithm for computing the hash value of a message.
Methods
Finalise()
Finalise hash computation and return resulting hash value.
Declaration
byte[] Finalise()
Returns
Type | Description |
---|---|
System.Byte[] | Returns the final hash value. |
Hash(FinByteBuffer)
Add the given data buffer to the hash value.
Declaration
void Hash(FinByteBuffer aDataBuffer)
Parameters
Type | Name | Description |
---|---|---|
FinByteBuffer | aDataBuffer | The data buffer to be added. Must not be |
Initialise()
Initialise the hash algorithm for computing a new hash value.
Declaration
void Initialise()