Blob: keys.h
Blob id: 8921909e299e333d607bc3e28d6957ec11d0c671
Size: 839 B
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | /* SPDX-License-Identifier: LGPL-2.1-or-later */ /* * * BlueZ - Bluetooth protocol stack for Linux * * Copyright (C) 2017 Intel Corporation. All rights reserved. * * */ #define KR_PHASE_NONE 0x00 #define KR_PHASE_ONE 0x01 #define KR_PHASE_TWO 0x02 #define KR_PHASE_INVALID 0xff bool keys_app_key_add(uint16_t net_idx, uint16_t app_idx, uint8_t *key, bool update); bool keys_net_key_add(uint16_t index, uint8_t *key, bool update); uint16_t keys_app_key_get_bound(uint16_t app_idx); uint8_t *keys_app_key_get(uint16_t app_idx, bool current); uint8_t *keys_net_key_get(uint16_t net_idx, bool current); bool keys_app_key_delete(uint16_t app_idx); bool keys_net_key_delete(uint16_t net_idx); uint8_t keys_get_kr_phase(uint16_t net_idx); bool keys_set_kr_phase(uint16_t index, uint8_t phase); void keys_cleanup_all(void); |