]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Add selftest for ECDH key generation
authorMarcel Holtmann <marcel@holtmann.org>
Sun, 30 Apr 2017 13:51:41 +0000 (06:51 -0700)
committerJohan Hedberg <johan.hedberg@intel.com>
Sun, 30 Apr 2017 13:52:43 +0000 (16:52 +0300)
commitc4a135ed240d4701aa3c6bb1d669f0f16d831c30
treeb74aeafc0a4d4d68129c01a037ef58f5b8563603
parent7f2d3711c8cbd2c298e379f32e28e8dd23e9f62a
Bluetooth: Add selftest for ECDH key generation

Since the ECDH key generation takes a different path, it needs to be
tested as well. For this generate the public debug key from the private
debug key and compare both.

This also moves the seeding of the private key into the SMP calling code
to allow for easier re-use of the ECDH key generation helper.

Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
net/bluetooth/ecdh_helper.c
net/bluetooth/smp.c