Lines Matching refs:POLY1305_BLOCK_SIZE
87 if (!dctx->rset && srclen >= POLY1305_BLOCK_SIZE) { in crypto_poly1305_setdesckey()
89 src += POLY1305_BLOCK_SIZE; in crypto_poly1305_setdesckey()
90 srclen -= POLY1305_BLOCK_SIZE; in crypto_poly1305_setdesckey()
93 if (srclen >= POLY1305_BLOCK_SIZE) { in crypto_poly1305_setdesckey()
95 src += POLY1305_BLOCK_SIZE; in crypto_poly1305_setdesckey()
96 srclen -= POLY1305_BLOCK_SIZE; in crypto_poly1305_setdesckey()
137 while (likely(srclen >= POLY1305_BLOCK_SIZE)) { in poly1305_blocks()
166 src += POLY1305_BLOCK_SIZE; in poly1305_blocks()
167 srclen -= POLY1305_BLOCK_SIZE; in poly1305_blocks()
186 bytes = min(srclen, POLY1305_BLOCK_SIZE - dctx->buflen); in crypto_poly1305_update()
192 if (dctx->buflen == POLY1305_BLOCK_SIZE) { in crypto_poly1305_update()
194 POLY1305_BLOCK_SIZE, 1 << 24); in crypto_poly1305_update()
199 if (likely(srclen >= POLY1305_BLOCK_SIZE)) { in crypto_poly1305_update()
229 POLY1305_BLOCK_SIZE - dctx->buflen); in crypto_poly1305_final()
230 poly1305_blocks(dctx, dctx->buf, POLY1305_BLOCK_SIZE, 0); in crypto_poly1305_final()
296 .cra_blocksize = POLY1305_BLOCK_SIZE,