Lines Matching refs:memcpy
39 memcpy(scbk, pd->sc.pd_client_uid, 8); in osdp_compute_scbk()
53 memcpy(scbk, osdp_scbk_default, 16); in osdp_compute_session_keys()
58 memcpy(scbk, pd->sc.scbk, 16); in osdp_compute_session_keys()
87 memcpy(pd->sc.cp_cryptogram + 0, pd->sc.pd_random, 8); in osdp_compute_cp_cryptogram()
88 memcpy(pd->sc.cp_cryptogram + 8, pd->sc.cp_random, 8); in osdp_compute_cp_cryptogram()
115 memcpy(cp_crypto + 0, pd->sc.pd_random, 8); in osdp_verify_cp_cryptogram()
116 memcpy(cp_crypto + 8, pd->sc.cp_random, 8); in osdp_verify_cp_cryptogram()
128 memcpy(pd->sc.pd_cryptogram + 0, pd->sc.cp_random, 8); in osdp_compute_pd_cryptogram()
129 memcpy(pd->sc.pd_cryptogram + 8, pd->sc.pd_random, 8); in osdp_compute_pd_cryptogram()
138 memcpy(pd_crypto + 0, pd->sc.cp_random, 8); in osdp_verify_pd_cryptogram()
139 memcpy(pd_crypto + 8, pd->sc.pd_random, 8); in osdp_verify_pd_cryptogram()
151 memcpy(pd->sc.r_mac, pd->sc.cp_cryptogram, 16); in osdp_compute_rmac_i()
165 memcpy(iv, is_cmd ? pd->sc.r_mac : pd->sc.c_mac, 16); in osdp_decrypt_data()
194 memcpy(iv, is_cmd ? pd->sc.r_mac : pd->sc.c_mac, 16); in osdp_encrypt_data()
211 memcpy(buf, data, len); in osdp_compute_mac()
223 memcpy(iv, is_cmd ? pd->sc.r_mac : pd->sc.c_mac, 16); in osdp_compute_mac()
228 memcpy(iv, buf + pad_len - 32, 16); in osdp_compute_mac()
233 memcpy(is_cmd ? pd->sc.c_mac : pd->sc.r_mac, buf + pad_len - 16, 16); in osdp_compute_mac()
244 memcpy(scbk, pd->sc.scbk, 16); in osdp_sc_setup()
248 memcpy(pd->sc.scbk, scbk, 16); in osdp_sc_setup()