Searched refs:is_cmd (Results 1 – 3 of 3) sorted by relevance
/Zephyr-latest/subsys/mgmt/osdp/src/ |
D | osdp_sc.c | 156 int osdp_decrypt_data(struct osdp_pd *pd, int is_cmd, uint8_t *data, int length) in osdp_decrypt_data() argument 165 memcpy(iv, is_cmd ? pd->sc.r_mac : pd->sc.c_mac, 16); in osdp_decrypt_data() 184 int osdp_encrypt_data(struct osdp_pd *pd, int is_cmd, uint8_t *data, int length) in osdp_encrypt_data() argument 194 memcpy(iv, is_cmd ? pd->sc.r_mac : pd->sc.c_mac, 16); in osdp_encrypt_data() 204 int osdp_compute_mac(struct osdp_pd *pd, int is_cmd, in osdp_compute_mac() argument 223 memcpy(iv, is_cmd ? pd->sc.r_mac : pd->sc.c_mac, 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()
|
D | osdp_phy.c | 411 int is_cmd; in osdp_phy_decode_packet() local 474 is_cmd = is_pd_mode(pd); in osdp_phy_decode_packet() 475 osdp_compute_mac(pd, is_cmd, buf, mac_offset); in osdp_phy_decode_packet() 476 mac = is_cmd ? pd->sc.c_mac : pd->sc.r_mac; in osdp_phy_decode_packet() 498 len = osdp_decrypt_data(pd, is_cmd, data + 1, len - 1); in osdp_phy_decode_packet()
|
D | osdp_common.h | 551 int osdp_decrypt_data(struct osdp_pd *pd, int is_cmd, uint8_t *data, int len); 552 int osdp_encrypt_data(struct osdp_pd *pd, int is_cmd, uint8_t *data, int len); 553 int osdp_compute_mac(struct osdp_pd *pd, int is_cmd,
|