BlueToe
an alternative GATT/BLE implementation
|
access to a user defined key data base More...
#include <bluetoe/sm/include/bluetoe/security_manager.hpp>
access to a user defined key data base
The provided implementation has to implement the following functions:
template < class Radio > longterm_key_t create_new_bond( Radio& radio, const bluetoe::link_layer::device_address& mac );
void store_bond( const bluetoe::details::longterm_key_t& key, const bluetoe::link_layer::device_address& mac)
std::pair< bool, details::uint128_t > find_key( std::uint16_t ediv, std::uint64_t rand, const bluetoe::link_layer::device_address& remote_address ) const;
template < class Connection > void restore_cccds( Connection& connection );
create_new_bond() is used to create a longterm key für a bond with the given device. radio
can be used to generate random numbers.
store_bond() is used to store a key that was either created by store_bond(), or during the LESC paring process.
find_key() will be called to lookup a stored long term key. If it does not exists, the function should return a pair with the first member set to false.
This will also set bonding flags in the pairing response to "Bonding".
Obj | type that implements the given requirements |
obj | instance that implements the given requirements |