Direct-BT v3.3.0-1-gc2d430c
Direct-BT - Direct Bluetooth Programming.
|
SMP Identity Resolving Key, used for platform agnostic persistence. More...
#include <SMPTypes.hpp>
Public Types | |
enum class | Property : uint8_t { NONE = 0x00 RESPONDER = 0x01 , AUTH = 0x02 } |
Public Member Functions | |
void | clear () noexcept |
bool | isResponder () const noexcept |
bool | matches (const EUI48 &rpa) noexcept |
Returns true if this IRK matches the given random private address (RPA). More... | |
std::string | toString () const noexcept |
Static Public Member Functions | |
static std::string | getPropertyString (const Property mask) noexcept |
static bool | matches (const jau::uint128dp_t &irk, const EUI48 &rpa) noexcept |
Returns true if the given IRK matches the given random private address (RPA). More... | |
static constexpr uint8_t | number (const Property rhs) noexcept |
Public Attributes | |
EUI48 | id_address |
Identity Address for the IRK. More... | |
jau::uint128dp_t | irk |
Identity Resolving Key (IRK) More... | |
Property | properties |
SMPIdentityResolvingKey::Property bit mask. More... | |
SMP Identity Resolving Key, used for platform agnostic persistence.
Notable: No endian wise conversion shall occur on this data, since the encryption values are interpreted as little-endian or as a byte stream.
Byte layout must be synchronized with java org.tinyb.SMPIdentityResolvingKey
Definition at line 636 of file SMPTypes.hpp.
|
strong |
Enumerator | |
---|---|
NONE | No specific property. |
AUTH | Authentication used. |
Definition at line 636 of file SMPTypes.hpp.
|
inlinestaticconstexprnoexcept |
Definition at line 636 of file SMPTypes.hpp.
|
staticnoexcept |
Definition at line 302 of file SMPTypes.cpp.
|
noexcept |
Definition at line 310 of file SMPTypes.cpp.
|
noexcept |
Returns true if this IRK matches the given random private address (RPA).
Definition at line 314 of file SMPTypes.cpp.
|
staticnoexcept |
Returns true if the given IRK matches the given random private address (RPA).
This static variant is a helper for the Java binding, use matches().
Definition at line 318 of file SMPTypes.cpp.
|
inlinenoexcept |
Definition at line 636 of file SMPTypes.hpp.
|
inlinenoexcept |
Property direct_bt::SMPIdentityResolvingKey::properties |
SMPIdentityResolvingKey::Property bit mask.
Definition at line 636 of file SMPTypes.hpp.
jau::uint128dp_t direct_bt::SMPIdentityResolvingKey::irk |
Identity Resolving Key (IRK)
Definition at line 636 of file SMPTypes.hpp.
EUI48 direct_bt::SMPIdentityResolvingKey::id_address |
Identity Address for the IRK.
Definition at line 636 of file SMPTypes.hpp.