ImagingTools Core SDK
Public Member Functions | List of all members
imtcrypt::IHashGeneratorabstract

#include <IHashGenerator.h>

Inherits istd::IPolymorphic.

Inherited by imtcrypt::CMD5HashCalculator [virtual].

Public Member Functions

virtual QByteArray GenerateHash (const QByteArray &input) const =0
 
virtual bool ValidateHash (const QByteArray &inputData, const QByteArray &hashValue) const =0
 

Detailed Description

Interface describing the hash generation of data.

Definition at line 17 of file IHashGenerator.h.

Member Function Documentation

◆ GenerateHash()

virtual QByteArray imtcrypt::IHashGenerator::GenerateHash ( const QByteArray &  input) const
pure virtual

Generates hash from input data

Parameters
input- data array to generate hash of it.

◆ ValidateHash()

virtual bool imtcrypt::IHashGenerator::ValidateHash ( const QByteArray &  inputData,
const QByteArray &  hashValue 
) const
pure virtual

Valdidates the hashValue with the inputData

Warning
you should use this method because some hash generators generates different hashes for the same string