Blob: keys.h

Blob id: f44d332952693d0cd5d584a49b49d538a9cc4b73

Size: 641 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
/* SPDX-License-Identifier: LGPL-2.1-or-later */
/*
 *
 *  BlueZ - Bluetooth protocol stack for Linux
 *
 *  Copyright (C) 2011-2014  Intel Corporation
 *  Copyright (C) 2002-2010  Marcel Holtmann <marcel@holtmann.org>
 *
 *
 */

#include <stdint.h>
#include <stdbool.h>

void keys_setup(void);
void keys_cleanup(void);

void keys_update_identity_key(const uint8_t key[16]);
void keys_update_identity_addr(const uint8_t addr[6], uint8_t addr_type);

bool keys_resolve_identity(const uint8_t addr[6], uint8_t ident[6],
							uint8_t *ident_type);
bool keys_add_identity(const uint8_t addr[6], uint8_t addr_type,
					const uint8_t key[16]);