Wiselib
Public Types | Public Member Functions | Public Attributes
wiselib::KeyShare< OsModel_P, Radio_P, Debug_P > Class Template Reference

#include <keylevels_share.h>

List of all members.

Public Types

enum  ReturnValues { SUCCESS = OsModel::SUCCESS, ERR_UNSPEC = OsModel::ERR_UNSPEC, SUCCESS = OsModel::SUCCESS, ERR_UNSPEC = OsModel::ERR_UNSPEC }
enum  ReturnValues { SUCCESS = OsModel::SUCCESS, ERR_UNSPEC = OsModel::ERR_UNSPEC, SUCCESS = OsModel::SUCCESS, ERR_UNSPEC = OsModel::ERR_UNSPEC }
typedef OsModel_P OsModel
typedef Radio_P Radio
typedef Debug_P Debug
typedef Radio::node_id_t node_id_t
typedef
wiselib::MapStaticVector
< OsModel, node_id_t, key,
NODES_MAX > 
trusted_links_t
typedef OsModel_P OsModel
typedef Radio_P Radio
typedef Debug_P Debug
typedef Radio::node_id_t node_id_t
typedef
wiselib::MapStaticVector
< OsModel, node_id_t, key,
NODES_MAX > 
trusted_links_t
typedef trusted_links_t::iterator trusted_links_it

Public Member Functions

 KeyShare ()
void variation_on_SDBMHash (uint8_t *data, unsigned int len)
int init (Radio &radio, Debug &debug, Random &random)
void fillKeyshareWithKeys (Random *random)
void fillKeyshareWithKeyIndexesAndLevels (Random *random)
void fillKeyshareWithKeyValues (Random *random)
void fillKeyshareWithTestKeyIndexesAndLevels ()
void fillKeyshareWithFakeKeys ()
void fillKeyshareWithTestKeys (Random *random)
int random ()
unsigned int get_keyshare_size ()
void listKeyshare ()
keyget_key (uint16_t key_index)
bool owns_key (uint16_t key_index)
bool trusted_link_exists (node_id_t node)
void put_trusted_link (node_id_t node, key link)
keyget_key_info (node_id_t node)
void print_key (uint8_t *key, int size)
void print_key_value (uint8_t *value, uint8_t size)
void print_all_key_info (key *k)
 KeyShare ()
trusted_links_it tl_start ()
trusted_links_it tl_end ()
void variation_on_SDBMHash (uint8_t *data, unsigned int len)
int init (Radio &radio, Debug &debug, Random &random)
void fillKeyshareWithKeys (Random *random)
void fillKeyshareWithKeyIndexesAndLevels (Random *random)
void fillKeyshareWithKeyValues (Random *random)
unsigned int get_keyshare_size ()
keyget_key (uint16_t key_index)
bool owns_key (uint16_t key_index)
bool trusted_link_exists (node_id_t node)
void put_trusted_link (node_id_t node, key link)
keyget_key_info (node_id_t node)
void print_key (uint8_t *key, int size)
void print_key_value (uint8_t *value, uint8_t size)
void print_all_key_info (key *k)

Public Attributes

key keyshare [KEYSHARE_SIZE]

template<typename OsModel_P, typename Radio_P, typename Debug_P = typename OsModel_P::Debug>
class wiselib::KeyShare< OsModel_P, Radio_P, Debug_P >


Member Typedef Documentation

template<typename OsModel_P, typename Radio_P, typename Debug_P = typename OsModel_P::Debug>
typedef Debug_P wiselib::KeyShare< OsModel_P, Radio_P, Debug_P >::Debug
template<typename OsModel_P, typename Radio_P, typename Debug_P = typename OsModel_P::Debug>
typedef Debug_P wiselib::KeyShare< OsModel_P, Radio_P, Debug_P >::Debug
template<typename OsModel_P, typename Radio_P, typename Debug_P = typename OsModel_P::Debug>
typedef Radio::node_id_t wiselib::KeyShare< OsModel_P, Radio_P, Debug_P >::node_id_t
template<typename OsModel_P, typename Radio_P, typename Debug_P = typename OsModel_P::Debug>
typedef Radio::node_id_t wiselib::KeyShare< OsModel_P, Radio_P, Debug_P >::node_id_t
template<typename OsModel_P, typename Radio_P, typename Debug_P = typename OsModel_P::Debug>
typedef OsModel_P wiselib::KeyShare< OsModel_P, Radio_P, Debug_P >::OsModel
template<typename OsModel_P, typename Radio_P, typename Debug_P = typename OsModel_P::Debug>
typedef OsModel_P wiselib::KeyShare< OsModel_P, Radio_P, Debug_P >::OsModel
template<typename OsModel_P, typename Radio_P, typename Debug_P = typename OsModel_P::Debug>
typedef Radio_P wiselib::KeyShare< OsModel_P, Radio_P, Debug_P >::Radio
template<typename OsModel_P, typename Radio_P, typename Debug_P = typename OsModel_P::Debug>
typedef Radio_P wiselib::KeyShare< OsModel_P, Radio_P, Debug_P >::Radio
template<typename OsModel_P, typename Radio_P, typename Debug_P = typename OsModel_P::Debug>
typedef trusted_links_t::iterator wiselib::KeyShare< OsModel_P, Radio_P, Debug_P >::trusted_links_it
template<typename OsModel_P, typename Radio_P, typename Debug_P = typename OsModel_P::Debug>
typedef wiselib::MapStaticVector<OsModel, node_id_t, key, NODES_MAX> wiselib::KeyShare< OsModel_P, Radio_P, Debug_P >::trusted_links_t
template<typename OsModel_P, typename Radio_P, typename Debug_P = typename OsModel_P::Debug>
typedef wiselib::MapStaticVector<OsModel, node_id_t, key, NODES_MAX> wiselib::KeyShare< OsModel_P, Radio_P, Debug_P >::trusted_links_t

Member Enumeration Documentation

template<typename OsModel_P, typename Radio_P, typename Debug_P = typename OsModel_P::Debug>
enum wiselib::KeyShare::ReturnValues
Enumerator:
SUCCESS 
ERR_UNSPEC 
SUCCESS 
ERR_UNSPEC 
template<typename OsModel_P, typename Radio_P, typename Debug_P = typename OsModel_P::Debug>
enum wiselib::KeyShare::ReturnValues
Enumerator:
SUCCESS 
ERR_UNSPEC 
SUCCESS 
ERR_UNSPEC 

Constructor & Destructor Documentation

template<typename OsModel_P, typename Radio_P, typename Debug_P = typename OsModel_P::Debug>
wiselib::KeyShare< OsModel_P, Radio_P, Debug_P >::KeyShare ( ) [inline]
template<typename OsModel_P, typename Radio_P, typename Debug_P = typename OsModel_P::Debug>
wiselib::KeyShare< OsModel_P, Radio_P, Debug_P >::KeyShare ( ) [inline]

Member Function Documentation

template<typename OsModel_P, typename Radio_P, typename Debug_P = typename OsModel_P::Debug>
void wiselib::KeyShare< OsModel_P, Radio_P, Debug_P >::fillKeyshareWithFakeKeys ( ) [inline]
template<typename OsModel_P, typename Radio_P, typename Debug_P = typename OsModel_P::Debug>
void wiselib::KeyShare< OsModel_P, Radio_P, Debug_P >::fillKeyshareWithKeyIndexesAndLevels ( Random random) [inline]
template<typename OsModel_P, typename Radio_P, typename Debug_P = typename OsModel_P::Debug>
void wiselib::KeyShare< OsModel_P, Radio_P, Debug_P >::fillKeyshareWithKeyIndexesAndLevels ( Random random) [inline]
template<typename OsModel_P, typename Radio_P, typename Debug_P = typename OsModel_P::Debug>
void wiselib::KeyShare< OsModel_P, Radio_P, Debug_P >::fillKeyshareWithKeys ( Random random) [inline]
template<typename OsModel_P, typename Radio_P, typename Debug_P = typename OsModel_P::Debug>
void wiselib::KeyShare< OsModel_P, Radio_P, Debug_P >::fillKeyshareWithKeys ( Random random) [inline]
template<typename OsModel_P, typename Radio_P, typename Debug_P = typename OsModel_P::Debug>
void wiselib::KeyShare< OsModel_P, Radio_P, Debug_P >::fillKeyshareWithKeyValues ( Random random) [inline]
template<typename OsModel_P, typename Radio_P, typename Debug_P = typename OsModel_P::Debug>
void wiselib::KeyShare< OsModel_P, Radio_P, Debug_P >::fillKeyshareWithKeyValues ( Random random) [inline]
template<typename OsModel_P, typename Radio_P, typename Debug_P = typename OsModel_P::Debug>
void wiselib::KeyShare< OsModel_P, Radio_P, Debug_P >::fillKeyshareWithTestKeyIndexesAndLevels ( ) [inline]
template<typename OsModel_P, typename Radio_P, typename Debug_P = typename OsModel_P::Debug>
void wiselib::KeyShare< OsModel_P, Radio_P, Debug_P >::fillKeyshareWithTestKeys ( Random random) [inline]
template<typename OsModel_P, typename Radio_P, typename Debug_P = typename OsModel_P::Debug>
key* wiselib::KeyShare< OsModel_P, Radio_P, Debug_P >::get_key ( uint16_t  key_index) [inline]
template<typename OsModel_P, typename Radio_P, typename Debug_P = typename OsModel_P::Debug>
key* wiselib::KeyShare< OsModel_P, Radio_P, Debug_P >::get_key ( uint16_t  key_index) [inline]
template<typename OsModel_P, typename Radio_P, typename Debug_P = typename OsModel_P::Debug>
key* wiselib::KeyShare< OsModel_P, Radio_P, Debug_P >::get_key_info ( node_id_t  node) [inline]
template<typename OsModel_P, typename Radio_P, typename Debug_P = typename OsModel_P::Debug>
key* wiselib::KeyShare< OsModel_P, Radio_P, Debug_P >::get_key_info ( node_id_t  node) [inline]
template<typename OsModel_P, typename Radio_P, typename Debug_P = typename OsModel_P::Debug>
unsigned int wiselib::KeyShare< OsModel_P, Radio_P, Debug_P >::get_keyshare_size ( ) [inline]
template<typename OsModel_P, typename Radio_P, typename Debug_P = typename OsModel_P::Debug>
unsigned int wiselib::KeyShare< OsModel_P, Radio_P, Debug_P >::get_keyshare_size ( ) [inline]
template<typename OsModel_P, typename Radio_P, typename Debug_P = typename OsModel_P::Debug>
int wiselib::KeyShare< OsModel_P, Radio_P, Debug_P >::init ( Radio radio,
Debug debug,
Random random 
) [inline]
template<typename OsModel_P, typename Radio_P, typename Debug_P = typename OsModel_P::Debug>
int wiselib::KeyShare< OsModel_P, Radio_P, Debug_P >::init ( Radio radio,
Debug debug,
Random random 
) [inline]
template<typename OsModel_P, typename Radio_P, typename Debug_P = typename OsModel_P::Debug>
void wiselib::KeyShare< OsModel_P, Radio_P, Debug_P >::listKeyshare ( ) [inline]
template<typename OsModel_P, typename Radio_P, typename Debug_P = typename OsModel_P::Debug>
bool wiselib::KeyShare< OsModel_P, Radio_P, Debug_P >::owns_key ( uint16_t  key_index) [inline]
template<typename OsModel_P, typename Radio_P, typename Debug_P = typename OsModel_P::Debug>
bool wiselib::KeyShare< OsModel_P, Radio_P, Debug_P >::owns_key ( uint16_t  key_index) [inline]
template<typename OsModel_P, typename Radio_P, typename Debug_P = typename OsModel_P::Debug>
void wiselib::KeyShare< OsModel_P, Radio_P, Debug_P >::print_all_key_info ( key k) [inline]
template<typename OsModel_P, typename Radio_P, typename Debug_P = typename OsModel_P::Debug>
void wiselib::KeyShare< OsModel_P, Radio_P, Debug_P >::print_all_key_info ( key k) [inline]
template<typename OsModel_P, typename Radio_P, typename Debug_P = typename OsModel_P::Debug>
void wiselib::KeyShare< OsModel_P, Radio_P, Debug_P >::print_key ( uint8_t key,
int  size 
) [inline]
template<typename OsModel_P, typename Radio_P, typename Debug_P = typename OsModel_P::Debug>
void wiselib::KeyShare< OsModel_P, Radio_P, Debug_P >::print_key ( uint8_t key,
int  size 
) [inline]
template<typename OsModel_P, typename Radio_P, typename Debug_P = typename OsModel_P::Debug>
void wiselib::KeyShare< OsModel_P, Radio_P, Debug_P >::print_key_value ( uint8_t value,
uint8_t  size 
) [inline]
template<typename OsModel_P, typename Radio_P, typename Debug_P = typename OsModel_P::Debug>
void wiselib::KeyShare< OsModel_P, Radio_P, Debug_P >::print_key_value ( uint8_t value,
uint8_t  size 
) [inline]
template<typename OsModel_P, typename Radio_P, typename Debug_P = typename OsModel_P::Debug>
void wiselib::KeyShare< OsModel_P, Radio_P, Debug_P >::put_trusted_link ( node_id_t  node,
key  link 
) [inline]
template<typename OsModel_P, typename Radio_P, typename Debug_P = typename OsModel_P::Debug>
void wiselib::KeyShare< OsModel_P, Radio_P, Debug_P >::put_trusted_link ( node_id_t  node,
key  link 
) [inline]
template<typename OsModel_P, typename Radio_P, typename Debug_P = typename OsModel_P::Debug>
int wiselib::KeyShare< OsModel_P, Radio_P, Debug_P >::random ( ) [inline]
template<typename OsModel_P, typename Radio_P, typename Debug_P = typename OsModel_P::Debug>
trusted_links_it wiselib::KeyShare< OsModel_P, Radio_P, Debug_P >::tl_end ( ) [inline]
template<typename OsModel_P, typename Radio_P, typename Debug_P = typename OsModel_P::Debug>
trusted_links_it wiselib::KeyShare< OsModel_P, Radio_P, Debug_P >::tl_start ( ) [inline]
template<typename OsModel_P, typename Radio_P, typename Debug_P = typename OsModel_P::Debug>
bool wiselib::KeyShare< OsModel_P, Radio_P, Debug_P >::trusted_link_exists ( node_id_t  node) [inline]
template<typename OsModel_P, typename Radio_P, typename Debug_P = typename OsModel_P::Debug>
bool wiselib::KeyShare< OsModel_P, Radio_P, Debug_P >::trusted_link_exists ( node_id_t  node) [inline]
template<typename OsModel_P, typename Radio_P, typename Debug_P = typename OsModel_P::Debug>
void wiselib::KeyShare< OsModel_P, Radio_P, Debug_P >::variation_on_SDBMHash ( uint8_t data,
unsigned int  len 
) [inline]
template<typename OsModel_P, typename Radio_P, typename Debug_P = typename OsModel_P::Debug>
void wiselib::KeyShare< OsModel_P, Radio_P, Debug_P >::variation_on_SDBMHash ( uint8_t data,
unsigned int  len 
) [inline]

Member Data Documentation

template<typename OsModel_P, typename Radio_P, typename Debug_P = typename OsModel_P::Debug>
key wiselib::KeyShare< OsModel_P, Radio_P, Debug_P >::keyshare

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines