Lines Matching refs:umac_ctx
126 mac->umac_ctx = NULL; in mac_setup_by_alg()
161 if ((mac->umac_ctx = umac_new(mac->key)) == NULL) in mac_init()
165 if ((mac->umac_ctx = umac128_new(mac->key)) == NULL) in mac_init()
200 umac_update(mac->umac_ctx, data, datalen); in mac_compute()
201 umac_final(mac->umac_ctx, u.m, nonce); in mac_compute()
205 umac128_update(mac->umac_ctx, data, datalen); in mac_compute()
206 umac128_final(mac->umac_ctx, u.m, nonce); in mac_compute()
241 if (mac->umac_ctx != NULL) in mac_clear()
242 umac_delete(mac->umac_ctx); in mac_clear()
244 if (mac->umac_ctx != NULL) in mac_clear()
245 umac128_delete(mac->umac_ctx); in mac_clear()
249 mac->umac_ctx = NULL; in mac_clear()