File: keys.h

package info (click to toggle)
bluez 5.82-1.1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 25,344 kB
  • sloc: ansic: 468,658; python: 4,751; sh: 4,580; makefile: 1,043; xml: 126
file content (26 lines) | stat: -rw-r--r-- 839 bytes parent folder | download | duplicates (3)
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);