Home
last modified time | relevance | path

Searched refs:scbk (Results 1 – 4 of 4) sorted by relevance

/Zephyr-latest/subsys/mgmt/osdp/src/
Dosdp_sc.c35 void osdp_compute_scbk(struct osdp_pd *pd, uint8_t *master_key, uint8_t *scbk) in osdp_compute_scbk() argument
39 memcpy(scbk, pd->sc.pd_client_uid, 8); in osdp_compute_scbk()
41 scbk[i] = ~scbk[i - 8]; in osdp_compute_scbk()
43 osdp_encrypt(master_key, NULL, scbk, 16); in osdp_compute_scbk()
50 uint8_t scbk[16]; in osdp_compute_session_keys() local
53 memcpy(scbk, osdp_scbk_default, 16); in osdp_compute_session_keys()
56 osdp_compute_scbk(pd, ctx->sc_master_key, scbk); in osdp_compute_session_keys()
58 memcpy(scbk, pd->sc.scbk, 16); in osdp_compute_session_keys()
79 osdp_encrypt(scbk, NULL, pd->sc.s_enc, 16); in osdp_compute_session_keys()
80 osdp_encrypt(scbk, NULL, pd->sc.s_mac1, 16); in osdp_compute_session_keys()
[all …]
Dosdp_common.h430 uint8_t scbk[16]; member
544 void osdp_compute_scbk(struct osdp_pd *pd, uint8_t *master_key, uint8_t *scbk);
Dosdp_pd.c497 memcpy(pd->sc.scbk, cmd.keyset.data, 16); in pd_decode_command()
1041 memcpy(pd->sc.scbk, key, 16); in osdp_setup()
Dosdp_cp.c967 memcpy(keyset->data, pd->sc.scbk, 16); in state_update()
1043 memcpy(pd->sc.scbk, c->keyset.data, 16); in cp_keyset_complete()