Lines Matching refs:sirk
172 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()
937 uint8_t *sirk; in parse_sirk() local
939 sirk = client->set_member.insts[client->cur_inst->idx].info.sirk; in parse_sirk()
953 err = sirk_decrypt(client->conn, recvd_sirk->value, sirk); in parse_sirk()
962 sirk = NULL; in parse_sirk()
966 (void)memcpy(sirk, recvd_sirk->value, sizeof(recvd_sirk->value)); in parse_sirk()
969 if (sirk != NULL) { in parse_sirk()
970 LOG_HEXDUMP_DBG(sirk, BT_CSIP_SIRK_SIZE, "SIRK"); in parse_sirk()