Key::Key (uint8_t const * value, int length)
: _value (new uint8_t[length])
, _length (length)
Key::Key (uint8_t const * value, int length)
: _value (new uint8_t[length])
, _length (length)
Key::Key (string value)
: _value (new uint8_t[value.length() / 2])
, _length (value.length() / 2)
Key::Key (string value)
: _value (new uint8_t[value.length() / 2])
, _length (value.length() / 2)
Kumu::hex2bin (value.c_str(), _value, _length, &length_done);
}
Kumu::hex2bin (value.c_str(), _value, _length, &length_done);
}
Key::Key (Key const & other)
: _value (new uint8_t[other._length])
, _length (other._length)
Key::Key (Key const & other)
: _value (new uint8_t[other._length])
, _length (other._length)
bool
dcp::operator== (Key const & a, Key const & b)
{
return a.length() == b.length() && memcmp(a.value(), b.value(), a.length()) == 0;
}
bool
dcp::operator== (Key const & a, Key const & b)
{
return a.length() == b.length() && memcmp(a.value(), b.value(), a.length()) == 0;
}