Home
last modified time | relevance | path

Searched refs:sirk (Results 1 – 20 of 20) sorted by relevance

/Zephyr-latest/subsys/bluetooth/audio/shell/
Dcsip_set_member.c84 .sirk = { 0xcd, 0xcc, 0x72, 0xdd, 0x86, 0x8c, 0xcd, 0xce, in cmd_csip_set_member_register()
151 len = hex2bin(argv[argn], strlen(argv[argn]), param.sirk, in cmd_csip_set_member_register()
152 sizeof(param.sirk)); in cmd_csip_set_member_register()
174 uint8_t sirk[BT_CSIP_SIRK_SIZE]; in cmd_csip_set_member_sirk() local
184 len = hex2bin(argv[1], strlen(argv[1]), sirk, sizeof(sirk)); in cmd_csip_set_member_sirk()
185 if (len != sizeof(sirk)) { in cmd_csip_set_member_sirk()
191 err = bt_csip_set_member_sirk(svc_inst, sirk); in cmd_csip_set_member_sirk()
204 uint8_t sirk[BT_CSIP_SIRK_SIZE]; in cmd_csip_set_member_get_sirk() local
213 err = bt_csip_set_member_get_sirk(svc_inst, sirk); in cmd_csip_set_member_get_sirk()
220 shell_hexdump(sh, sirk, sizeof(sirk)); in cmd_csip_set_member_get_sirk()
[all …]
Dcap_acceptor.c98 .sirk = { 0xcd, 0xcc, 0x72, 0xdd, 0x86, 0x8c, 0xcd, 0xce, in cmd_cap_acceptor_init()
167 len = hex2bin(argv[argn], strlen(argv[argn]), param.sirk, in cmd_cap_acceptor_init()
168 sizeof(param.sirk)); in cmd_cap_acceptor_init()
239 uint8_t sirk[BT_CSIP_SIRK_SIZE]; in cmd_cap_acceptor_sirk() local
249 len = hex2bin(argv[1], strlen(argv[1]), sirk, sizeof(sirk)); in cmd_cap_acceptor_sirk()
250 if (len != sizeof(sirk)) { in cmd_cap_acceptor_sirk()
256 err = bt_csip_set_member_sirk(cap_csip_svc_inst, sirk); in cmd_cap_acceptor_sirk()
269 uint8_t sirk[BT_CSIP_SIRK_SIZE]; in cmd_cap_acceptor_get_sirk() local
278 err = bt_csip_set_member_get_sirk(cap_csip_svc_inst, sirk); in cmd_cap_acceptor_get_sirk()
285 shell_hexdump(sh, sirk, sizeof(sirk)); in cmd_cap_acceptor_get_sirk()
[all …]
Dcsip_set_coordinator.c195 if (bt_csip_set_coordinator_is_set_member(cur_inst->info.sirk, data)) { in csip_found()
339 if (memcmp(inst->info.sirk, cur_inst->info.sirk, BT_CSIP_SIRK_SIZE) == 0) { in cmd_csip_set_coordinator_discover_members()
/Zephyr-latest/subsys/bluetooth/audio/
Dcsip_set_member.c71 struct bt_csip_sirk sirk; member
144 static int sirk_encrypt(struct bt_conn *conn, const struct bt_csip_sirk *sirk, in sirk_encrypt() argument
173 err = bt_csip_sef(k, sirk->value, enc_sirk->value); in sirk_encrypt()
230 res = bt_csip_sih(svc_inst->sirk.value, prand, hash); in bt_csip_set_member_generate_rsi()
246 struct bt_csip_sirk *sirk; in read_sirk() local
257 sirk = &svc_inst->sirk; in read_sirk()
262 err = sirk_encrypt(conn, &svc_inst->sirk, &enc_sirk); in read_sirk()
268 sirk = &enc_sirk; in read_sirk()
285 sirk = &svc_inst->sirk; in read_sirk()
288 LOG_DBG("SIRK %sencrypted", sirk->type == BT_CSIP_SIRK_TYPE_PLAIN ? "not " : ""); in read_sirk()
[all …]
Dcsip_crypto.c36 int bt_csip_sih(const uint8_t sirk[BT_CSIP_SIRK_SIZE], uint8_t r[BT_CSIP_CRYPTO_PRAND_SIZE], in bt_csip_sih()
47 LOG_DBG("SIRK %s", bt_hex(sirk, BT_CSIP_SIRK_SIZE)); in bt_csip_sih()
56 err = bt_encrypt_le(sirk, res, res); in bt_csip_sih()
158 int bt_csip_sef(const uint8_t k[BT_CSIP_CRYPTO_KEY_SIZE], const uint8_t sirk[BT_CSIP_SIRK_SIZE], in bt_csip_sef()
172 LOG_DBG("SIRK %s", bt_hex(sirk, BT_CSIP_SIRK_SIZE)); in bt_csip_sef()
203 mem_xor_128(out_sirk, k1_out, sirk); in bt_csip_sef()
Dcsip_crypto.h30 int bt_csip_sih(const uint8_t sirk[BT_CSIP_SIRK_SIZE], uint8_t r[BT_CSIP_CRYPTO_PRAND_SIZE],
56 int bt_csip_sef(const uint8_t k[BT_CSIP_CRYPTO_KEY_SIZE], const uint8_t sirk[BT_CSIP_SIRK_SIZE],
Dcsip_set_coordinator.c172 memcmp(member_set_info->sirk, set_info->sirk, sizeof(set_info->sirk)) == 0) { in lookup_instance_by_set_info()
406 struct bt_csip_sirk *sirk = (struct bt_csip_sirk *)data; in sirk_notify_func() local
413 dst_sirk = inst->info.sirk; in sirk_notify_func()
416 sirk->type == BT_CSIP_SIRK_TYPE_PLAIN ? "not " : ""); in sirk_notify_func()
419 if (sirk->type == BT_CSIP_SIRK_TYPE_ENCRYPTED) { in sirk_notify_func()
423 LOG_HEXDUMP_DBG(sirk->value, sizeof(*sirk), in sirk_notify_func()
425 err = sirk_decrypt(conn, sirk->value, in sirk_notify_func()
437 (void)memcpy(dst_sirk, sirk->value, sizeof(sirk->value)); in sirk_notify_func()
839 bool bt_csip_set_coordinator_is_set_member(const uint8_t sirk[BT_CSIP_SIRK_SIZE], in bt_csip_set_coordinator_is_set_member()
854 err = bt_csip_sih(sirk, prand, calculated_hash); in bt_csip_set_coordinator_is_set_member()
[all …]
/Zephyr-latest/include/zephyr/bluetooth/audio/
Dcsip.h147 uint8_t sirk[BT_CSIP_SIRK_SIZE]; member
229 const uint8_t sirk[BT_CSIP_SIRK_SIZE]);
238 uint8_t sirk[BT_CSIP_SIRK_SIZE]);
275 uint8_t sirk[BT_CSIP_SIRK_SIZE]; member
435 bool bt_csip_set_coordinator_is_set_member(const uint8_t sirk[BT_CSIP_SIRK_SIZE],
/Zephyr-latest/tests/bluetooth/tester/src/audio/
Dbtp_csip.c55 static void btp_send_csip_sirk_ev(struct bt_conn *conn, uint8_t *sirk, size_t sirk_size) in btp_send_csip_sirk_ev() argument
61 memcpy(ev.sirk, sirk, sirk_size); in btp_send_csip_sirk_ev()
95 uint8_t sirk[BT_CSIP_SIRK_SIZE]; in csip_discover_cb() local
96 size_t sirk_size = ARRAY_SIZE(sirk); in csip_discover_cb()
115 memcpy(sirk, cur_csis_inst->info.sirk, sizeof(cur_csis_inst->info.sirk)); in csip_discover_cb()
117 btp_send_csip_sirk_ev(conn, sirk, sirk_size); in csip_discover_cb()
Dbtp_cas.c89 .sirk = { 0xB8, 0x03, 0xEA, 0xC6, 0xAF, 0xBB, 0x65, 0xA2, in tester_init_cas()
Dbtp_csis.c125 .sirk = { 0xB8, 0x03, 0xEA, 0xC6, 0xAF, 0xBB, 0x65, 0xA2, in tester_init_csis()
/Zephyr-latest/tests/bsim/bluetooth/audio/src/
Dcsip_set_member_test.c31 .sirk = { 0xcd, 0xcc, 0x72, 0xdd, 0x86, 0x8c, 0xcd, 0xce,
236 len = hex2bin(argv[argn], strlen(argv[argn]), param.sirk, in test_args()
237 sizeof(param.sirk)); in test_args()
Dgmap_ugt_test.c387 .sirk = { 0xcd, 0xcc, 0x72, 0xdd, 0x86, 0x8c, 0xcd, 0xce, in test_main()
Dcsip_set_coordinator_test.c188 if (bt_csip_set_coordinator_is_set_member(primary_inst->info.sirk, data)) { in csip_found()
Dcap_acceptor_test.c693 .sirk = { 0xcd, 0xcc, 0x72, 0xdd, 0x86, 0x8c, 0xcd, 0xce, in init()
/Zephyr-latest/samples/bluetooth/hap_ha/src/
Dcsip_set_member.c44 .sirk = CSIP_SIRK_DEBUG, in csip_set_member_init()
/Zephyr-latest/tests/bluetooth/tester/src/audio/btp/
Dbtp_csip.h52 uint8_t sirk[BT_CSIP_SIRK_SIZE]; member
/Zephyr-latest/doc/connectivity/bluetooth/shell/audio/
Dcsip.rst149 [rank <int>] [not-lockable] [sirk <data>]
152 sirk :Set the currently used SIRK <sirk>
179 uart:~$ csip_set_member sirk 00112233445566778899aabbccddeeff
Dcap.rst27 [rank <int>] [not-lockable] [sirk <data>]
30 sirk :Set the currently used SIRK <sirk>
48 uart:~$ cap_acceptor sirk 00112233445566778899aabbccddeeff
/Zephyr-latest/doc/releases/
Dmigration-guide-3.7.rst760 * All occurrences of ``set_sirk`` have been changed to just ``sirk`` as the ``s`` in ``sirk`` stands