Searched refs:sk_mac (Results 1 – 1 of 1) sorted by relevance
/dports/security/opensc/OpenSC-0.22.0/src/libopensc/ |
H A D | card-epass2003.c | 99 unsigned char sk_mac[16]; /* mac session key */ member 461 aes128_encrypt_ecb(key_mac, 16, data, 16, exdata->sk_mac); in gen_init_key() 465 des3_encrypt_ecb(key_mac, 16, data, 16, exdata->sk_mac); in gen_init_key() 531 aes128_encrypt_cbc(exdata->sk_mac, 16, iv, data, 16, mac); in verify_init_key() 534 des3_encrypt_cbc(exdata->sk_mac, 16, iv, data, 16, mac); in verify_init_key() 739 aes128_encrypt_cbc(exdata->sk_mac, 16, icv, apdu_buf, mac_len, mac); in construct_mac_tlv() 745 des_encrypt_cbc(exdata->sk_mac, 8, icv, apdu_buf, mac_len, mac); in construct_mac_tlv() 746 des_decrypt_cbc(&exdata->sk_mac[8], 8, iv, &mac[mac_len - 8], 8, tmp); in construct_mac_tlv() 748 des_encrypt_cbc(exdata->sk_mac, 8, iv, tmp, 8, mac_tlv + 2); in construct_mac_tlv()
|