Lines Matching full:mac
165 * \brief Compute the Poly1305 MAC
168 * \param mac The buffer to where the MAC is written. Must be
169 * big enough to contain the 16-byte MAC.
172 unsigned char mac[16]) in poly1305_compute_mac()
221 /* Compute MAC (128 least significant bits of the accumulator) */ in poly1305_compute_mac()
222 MBEDTLS_PUT_UINT32_LE(acc0, mac, 0); in poly1305_compute_mac()
223 MBEDTLS_PUT_UINT32_LE(acc1, mac, 4); in poly1305_compute_mac()
224 MBEDTLS_PUT_UINT32_LE(acc2, mac, 8); in poly1305_compute_mac()
225 MBEDTLS_PUT_UINT32_LE(acc3, mac, 12); in poly1305_compute_mac()
327 unsigned char mac[16]) in mbedtls_poly1305_finish()
344 poly1305_compute_mac(ctx, mac); in mbedtls_poly1305_finish()
352 unsigned char mac[16]) in mbedtls_poly1305_mac()
369 ret = mbedtls_poly1305_finish(&ctx, mac); in mbedtls_poly1305_mac()
461 unsigned char mac[16]; in mbedtls_poly1305_self_test() local
473 mac); in mbedtls_poly1305_self_test()
476 ASSERT(0 == memcmp(mac, test_mac[i], 16U), ("failed (mac)\n")); in mbedtls_poly1305_self_test()