hash.h
// Copyright (c) 2016 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
};
class RUDIMENTS_DLLSPEC hash {
public:
hash() {};
virtual ~hash() {};
virtual bool append(const unsigned char *data,
uint32_t length)=0;
virtual const unsigned char *getHash()=0;
virtual uint32_t getHashLength()=0;
virtual bool clear()=0;
virtual hasherror_t getError()=0;
};
#endif
hash::hash
hash()
Definition: hash.h:21
hash
Definition: hash.h:18
hash::~hash
virtual ~hash()
Definition: hash.h:24