Direct-BT  2.3.1
Direct-BT - Direct Bluetooth Programming.
Public Member Functions | Public Attributes | List of all members
direct_bt::MgmtLongTermKeyInfo Struct Reference

Used for MgmtLoadLongTermKeyCmd and MgmtEvtNewLongTermKey. More...

#include <MgmtTypes.hpp>

Collaboration diagram for direct_bt::MgmtLongTermKeyInfo:

Public Member Functions

std::string toString () const noexcept
 
SMPLongTermKeyInfo toSMPLongTermKeyInfo () const noexcept
 

Public Attributes

EUI48 address
 
BDAddressType address_type
 0 reserved, 1 le public, 2 le static random address. More...
 
MgmtLTKType key_type
 Describing type of key, i.e. More...
 
uint8_t master
 
uint8_t enc_size
 Encryption Size. More...
 
uint16_t ediv
 Encryption Diversifier. More...
 
uint64_t rand
 Random Number. More...
 
jau::uint128_t ltk
 Long Term Key (LTK) More...
 

Detailed Description

Used for MgmtLoadLongTermKeyCmd and MgmtEvtNewLongTermKey.

Notable: No endian wise conversion shall occur on this data, since the encryption values are interpreted as a byte stream.

Definition at line 267 of file MgmtTypes.hpp.

Member Function Documentation

◆ toSMPLongTermKeyInfo()

SMPLongTermKeyInfo direct_bt::MgmtLongTermKeyInfo::toSMPLongTermKeyInfo ( ) const
inlinenoexcept

Definition at line 267 of file MgmtTypes.hpp.

◆ toString()

std::string direct_bt::MgmtLongTermKeyInfo::toString ( ) const
inlinenoexcept

Definition at line 267 of file MgmtTypes.hpp.

Member Data Documentation

◆ address

EUI48 direct_bt::MgmtLongTermKeyInfo::address

Definition at line 267 of file MgmtTypes.hpp.

◆ address_type

BDAddressType direct_bt::MgmtLongTermKeyInfo::address_type

0 reserved, 1 le public, 2 le static random address.

Compatible with BDAddressType.

Definition at line 267 of file MgmtTypes.hpp.

◆ ediv

uint16_t direct_bt::MgmtLongTermKeyInfo::ediv

Encryption Diversifier.

Definition at line 267 of file MgmtTypes.hpp.

◆ enc_size

uint8_t direct_bt::MgmtLongTermKeyInfo::enc_size

Encryption Size.

Definition at line 267 of file MgmtTypes.hpp.

◆ key_type

MgmtLTKType direct_bt::MgmtLongTermKeyInfo::key_type

Describing type of key, i.e.

used BTSecurityLevel and whether using Secure Connections (SC) for P256.

Definition at line 267 of file MgmtTypes.hpp.

◆ ltk

jau::uint128_t direct_bt::MgmtLongTermKeyInfo::ltk

Long Term Key (LTK)

Definition at line 267 of file MgmtTypes.hpp.

◆ master

uint8_t direct_bt::MgmtLongTermKeyInfo::master
  • BlueZ claims itself (initiator) as the SLAVE and the responder as the MASTER, * contrary to the spec roles of: Initiator (LL Master) and Responder (LL Slave).

Definition at line 267 of file MgmtTypes.hpp.

◆ rand

uint64_t direct_bt::MgmtLongTermKeyInfo::rand

Random Number.

Definition at line 267 of file MgmtTypes.hpp.


The documentation for this struct was generated from the following file: