|
Direct-BT
2.3.1
Direct-BT - Direct Bluetooth Programming.
|
SMP Long Term Key Info, used for platform agnostic persistence. More...
#include <SMPTypes.hpp>
Public Types | |
| enum | Property : uint8_t { Property::NONE = 0x00 RESPONDER = 0x01, Property::AUTH = 0x02, Property::SC = 0x04 } |
Public Member Functions | |
| constexpr bool | isValid () const noexcept |
| bool | isResponder () const noexcept |
| void | clear () noexcept |
| std::string | toString () const noexcept |
Static Public Member Functions | |
| static constexpr uint8_t | number (const Property rhs) noexcept |
| static std::string | getPropertyString (const Property mask) noexcept |
Public Attributes | |
| Property | properties |
| SMPLongTermKeyInfo::Property bit mask. More... | |
| uint8_t | enc_size |
| Encryption Size, zero if key is invalid. More... | |
| uint16_t | ediv |
| Encryption Diversifier. More... | |
| uint64_t | rand |
| Random Number. More... | |
| jau::uint128_t | ltk |
| Long Term Key (LTK) More... | |
SMP Long Term Key Info, used for platform agnostic persistence.
Notable: No endian wise conversion shall occur on this data, since the encryption values are interpreted as a byte stream.
Byte layout must be synchronized with java org.tinyb.SMPLongTermKeyInfo
Definition at line 522 of file SMPTypes.hpp.
|
strong |
| Enumerator | |
|---|---|
| NONE | No specific property. |
| AUTH | Authentication used. |
| SC | Secure Connection used. |
Definition at line 522 of file SMPTypes.hpp.
|
inlinenoexcept |
Definition at line 522 of file SMPTypes.hpp.
|
staticnoexcept |
|
noexcept |
Definition at line 318 of file SMPTypes.cpp.
|
inlineconstexprnoexcept |
|
inlinestaticconstexprnoexcept |
Definition at line 522 of file SMPTypes.hpp.
|
inlinenoexcept |
| uint16_t direct_bt::SMPLongTermKeyInfo::ediv |
Encryption Diversifier.
Definition at line 522 of file SMPTypes.hpp.
| uint8_t direct_bt::SMPLongTermKeyInfo::enc_size |
Encryption Size, zero if key is invalid.
Definition at line 522 of file SMPTypes.hpp.
| jau::uint128_t direct_bt::SMPLongTermKeyInfo::ltk |
Long Term Key (LTK)
Definition at line 522 of file SMPTypes.hpp.
| Property direct_bt::SMPLongTermKeyInfo::properties |
SMPLongTermKeyInfo::Property bit mask.
Definition at line 522 of file SMPTypes.hpp.
| uint64_t direct_bt::SMPLongTermKeyInfo::rand |
Random Number.
Definition at line 522 of file SMPTypes.hpp.
1.8.18