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>
Showing
- net/bluetooth/ecdh_helper.c 6 additions, 26 deletionsnet/bluetooth/ecdh_helper.c
- net/bluetooth/ecdh_helper.h 5 additions, 3 deletionsnet/bluetooth/ecdh_helper.h
- net/bluetooth/selftest.c 21 additions, 8 deletionsnet/bluetooth/selftest.c
- net/bluetooth/smp.c 55 additions, 13 deletionsnet/bluetooth/smp.c
Loading
Please register or sign in to comment