Hash algorithm interface. More...
#include <Hash.h>
Public Member Functions | |
virtual const char * | name () const noexcept=0 |
Get identifier of the hash as used in the HashFactory. More... | |
virtual std::string | hash (const void *data, int length)=0 |
Compute hash. More... | |
|
pure virtual |
Compute hash.
data | Binary data |
length | Lenght of the binary data |
Implemented in serialbox::MD5, and serialbox::SHA256.
|
pure virtualnoexcept |
Get identifier of the hash as used in the HashFactory.
Implemented in serialbox::MD5, and serialbox::SHA256.