Lines Matching refs:POLY1305_BLOCK_SIZE
77 if (!dctx->rset && srclen >= POLY1305_BLOCK_SIZE) { in crypto_poly1305_setdesckey()
79 src += POLY1305_BLOCK_SIZE; in crypto_poly1305_setdesckey()
80 srclen -= POLY1305_BLOCK_SIZE; in crypto_poly1305_setdesckey()
83 if (srclen >= POLY1305_BLOCK_SIZE) { in crypto_poly1305_setdesckey()
85 src += POLY1305_BLOCK_SIZE; in crypto_poly1305_setdesckey()
86 srclen -= POLY1305_BLOCK_SIZE; in crypto_poly1305_setdesckey()
127 while (likely(srclen >= POLY1305_BLOCK_SIZE)) { in poly1305_blocks()
156 src += POLY1305_BLOCK_SIZE; in poly1305_blocks()
157 srclen -= POLY1305_BLOCK_SIZE; in poly1305_blocks()
176 bytes = min(srclen, POLY1305_BLOCK_SIZE - dctx->buflen); in crypto_poly1305_update()
182 if (dctx->buflen == POLY1305_BLOCK_SIZE) { in crypto_poly1305_update()
184 POLY1305_BLOCK_SIZE, 1 << 24); in crypto_poly1305_update()
189 if (likely(srclen >= POLY1305_BLOCK_SIZE)) { in crypto_poly1305_update()
218 POLY1305_BLOCK_SIZE - dctx->buflen); in crypto_poly1305_final()
219 poly1305_blocks(dctx, dctx->buf, POLY1305_BLOCK_SIZE, 0); in crypto_poly1305_final()
282 .cra_blocksize = POLY1305_BLOCK_SIZE,