Lines Matching refs:POLY1305_BLOCK_SIZE
55 if (!dctx->rset && len >= POLY1305_BLOCK_SIZE) {
60 inp += POLY1305_BLOCK_SIZE;
61 len -= POLY1305_BLOCK_SIZE;
62 acc += POLY1305_BLOCK_SIZE;
65 if (len >= POLY1305_BLOCK_SIZE) {
70 acc += POLY1305_BLOCK_SIZE;
84 bytes = min(srclen, POLY1305_BLOCK_SIZE - dctx->buflen);
90 if (dctx->buflen == POLY1305_BLOCK_SIZE) {
92 POLY1305_BLOCK_SIZE))) {
95 POLY1305_BLOCK_SIZE, 1);
102 if (likely(srclen >= POLY1305_BLOCK_SIZE)) {
103 bytes = round_down(srclen, POLY1305_BLOCK_SIZE);
109 if (crypto_simd_usable() && (srclen >= POLY1305_BLOCK_SIZE*4)) {
113 src += srclen - (srclen % (POLY1305_BLOCK_SIZE * 4));
114 srclen %= POLY1305_BLOCK_SIZE * 4;
116 while (srclen >= POLY1305_BLOCK_SIZE) {
118 poly1305_64s(&dctx->h, src, POLY1305_BLOCK_SIZE, 1);
120 srclen -= POLY1305_BLOCK_SIZE;
121 src += POLY1305_BLOCK_SIZE;
143 POLY1305_BLOCK_SIZE - dctx->buflen);
145 poly1305_64s(&dctx->h, dctx->buf, POLY1305_BLOCK_SIZE, 0);
164 .cra_blocksize = POLY1305_BLOCK_SIZE,