OSDN Git Service

SMP_Encrypt refactor
authorJakub Pawlowski <jpawlowski@google.com>
Thu, 14 Jun 2018 16:03:47 +0000 (09:03 -0700)
committerJakub Pawlowski <jpawlowski@google.com>
Thu, 14 Jun 2018 20:17:43 +0000 (13:17 -0700)
commitc3e7c878fe8495590f059547153bd77cdea322a6
treeb9d8240c383f5ea6ad8acdbd83dfaf61f1ebb3b7
parent4d64a6e4574391d401d378d1b4d4056d6470e703
SMP_Encrypt refactor

* key must be 16bit, so no need to pass it's length, and check it's
  value
* p_out being null is a bad call that should crash to be catched, not an
  error we should handle
* hash computation always succeed, don't return any errors

Test: existing unit tests cover it, i.e. AesCmacTest
Change-Id: Ifba8902f3f1a7be3c54dd7a33d9ff1e52ffd237b
stack/btm/btm_ble.cc
stack/btm/btm_ble_addr.cc
stack/btm/btm_ble_multi_adv.cc
stack/include/smp_api.h
stack/smp/smp_api.cc
stack/smp/smp_cmac.cc
stack/smp/smp_int.h
stack/smp/smp_keys.cc
stack/smp/smp_utils.cc
stack/test/ble_advertiser_test.cc
stack/test/stack_smp_test.cc