20 #ifndef SCIRE_hash_common_HPP
21 #define SCIRE_hash_common_HPP
23 #ifndef NO_HASH_UTILITY
38 template<
typename SzType =
size_t,
48 virtual void Init() = 0;
55 virtual bool Update(
const ByteT* input, SzType lenght) = 0;
57 virtual bool Update(
const SByteT* input, SzType lenght) = 0;
62 virtual void Final() = 0;
87 template<
typename SzT,
typename U32,
typename B8,
typename SB8>
104 template<
typename SzT,
typename U32,
typename B8,
typename SB8>
111 if (!
ifs)
return false;
147 template<
typename SzT,
typename U32,
typename B8,
typename SB8>
154 if (!
ifs)
return false;
160 template<
typename SzT,
typename U32,
typename B8,
typename SB8>
virtual void Init()=0
initialization.
static void Compute(IHashAlgo< SzT, U32, B8, SB8 > &iHA, std::string message)
Compute hash of msg using passed algo.
static bool ComputeFile(IHashAlgo< SzT, U32, B8, SB8 > &iHA, std::string filepath)
Compute hash of file using passed algo.
static utility routines for hash algorithms
Common interface for Hash Algorithms.
virtual std::string Fingerprint() const =0
fingerprint is the 128bit message-digest
virtual std::string StatePhrase() const =0
String representation of Four State Words (ABCD)
static bool Compute(IHashAlgo< SzT, U32, B8, SB8 > &iHA, std::ifstream &ifs)
Compute hash of file using passed algo.
scire/graph/gale_shapley.hpp
virtual void Final()=0
final hash compute, prepare digest.
static bool ComputeFile(IHashAlgo< SzT, U32, B8, SB8 > &iHA, char *filepath)
virtual std::string ToString() const =0
string reprsentation | fingerpring on finalize, else status words
virtual bool Update(const ByteT *input, SzType lenght)=0
block update operation
virtual bool Update(const SByteT *input, SzType lenght)=0