32 #include "../System/databuffer.h"
41 static std::shared_ptr<SHA384>
create();
51 virtual void hash(
unsigned char out_hash[hash_size])
const = 0;
54 virtual void reset() = 0;
62 virtual void set_hmac(
const void *key_data,
int key_size) = 0;
65 virtual void add(
const void *data,
int size) = 0;
std::shared_ptr< SHA384 > SHA384Ptr
Definition: sha384.h:76
static std::shared_ptr< SHA384 > create()
Constructs a SHA-384 hash generator.
SHA-384 hash function class.
Definition: sha384.h:37
virtual void add(const void *data, int size)=0
Adds data to be hashed.
virtual void reset()=0
Resets the hash generator.
virtual void set_hmac(const void *key_data, int key_size)=0
Enable a HMAC based calculation.
virtual void calculate()=0
Finalize hash calculation.
virtual std::string hash(bool uppercase=false) const =0
Returns the calculated hash.
static const int hash_size
Definition: sha384.h:43
std::shared_ptr< DataBuffer > DataBufferPtr
Definition: databuffer.h:66
Definition: Application/application.h:35