diff options
author | Johan Hedberg <johan.hedberg@intel.com> | 2014-02-18 12:19:31 +0400 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2014-02-18 12:47:02 +0400 |
commit | 60478054a6af7aa8cceb8218d29d27f165f1c9d3 (patch) | |
tree | cf713df16202dade0f90d6c00fd6eb8dd2d24592 /net/bluetooth/smp.h | |
parent | 6bfdfe3cd68d5a797e0ebfb57068fe7f9c20c93a (diff) | |
download | linux-60478054a6af7aa8cceb8218d29d27f165f1c9d3.tar.xz |
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.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/bluetooth/smp.h b/net/bluetooth/smp.h index 777ee93a6c9b..950d039c2ea2 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 */ |