hash.h
// Copyright (c) 1999-2018 David Muse
// See the COPYING file for more information.
#ifndef RUDIMENTS_HASH_H
#define RUDIMENTS_HASH_H
#include <rudiments/private/hashincludes.h>
enum hasherror_t {
HASH_ERROR_SUCCESS=0,
HASH_ERROR_NULL,
HASH_ERROR_INPUT_TOO_LONG,
HASH_ERROR_STATE_ERROR,
HASH_ERROR_UNSUPPORTED
};
class RUDIMENTS_DLLSPEC hash {
public:
hash() {};
virtual ~hash() {};
virtual bool append(const unsigned char *data,
uint32_t size)=0;
virtual const unsigned char *getHash()=0;
virtual uint64_t getHashSize()=0;
virtual bool clear()=0;
virtual hasherror_t getError()=0;
};
#endif
hash
Definition: hash.h:19
hash::getHashSize
virtual uint64_t getHashSize()=0
hash::append
virtual bool append(const unsigned char *data, uint32_t size)=0
hash::~hash
virtual ~hash()
Definition: hash.h:25
hash::getError
virtual hasherror_t getError()=0
hash::clear
virtual bool clear()=0
hash::hash
hash()
Definition: hash.h:22
hash::getHash
virtual const unsigned char * getHash()=0