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