Rudiments
sha256.h
1 // Copyright (c) 1999-2018 David Muse
2 // See the COPYING file for more information.
3 
4 #ifndef RUDIMENTS_SHA256_H
5 #define RUDIMENTS_SHA256_H
6 
7 #include <rudiments/private/sha256includes.h>
8 
10 class RUDIMENTS_DLLSPEC sha256 : public hash {
11  public:
13  sha256();
14 
16  virtual ~sha256();
17 
21  bool append(const unsigned char *data, uint32_t size);
22 
26  const unsigned char *getHash();
27 
29  uint64_t getHashSize();
30 
34  bool clear();
35 
37  hasherror_t getError();
38 
39  #include <rudiments/private/sha256.h>
40 };
41 
42 #endif
Definition: hash.h:19
Definition: sha256.h:10
const unsigned char * getHash()
uint64_t getHashSize()
virtual ~sha256()
bool append(const unsigned char *data, uint32_t size)
bool clear()
hasherror_t getError()