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>
Tue, 11 Apr 2017 16:32:24 +0000 (09:32 -0700)
commitc84faa65fb9e6f58ae05b409127774332399d6ec
treef1cb9d62d508708046bf807576598e8963afaa00
parent67ae84fb7f01d8458bfc1dcb506f32e7d9350d17
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
(cherry picked from commit e7f14a682d57811d9df0d64372f222bcc143ec86)
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