引用文档:Core_v5.1
在4.0版本和4.1版本中定义的配对模式称为LE legacy pairing。在4.2版本中新增LE Secure Connections。
在LE legacy pairing模式和LE Secure Connection模式中,配对都分为三个阶段(原书2423页):
a. phase 1: Pairing Feature Exchange
b.phase 2:(LE legacy pairing):Short Term Key (STK) Generation
(LE Secure Connections):Long Term Key (LTK) Generation
c.phase 3: Transport Specific Key Distribution
图1
整个配对过程如下图2所示,可见整个过程属于SMP协议层的交互,对照图1可知从Pairing Confirm(8684)到Pairing Random(8691)从属phase2,从Encryption Information(8709)到Identity Address Information(8772)从属phase3: