Rudiments: /home/dmuse/src/rudiments/include/rudiments/sha1.h Source File

Rudiments

- Main Page
- Classes

sha1.h
1 // Copyright (c) 2016 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
9 class sha1private;
10
12 class RUDIMENTS_DLLSPEC sha1 : public hash {
13 public:
15 sha1();
16
18 virtual ~sha1();
19
23 bool append(const unsigned char *data, uint32_t length);
24
28 const unsigned char *getHash();
29
31 uint32_t getHashLength();
32
36 bool clear();
37
39 hasherror_t getError();
40
41 #include <rudiments/private/sha1.h>
42 };
43
44 #endif
hash::append
virtual bool append(const unsigned char *data, uint32_t length)=0
hash::getHash
virtual const unsigned char * getHash()=0
sha1
Definition: sha1.h:12
hash
Definition: hash.h:18
hash::clear
virtual bool clear()=0
hash::getHashLength
virtual uint32_t getHashLength()=0
hash::getError
virtual hasherror_t getError()=0