Lines Matching refs:POLY1305_BLOCK_SIZE

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