Interface IFinHashAlgorithm
Provides the hash algorithm to the Hash(IFinHashAlgorithm) method.
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.
byte[] Finalise()
Returns
- byte[]
Returns the final hash value.
Hash(FinByteBuffer)
Add the given data buffer to the hash value.
void Hash(FinByteBuffer aDataBuffer)
Parameters
aDataBufferFinByteBufferThe data buffer to be added. Must not be
null.
Initialise()
Initialise the hash algorithm for computing a new hash value.
void Initialise()