shax.hpp
Go to the documentation of this file.
1 
15 #ifndef _SHAX_H_
16 #define _SHAX_H_
17 
18 #include <cstdint>
19 #include <vector>
20 #include <string>
21 
22 namespace cryptoTools {
23 
38 class SHAx
39 {
40 public:
53  virtual void preprocess(std::vector<uint8_t> initialMessage){};
54 
61  virtual void round(unsigned int counter){};
62 
75  virtual void hash(std::vector<uint8_t> initialMessage){};
76 
80  virtual std::vector<uint8_t> getHash()
81  {
82  std::vector<uint8_t> emptyVector;
83  return emptyVector;
84  };
85 
91  virtual std::string getType()
92  {
93  return "You shouldn't see this: there is a problem with the SHA functions";
94  };
95 
101  virtual uint32_t getHashLength()
102  {
103  return 0;
104  }
105 
106 
107 };
108 
109 } // closing namespace
110 
111 
112 #endif
113 
114