Lines Matching refs:keyset
276 if (cmd->keyset.length != 16) { in cp_build_command()
283 if (cmd->keyset.type == 1) { /* SCBK */ in cp_build_command()
284 memcpy(buf + len, cmd->keyset.data, 16); in cp_build_command()
285 } else if (cmd->keyset.type == 0) { /* master_key */ in cp_build_command()
286 osdp_compute_scbk(pd, cmd->keyset.data, buf + len); in cp_build_command()
288 LOG_ERR("Unknown key type (%d)", cmd->keyset.type); in cp_build_command()
816 memcpy(&c->keyset, pd->ephemeral_data, sizeof(c->keyset)); in cp_cmd_dispatcher()
830 struct osdp_cmd_keyset *keyset; in state_update() local
965 keyset = (struct osdp_cmd_keyset *)pd->ephemeral_data; in state_update()
967 memcpy(keyset->data, pd->sc.scbk, 16); in state_update()
968 keyset->type = 1; in state_update()
970 keyset->type = 0; in state_update()
971 memcpy(keyset->data, ctx->sc_master_key, 16); in state_update()
973 keyset->length = 16; in state_update()
1022 memcpy(&cmd[i]->keyset, p, sizeof(struct osdp_cmd_keyset)); in osdp_cp_send_command_keyset()
1043 memcpy(pd->sc.scbk, c->keyset.data, 16); in cp_keyset_complete()
1117 return osdp_cp_send_command_keyset(&cmd->keyset); in osdp_cp_send_command()