Lines Matching refs:s_enc
62 memset(pd->sc.s_enc, 0, 16); in osdp_compute_session_keys()
66 pd->sc.s_enc[0] = 0x01; in osdp_compute_session_keys()
67 pd->sc.s_enc[1] = 0x82; in osdp_compute_session_keys()
74 pd->sc.s_enc[i] = pd->sc.cp_random[i - 2]; in osdp_compute_session_keys()
79 osdp_encrypt(scbk, NULL, pd->sc.s_enc, 16); in osdp_compute_session_keys()
89 osdp_encrypt(pd->sc.s_enc, NULL, pd->sc.cp_cryptogram, 16); in osdp_compute_cp_cryptogram()
117 osdp_encrypt(pd->sc.s_enc, NULL, cp_crypto, 16); in osdp_verify_cp_cryptogram()
130 osdp_encrypt(pd->sc.s_enc, NULL, pd->sc.pd_cryptogram, 16); in osdp_compute_pd_cryptogram()
140 osdp_encrypt(pd->sc.s_enc, NULL, pd_crypto, 16); in osdp_verify_pd_cryptogram()
170 osdp_decrypt(pd->sc.s_enc, iv, data, length); in osdp_decrypt_data()
199 osdp_encrypt(pd->sc.s_enc, iv, data, pad_len); in osdp_encrypt_data()