一.概念
The Security Manager defines methods of pairing and key distribution, a protocol for those methods and a security toolbox to be used by those methods and other parts of an LE device.
二.pairing过程
分为3个phase:
· Phase 1: Pairing Feature Exchange
· Phase 2: Short Term Key (STK) Generation
· Phase 3: Transport Specific Key Distribution
其中,在phase2生成Short Term Key (STK)的过程,可以用到以下三种方法:
· Just Works
· Passkey Entry
· Out Of Band (OOB)
下面是一些chart,可以具体看三个phase实现的一些动作:
1.总的过程如下
可以看到第二个生成STK的过程有三个方法。
2.先看第一个phase:Pairing Feature Exchange
分为master主动发起和slave要求发起,多了一个slave发起的Security Request (AuthReq)
:
3.第二个phase:Authenticating and Encrypting
分别对应上面 Just Works, Passkey Entry 和Out Of Band (OOB)三种方法。