summaryrefslogtreecommitdiffstats
path: root/net/bluetooth/smp.h
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@intel.com>2014-02-18 10:19:31 +0200
committerMarcel Holtmann <marcel@holtmann.org>2014-02-18 00:47:02 -0800
commit60478054a6af7aa8cceb8218d29d27f165f1c9d3 (patch)
treecf713df16202dade0f90d6c00fd6eb8dd2d24592 /net/bluetooth/smp.h
parent6bfdfe3cd68d5a797e0ebfb57068fe7f9c20c93a (diff)
downloadop-kernel-dev-60478054a6af7aa8cceb8218d29d27f165f1c9d3.zip
op-kernel-dev-60478054a6af7aa8cceb8218d29d27f165f1c9d3.tar.gz
Bluetooth: Add smp_irk_matches helper function
This patch adds a helper function to check whether a given IRK matches a given Resolvable Private Address (RPA). The function will be needed for implementing the rest of address resolving support. 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.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/net/bluetooth/smp.h b/net/bluetooth/smp.h
index 777ee93..950d039 100644
--- a/net/bluetooth/smp.h
+++ b/net/bluetooth/smp.h
@@ -143,4 +143,7 @@ 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);
+
#endif /* __SMP_H */
OpenPOWER on IntegriCloud