summaryrefslogtreecommitdiffstats
path: root/api
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2020-12-04 14:13:50 +0100
committerSven Gothel <[email protected]>2020-12-04 14:13:50 +0100
commit90fc023ef03f3bb05be6b05a8bbadc02d909ccd0 (patch)
treefad5b5c039e14a9503cdc570ea489112f71213d5 /api
parent016ef2ad1e25cedff5ffb9df97f75dc6741ffaae (diff)
DBTDevice::hciSMPMsgCallback: Cache ENC_KEY (ltk, ediv + rand) for processing (next step)
Diffstat (limited to 'api')
-rw-r--r--api/direct_bt/DBTDevice.hpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/api/direct_bt/DBTDevice.hpp b/api/direct_bt/DBTDevice.hpp
index 0f5b891a..781168af 100644
--- a/api/direct_bt/DBTDevice.hpp
+++ b/api/direct_bt/DBTDevice.hpp
@@ -97,6 +97,12 @@ namespace direct_bt {
uint8_t maxEncsz_init, maxEncsz_resp;
SMPKeyDist keys_init_exp, keys_resp_exp;
SMPKeyDist keys_init_has, keys_resp_has;
+
+ // LTK: Set of Long Term Key data: ltk, ediv + rand
+ jau::uint128_t ltk_init, ltk_resp;
+ uint16_t ediv_init, ediv_resp;
+ uint64_t rand_init, rand_resp;
+
};
PairingData pairing_data;
std::mutex mtx_pairing;