Lines Matching refs:POLY1305_BLOCK_SIZE
38 if (!dctx->rset && srclen >= POLY1305_BLOCK_SIZE) { in crypto_poly1305_setdesckey()
40 src += POLY1305_BLOCK_SIZE; in crypto_poly1305_setdesckey()
41 srclen -= POLY1305_BLOCK_SIZE; in crypto_poly1305_setdesckey()
44 if (srclen >= POLY1305_BLOCK_SIZE) { in crypto_poly1305_setdesckey()
49 src += POLY1305_BLOCK_SIZE; in crypto_poly1305_setdesckey()
50 srclen -= POLY1305_BLOCK_SIZE; in crypto_poly1305_setdesckey()
69 srclen / POLY1305_BLOCK_SIZE, 1); in poly1305_blocks()
79 bytes = min(srclen, POLY1305_BLOCK_SIZE - dctx->buflen); in crypto_poly1305_update()
85 if (dctx->buflen == POLY1305_BLOCK_SIZE) { in crypto_poly1305_update()
87 POLY1305_BLOCK_SIZE); in crypto_poly1305_update()
92 if (likely(srclen >= POLY1305_BLOCK_SIZE)) { in crypto_poly1305_update()
94 src += srclen - (srclen % POLY1305_BLOCK_SIZE); in crypto_poly1305_update()
95 srclen %= POLY1305_BLOCK_SIZE; in crypto_poly1305_update()
127 .cra_blocksize = POLY1305_BLOCK_SIZE,