Lines Matching refs:POLY1305_DIGEST_SIZE
134 u8 mac[POLY1305_DIGEST_SIZE]; in __chacha20poly1305_decrypt()
138 if (unlikely(src_len < POLY1305_DIGEST_SIZE)) in __chacha20poly1305_decrypt()
148 dst_len = src_len - POLY1305_DIGEST_SIZE; 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()
304 if (likely(sl <= -POLY1305_DIGEST_SIZE)) { in chacha20poly1305_crypt_sg_inplace()
313 POLY1305_DIGEST_SIZE); in chacha20poly1305_crypt_sg_inplace()
319 if (unlikely(sl > -POLY1305_DIGEST_SIZE)) { in chacha20poly1305_crypt_sg_inplace()
324 !crypto_memneq(b.mac[0], b.mac[1], POLY1305_DIGEST_SIZE); in chacha20poly1305_crypt_sg_inplace()
348 if (unlikely(src_len < POLY1305_DIGEST_SIZE)) in chacha20poly1305_decrypt_sg_inplace()
352 src_len - POLY1305_DIGEST_SIZE, in chacha20poly1305_decrypt_sg_inplace()