7#ifndef LOGICALACCESS_SEOSKEY_HPP
8#define LOGICALACCESS_SEOSKEY_HPP
11#include <logicalaccess/plugins/cards/seos/lla_cards_seos_api.hpp>
16#define SEOS_KEY_SIZE 16
36 using XmlSerializable::serialize;
37 using XmlSerializable::unSerialize;
49 explicit SeosKey(
const std::string &str);
56 SeosKey(
const void *buf,
size_t buflen);
62 size_t getLength()
const override;
68 const unsigned char *
getData()
const override
101 void serialize(boost::property_tree::ptree &parentNode)
override;
107 void unSerialize(boost::property_tree::ptree &node)
override;
113 std::string getDefaultXmlNodeName()
const override;
120 virtual bool operator==(
const SeosKey &key)
const;
129 return !operator==(key);
A Key base class. The key object is used to describe key chip information used for authentication on ...
Definition: key.hpp:22
A SEOS Key class.
Definition: seoskey.hpp:33
SeosKeyType getKeyType() const
Get the key type.
Definition: seoskey.hpp:92
SeosKeyType d_keyType
The SEOS key type.
Definition: seoskey.hpp:147
unsigned char * getData() override
Get the key data.
Definition: seoskey.hpp:77
bool operator!=(const SeosKey &key) const
Inequality operator.
Definition: seoskey.hpp:127
const unsigned char * getData() const override
Get the key data.
Definition: seoskey.hpp:68
ByteVector d_key
The key bytes;.
Definition: seoskey.hpp:142
std::vector< uint8_t > ByteVector
Definition: lla_fwd.hpp:80
SeosKeyType
The SEOS key type.
Definition: seoskey.hpp:24
@ SEOS_KEY_AES
Definition: seoskey.hpp:26
@ SEOS_KEY_DES
Definition: seoskey.hpp:25