OSDN Git Service

Support for H7 function for key derivation
authorJakub Pawlowski <jpawlowski@google.com>
Mon, 20 Mar 2017 22:38:56 +0000 (15:38 -0700)
committerJakub Pawlowski <jpawlowski@google.com>
Sat, 8 Apr 2017 05:22:45 +0000 (05:22 +0000)
commite7f14a682d57811d9df0d64372f222bcc143ec86
tree3cf39c8ca05f583bf10873baa8247289bd619c3e
parent304ceeb5202060a9c625a55369cbf28d72f5e2d9
Support for H7 function for key derivation

This change sets bit 5 of the auth req to 1 to display
the support for H7 function, for key derivation.
Also, it adds the implementation of the h7 function as
defined in the spec (ERRATA E7301]
H7 is used if both host and remote devices exhibit
their support for H7 function in the auth request,
else the key derivation falls back to the H6
implementation.
The method is similar for derivation from either
transports with the only difference being in the first
byte of the SAL used in h7.

This patch is based on CAF patch by niarora@codeaurora.org
70668ad34ff15d0a53aea612d3c488fa575176ca

Test: manual
Bug: 35935853
Change-Id: I2fa29b2f3d2b3ac007b2f5f024871f81220237d8
stack/include/btm_api_types.h
stack/include/smp_api_types.h
stack/smp/smp_act.cc
stack/smp/smp_int.h
stack/smp/smp_keys.cc
stack/smp/smp_utils.cc