zephyr/net
Szymon Janc 341f81bd81 Bluetooth: SMP: Refactor keys handling
This refactor the way stored keys are handled to avoid overwriting
existing keys with new keys in case of pairing failed. Main goal is
to delay update of keys (including type and encryption size) until
link is succesfully encrypted with new key (legacy STK or LE SC LTK).

To fix this properly, TK is used to store STK or LE SC LTK and updates
of keys properties are done only on successfull encryption. This makes
code less error prone since update is done only in one place in code.
Also quering SMP code for current key makes sure that correct keys is
used in case of re-pairing.

Change-Id: I6b9e3d8229de522143e0d1fbfe0bd8223dad2a56
Signed-off-by: Szymon Janc <ext.szymon.janc@tieto.com>
2016-02-05 20:24:52 -05:00
..
bluetooth Bluetooth: SMP: Refactor keys handling 2016-02-05 20:24:52 -05:00
ip net: 802.15.4: Start to send beacons if configured so 2016-02-05 20:24:52 -05:00
buf.c net: buf: Fix minor typo 2016-02-05 20:24:44 -05:00
Kconfig net: buf: Fix net buf debug 2016-02-05 20:24:47 -05:00
Makefile net: Add initial generic buffer implementation 2016-02-05 20:24:38 -05:00