Lines Matching refs:sirk

71 	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()
289 LOG_HEXDUMP_DBG(svc_inst->sirk.value, sizeof(svc_inst->sirk.value), "SIRK"); in read_sirk()
291 sirk, sizeof(*sirk)); in read_sirk()
780 notify(svc_inst, conn, BT_UUID_CSIS_SIRK, &svc_inst->sirk, in notify_cb()
781 sizeof(svc_inst->sirk)); in notify_cb()
878 inst->sirk.type = BT_CSIP_SIRK_TYPE_PLAIN; in bt_csip_set_member_register()
887 (void)memcpy(inst->sirk.value, test_sirk, sizeof(test_sirk)); in bt_csip_set_member_register()
890 (void)memcpy(inst->sirk.value, param->sirk, sizeof(inst->sirk.value)); in bt_csip_set_member_register()
919 const uint8_t sirk[BT_CSIP_SIRK_SIZE]) in bt_csip_set_member_sirk()
926 CHECKIF(sirk == NULL) { in bt_csip_set_member_sirk()
931 memcpy(svc_inst->sirk.value, sirk, BT_CSIP_SIRK_SIZE); in bt_csip_set_member_sirk()
939 uint8_t sirk[BT_CSIP_SIRK_SIZE]) in bt_csip_set_member_get_sirk()
946 CHECKIF(sirk == NULL) { in bt_csip_set_member_get_sirk()
951 memcpy(sirk, svc_inst->sirk.value, BT_CSIP_SIRK_SIZE); in bt_csip_set_member_get_sirk()