Class template that wraps sodium's crypto_generichash_* functions. More...
#include <DwmCredenceGenericHash.hh>
Public Member Functions | |
| GenericHash (const std::string &key="") | |
| Initializes the hash. | |
| void | Update (const std::string &chunk) |
| Updates the hash. | |
| std::string | Final () |
| Returns the final hash. | |
Class template that wraps sodium's crypto_generichash_* functions.
The template paramater OutLen is the desired length (in bytes) of the hash returned by Final().