Home
last modified time | relevance | path

Searched refs:mac (Results 1 – 5 of 5) sorted by relevance

/lib/crypto/
Dchacha20poly1305.c134 u8 mac[POLY1305_DIGEST_SIZE]; in __chacha20poly1305_decrypt() member
157 poly1305_final(&poly1305_state, b.mac); in __chacha20poly1305_decrypt()
159 ret = crypto_memneq(b.mac, src + dst_len, POLY1305_DIGEST_SIZE); in __chacha20poly1305_decrypt()
231 u8 mac[2][POLY1305_DIGEST_SIZE]; in chacha20poly1305_crypt_sg_inplace() member
310 poly1305_final(&poly1305_state, b.mac[0]); in chacha20poly1305_crypt_sg_inplace()
311 ret = !crypto_memneq(b.mac[0], in chacha20poly1305_crypt_sg_inplace()
320 poly1305_final(&poly1305_state, b.mac[1]); in chacha20poly1305_crypt_sg_inplace()
321 scatterwalk_map_and_copy(b.mac[encrypt], src, src_len, in chacha20poly1305_crypt_sg_inplace()
322 sizeof(b.mac[1]), encrypt); in chacha20poly1305_crypt_sg_inplace()
324 !crypto_memneq(b.mac[0], b.mac[1], POLY1305_DIGEST_SIZE); in chacha20poly1305_crypt_sg_inplace()
Dpoly1305-donna32.c123 u8 *mac = dst; in poly1305_core_emit() local
200 put_unaligned_le32(h0, &mac[0]); in poly1305_core_emit()
201 put_unaligned_le32(h1, &mac[4]); in poly1305_core_emit()
202 put_unaligned_le32(h2, &mac[8]); in poly1305_core_emit()
203 put_unaligned_le32(h3, &mac[12]); in poly1305_core_emit()
Dpoly1305-donna64.c114 u8 *mac = dst; in poly1305_core_emit() local
181 put_unaligned_le64(h0, &mac[0]); in poly1305_core_emit()
182 put_unaligned_le64(h1, &mac[8]); in poly1305_core_emit()
/lib/
Dnet_utils.c8 bool mac_pton(const char *s, u8 *mac) in mac_pton() argument
25 mac[i] = (hex_to_bin(s[i * 3]) << 4) | hex_to_bin(s[i * 3 + 1]); in mac_pton()
Dtest_printf.c413 mac(void) in mac() function
769 mac(); in test_pointer()