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: NAndy Lutomirski <luto@kernel.org> Acked-by: NHerbert Xu <herbert@gondor.apana.org.au> Acked-by: NJohan Hedberg <johan.hedberg@intel.com> Tested-by: NJohan Hedberg <johan.hedberg@intel.com> Signed-off-by: NMarcel Holtmann <marcel@holtmann.org>
Showing
想要评论请 注册 或 登录