add comments with the LTK steps
This commit is contained in:
parent
1661d978d0
commit
4e6ad3f113
1 changed files with 10 additions and 0 deletions
|
@ -10,6 +10,16 @@ import info.nightscout.androidaps.utils.extensions.hexStringToByteArray
|
||||||
internal class LTKExchanger(private val aapsLogger: AAPSLogger,private val msgIO: MessageIO) {
|
internal class LTKExchanger(private val aapsLogger: AAPSLogger,private val msgIO: MessageIO) {
|
||||||
|
|
||||||
fun negociateLTKAndNonce(): LTK? {
|
fun negociateLTKAndNonce(): LTK? {
|
||||||
|
// send SP1, SP2
|
||||||
|
// send SPS1
|
||||||
|
// read SPS1
|
||||||
|
|
||||||
|
// send SPS2
|
||||||
|
// read SPS2
|
||||||
|
|
||||||
|
// send SP0GP0
|
||||||
|
// read P0
|
||||||
|
|
||||||
val msg = MessagePacket(
|
val msg = MessagePacket(
|
||||||
destination = Address(byteArrayOf(1,2,3,4)),
|
destination = Address(byteArrayOf(1,2,3,4)),
|
||||||
source = Address(byteArrayOf(5,6,7,8)),
|
source = Address(byteArrayOf(5,6,7,8)),
|
||||||
|
|
Loading…
Reference in a new issue