Bluetooth: Switch SMP to crypto_cipher_encrypt_one()
authorAndy Lutomirski <luto@kernel.org>
Sun, 26 Jun 2016 21:55:23 +0000 (14:55 -0700)
committerMarcel Holtmann <marcel@holtmann.org>
Fri, 8 Jul 2016 10:20:57 +0000 (12:20 +0200)
commita4770e1117f193c3e27f5f046cd4f8e2470f3b70
tree5b94bd702edc959e273ec5c65367c7ac679295b7
parenta90a6e55f34f28190e4dc2a6a3660ef157827a8f
Bluetooth: Switch SMP to crypto_cipher_encrypt_one()

SMP does ECB crypto on stack buffers.  This is complicated and
fragile, and it will not work if the stack is virtually allocated.

Switch to the crypto_cipher interface, which is simpler and safer.

Signed-off-by: Andy Lutomirski <luto@kernel.org>
Acked-by: Herbert Xu <herbert@gondor.apana.org.au>
Acked-by: Johan Hedberg <johan.hedberg@intel.com>
Tested-by: Johan Hedberg <johan.hedberg@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/smp.c