]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit36dd920b3641a717607b82586150be6de734972f
tree5b94bd702edc959e273ec5c65367c7ac679295b7
parent3160abaa6d3ccf7d99a55aa904b2ee43e4670fd2
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