mesh_keys.h (0500a9341cc00505ae41d1953d7733a8a3a37ad1) mesh_keys.h (d58a1b5f11ada8ddf896c41fff5a35e7f140c37e)
1/*
2 * Copyright (C) 2018 BlueKitchen GmbH
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
6 * are met:
7 *
8 * 1. Redistributions of source code must retain the above copyright

--- 136 unchanged lines hidden (view full) ---

145 * @param network_key
146 * @note derivative data k1-k3 need to be already calculated
147 */
148void mesh_network_key_add(mesh_network_key_t * network_key);
149
150/**
151 * @brief Remove network key from list
152 * @param network_key
1/*
2 * Copyright (C) 2018 BlueKitchen GmbH
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
6 * are met:
7 *
8 * 1. Redistributions of source code must retain the above copyright

--- 136 unchanged lines hidden (view full) ---

145 * @param network_key
146 * @note derivative data k1-k3 need to be already calculated
147 */
148void mesh_network_key_add(mesh_network_key_t * network_key);
149
150/**
151 * @brief Remove network key from list
152 * @param network_key
153 * @return 0 if removed
153 * @return true if removed
154 * @note key is only removed from list, memory is not released
155 */
154 * @note key is only removed from list, memory is not released
155 */
156int mesh_network_key_remove(mesh_network_key_t * network_key);
156bool mesh_network_key_remove(mesh_network_key_t * network_key);
157
158/**
159 * @brief Get network_key for netkey_index
160 * @param netkey_index
161 * @returns mesh_network_key_t or NULL
162 */
163mesh_network_key_t * mesh_network_key_list_get(uint16_t netkey_index);
164

--- 69 unchanged lines hidden (view full) ---

234void mesh_transport_key_add(mesh_transport_key_t * transport_key);
235
236/**
237 * @brief Remove application key from list
238 * @param application key
239 * @return 0 if removed
240 * @note key is only removed from list, memory is not released
241 */
157
158/**
159 * @brief Get network_key for netkey_index
160 * @param netkey_index
161 * @returns mesh_network_key_t or NULL
162 */
163mesh_network_key_t * mesh_network_key_list_get(uint16_t netkey_index);
164

--- 69 unchanged lines hidden (view full) ---

234void mesh_transport_key_add(mesh_transport_key_t * transport_key);
235
236/**
237 * @brief Remove application key from list
238 * @param application key
239 * @return 0 if removed
240 * @note key is only removed from list, memory is not released
241 */
242int mesh_transport_key_remove(mesh_transport_key_t * transport_key);
242bool mesh_transport_key_remove(mesh_transport_key_t * transport_key);
243
244/**
245 * Get transport key for appkey_index
246 * @param appkey_index
247 * @return
248 */
249mesh_transport_key_t * mesh_transport_key_get(uint16_t appkey_index);
250

--- 50 unchanged lines hidden ---
243
244/**
245 * Get transport key for appkey_index
246 * @param appkey_index
247 * @return
248 */
249mesh_transport_key_t * mesh_transport_key_get(uint16_t appkey_index);
250

--- 50 unchanged lines hidden ---