]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: zero kpp input for key generation
authorMarcel Holtmann <marcel@holtmann.org>
Sun, 30 Apr 2017 13:51:40 +0000 (06:51 -0700)
committerJohan Hedberg <johan.hedberg@intel.com>
Sun, 30 Apr 2017 13:52:39 +0000 (16:52 +0300)
commit7f2d3711c8cbd2c298e379f32e28e8dd23e9f62a
tree5d2f413a50c0895cc326fc854bf47c2b34fac8f4
parentd99f662bb1d48dee736875677d10f0ef170e24d9
Bluetooth: zero kpp input for key generation

When generating new ECDH keys with kpp, the shared secret input needs to
be set to NULL. Fix this by including kpp_request_set_input call.

Fixes: 26b00c26 ("Bluetooth: convert smp and selftest to crypto kpp
API")
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
net/bluetooth/ecdh_helper.c