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)
commit47eb2ac809189e0a60ad78eec6db9e84004e11be
treea1974722296d4b7e82ba70a181dbc3ac0a005708
parent24a3a32a99ca9dcd8b2cdbaf5c99e6d99878cdb0
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