Skip to content
Commit a4770e11 authored by Andy Lutomirski's avatar Andy Lutomirski Committed by Marcel Holtmann
Browse files

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: default avatarAndy Lutomirski <luto@kernel.org>
Acked-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
Acked-by: default avatarJohan Hedberg <johan.hedberg@intel.com>
Tested-by: default avatarJohan Hedberg <johan.hedberg@intel.com>
Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
parent a90a6e55
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment