nordic

Fork of nRF51822 by Nordic Semiconductor

Revision:
614:cbc548e9df98
Parent:
601:0978b5626451
--- a/source/btle/btle_security.h	Tue Jan 12 13:44:47 2016 +0000
+++ b/source/btle/btle_security.h	Tue Jan 12 19:58:02 2016 +0000
@@ -111,4 +111,18 @@
  */
 bool btle_matchAddressAndIrk(ble_gap_addr_t const * p_addr, ble_gap_irk_t const * p_irk);
 
+/**
+ * Function to generate a private resolvable BLE address.
+ *
+ * @param[out]  p_addr
+ *                  The output address.
+ * @param[in]   p_irk
+ *                  A reference to a IRK.
+ *
+ * @note This function does not generate a secure address since the prand number in the
+ *       resolvable address is not truly random. Therefore, the output of this function
+ *       is only meant to be used by the application internally but never exported.
+ */
+void btle_generateResolvableAddress(const ble_gap_irk_t &irk, ble_gap_addr_t &address);
+
 #endif /* _BTLE_SECURITY_H_ */
\ No newline at end of file