Lines Matching refs:scbk
35 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()
81 osdp_encrypt(scbk, NULL, pd->sc.s_mac2, 16); in osdp_compute_session_keys()
240 uint8_t scbk[16]; in osdp_sc_setup() local
244 memcpy(scbk, pd->sc.scbk, 16); in osdp_sc_setup()
248 memcpy(pd->sc.scbk, scbk, 16); in osdp_sc_setup()
250 osdp_memzero(scbk, sizeof(scbk)); in osdp_sc_setup()