Lines Matching refs:mac_buf

65 	uint8_t *mac_buf;  in ccm_mode_encrypt_contiguous_blocks()  local
81 mac_buf = (uint8_t *)ctx->ccm_mac_buf; in ccm_mode_encrypt_contiguous_blocks()
105 xor_block(blockp, mac_buf); in ccm_mode_encrypt_contiguous_blocks()
106 encrypt_block(ctx->ccm_keysched, mac_buf, mac_buf); in ccm_mode_encrypt_contiguous_blocks()
187 uint8_t *counterp, *mac_buf; in calculate_ccm_mac() local
190 mac_buf = (uint8_t *)ctx->ccm_mac_buf; in calculate_ccm_mac()
201 ccm_mac[i] = mac_buf[i] ^ counterp[i]; in calculate_ccm_mac()
211 uint8_t *lastp, *mac_buf, *ccm_mac_p, *macp; in ccm_encrypt_final() local
234 mac_buf = (uint8_t *)ctx->ccm_mac_buf; in ccm_encrypt_final()
246 xor_block(macp, mac_buf); in ccm_encrypt_final()
247 encrypt_block(ctx->ccm_keysched, mac_buf, mac_buf); in ccm_encrypt_final()
533 uint8_t *pt, *mac_buf, *macp, *ccm_mac_p; in ccm_decrypt_final() local
545 mac_buf = (uint8_t *)ctx->ccm_mac_buf; in ccm_decrypt_final()
562 xor_block(macp, mac_buf); in ccm_decrypt_final()
563 encrypt_block(ctx->ccm_keysched, mac_buf, mac_buf); in ccm_decrypt_final()
775 uint8_t *mac_buf, *datap, *ivp, *authp; in ccm_init() local
780 mac_buf = (uint8_t *)&(ctx->ccm_mac_buf); in ccm_init()
790 auth_data_len, mac_buf, ctx); in ccm_init()
796 xor_block(ivp, mac_buf); in ccm_init()
799 encrypt_block(ctx->ccm_keysched, mac_buf, mac_buf); in ccm_init()
821 xor_block(authp, mac_buf); in ccm_init()
822 encrypt_block(ctx->ccm_keysched, mac_buf, mac_buf); in ccm_init()
845 xor_block(datap, mac_buf); in ccm_init()
846 encrypt_block(ctx->ccm_keysched, mac_buf, mac_buf); in ccm_init()