iaik.cms
Interface HashEngine

All Known Subinterfaces:
InputStreamHashEngine, OutputStreamHashEngine

public interface HashEngine

Generic hash engine. It does not take care about the way the data to be hashed is provided (this may be done by, e.g., piping the data through a stream or, e.g., by suppliyng the data by means of byte array(s). This interface only contains one single method, getHash that must return the hash value calculated on the data.


Method Summary
 byte[] getHash()
          Gets the calculated hash value.
 

Method Detail

getHash

byte[] getHash()
Gets the calculated hash value. A call to this method resets the underlying hash engine.

Returns:
the hash value.

This Javadoc may contain text parts from text parts from IETF Internet Standard specifications (see copyright note).

IAIK-CMS 5.1, (c) 2002 IAIK, (c) 2003 - 2010 SIC