7#ifndef LOGICALACCESS_HMAC1KEY_HPP
8#define LOGICALACCESS_HMAC1KEY_HPP
15#define HMAC1_KEY_SIZE 10
36 explicit HMAC1Key(
const std::string &str);
43 HMAC1Key(
const void *buf,
size_t buflen);
58 const unsigned char *
getData()
const override
77 void serialize(boost::property_tree::ptree &parentNode)
override;
83 void unSerialize(boost::property_tree::ptree &node)
override;
89 std::string getDefaultXmlNodeName()
const override;
A hmac-1 key class.
Definition: hmac1key.hpp:23
virtual ~HMAC1Key()=default
size_t getLength() const override
Get the key length.
Definition: hmac1key.hpp:49
unsigned char * getData() override
Get the key data.
Definition: hmac1key.hpp:67
const unsigned char * getData() const override
Get the key data.
Definition: hmac1key.hpp:58
A Key base class. The key object is used to describe key chip information used for authentication on ...
Definition: key.hpp:22
#define HMAC1_KEY_SIZE
The default hmac-1 key size.
Definition: hmac1key.hpp:15