Direct-BT v3.3.0-1-gc2d430c
Direct-BT - Direct Bluetooth Programming.
|
SMP Long Term Key, used for platform agnostic persistence. More...
#include <SMPTypes.hpp>
Public Types | |
enum class | Property : uint8_t { NONE = 0x00 RESPONDER = 0x01 , AUTH = 0x02 , SC = 0x04 } |
Public Member Functions | |
void | clear () noexcept |
bool | isResponder () const noexcept |
constexpr bool | isValid () const noexcept |
std::string | toString () const noexcept |
Static Public Member Functions | |
static std::string | getPropertyString (const Property mask) noexcept |
static constexpr uint8_t | number (const Property rhs) noexcept |
Public Attributes | |
uint16_t | ediv |
Encryption Diversifier. More... | |
uint8_t | enc_size |
Encryption Size, zero if key is invalid. More... | |
jau::uint128dp_t | ltk |
Long Term Key (LTK) More... | |
Property | properties |
SMPLongTermKey::Property bit mask. More... | |
uint64_t | rand |
Random Number. More... | |
SMP Long Term 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.SMPLongTermKey
Definition at line 552 of file SMPTypes.hpp.
|
strong |
Enumerator | |
---|---|
NONE | No specific property. |
AUTH | Authentication used. |
SC | Secure Connection used. |
Definition at line 552 of file SMPTypes.hpp.
|
inlinestaticconstexprnoexcept |
Definition at line 552 of file SMPTypes.hpp.
|
staticnoexcept |
Definition at line 286 of file SMPTypes.cpp.
|
inlineconstexprnoexcept |
|
noexcept |
Definition at line 294 of file SMPTypes.cpp.
|
inlinenoexcept |
|
inlinenoexcept |
Property direct_bt::SMPLongTermKey::properties |
SMPLongTermKey::Property bit mask.
Definition at line 552 of file SMPTypes.hpp.
uint8_t direct_bt::SMPLongTermKey::enc_size |
Encryption Size, zero if key is invalid.
Definition at line 552 of file SMPTypes.hpp.
uint16_t direct_bt::SMPLongTermKey::ediv |
Encryption Diversifier.
Definition at line 552 of file SMPTypes.hpp.
uint64_t direct_bt::SMPLongTermKey::rand |
Random Number.
Definition at line 552 of file SMPTypes.hpp.
jau::uint128dp_t direct_bt::SMPLongTermKey::ltk |
Long Term Key (LTK)
Definition at line 552 of file SMPTypes.hpp.