]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: move ecdh allocation outside of ecdh_helper
authorTudor Ambarus <tudor.ambarus@microchip.com>
Thu, 28 Sep 2017 14:14:51 +0000 (17:14 +0300)
committerMarcel Holtmann <marcel@holtmann.org>
Fri, 6 Oct 2017 18:35:47 +0000 (20:35 +0200)
commit79dc23ec76626aafd68fa3dc32940ad1eb2d0048
treea1974722296d4b7e82ba70a181dbc3ac0a005708
parenteaa0ad8beb7fe1f8970ec501c2fefeebee6fe63f
Bluetooth: move ecdh allocation outside of ecdh_helper

Before this change, a new crypto tfm was allocated, each time,
for both key generation and shared secret computation.

Allocate a single tfm for both cases.

Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/ecdh_helper.c
net/bluetooth/ecdh_helper.h
net/bluetooth/selftest.c
net/bluetooth/smp.c