diff options
author | Johan Hedberg <johan.hedberg@intel.com> | 2014-08-08 09:37:17 +0300 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2014-08-14 08:49:19 +0200 |
commit | defce9e83666658d4420d65e45ab1ad190992f72 (patch) | |
tree | af8d06908ba1f5c1e568c3408b490ee5c6a70396 /net/bluetooth/smp.h | |
parent | 70db83c4bcdc1447bbcb318389561c90d7056b18 (diff) | |
download | op-kernel-dev-defce9e83666658d4420d65e45ab1ad190992f72.zip op-kernel-dev-defce9e83666658d4420d65e45ab1ad190992f72.tar.gz |
Bluetooth: Make AES crypto context private to SMP
Now that we have per-adapter SMP data thanks to the root SMP L2CAP
channel we can take advantage of it and attach the AES crypto context
(only used for SMP) to it. This means that the smp_irk_matches() and
smp_generate_rpa() function can be converted to internally handle the
AES context.
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'net/bluetooth/smp.h')
-rw-r--r-- | net/bluetooth/smp.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/net/bluetooth/smp.h b/net/bluetooth/smp.h index 6e29359..d3f6bd6 100644 --- a/net/bluetooth/smp.h +++ b/net/bluetooth/smp.h @@ -132,9 +132,8 @@ int smp_user_confirm_reply(struct hci_conn *conn, u16 mgmt_op, __le32 passkey); void smp_chan_destroy(struct l2cap_conn *conn); -bool smp_irk_matches(struct crypto_blkcipher *tfm, u8 irk[16], - bdaddr_t *bdaddr); -int smp_generate_rpa(struct crypto_blkcipher *tfm, u8 irk[16], bdaddr_t *rpa); +bool smp_irk_matches(struct hci_dev *hdev, u8 irk[16], bdaddr_t *bdaddr); +int smp_generate_rpa(struct hci_dev *hdev, u8 irk[16], bdaddr_t *rpa); int smp_register(struct hci_dev *hdev); void smp_unregister(struct hci_dev *hdev); |