TAY
Fork of Crypto_light by
Diff: hash/HashAlgorithm.h
- Revision:
- 7:2dbbdfb08123
- Parent:
- 6:19aa835f2bbb
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/hash/HashAlgorithm.h Sat Sep 14 18:21:32 2013 +0000 @@ -0,0 +1,17 @@ +#ifndef HASH_ALGORITHM_H +#define HASH_ALGORITHM_H + +#include <stdint.h> + +class HashAlgorithm +{ + public : + + virtual ~HashAlgorithm(); + + virtual uint8_t outputSize() const = 0; + virtual void update(uint8_t *data, uint32_t length) = 0; + virtual void finalize(uint8_t *hash) = 0; +}; + +#endif