Lines Matching refs:POLY1305_BLOCK_SIZE
19 const u8 key[POLY1305_BLOCK_SIZE]);
84 static void poly1305_simd_init(void *ctx, const u8 key[POLY1305_BLOCK_SIZE])
95 BUILD_BUG_ON(SZ_4K < POLY1305_BLOCK_SIZE ||
96 SZ_4K % POLY1305_BLOCK_SIZE);
99 (len < (POLY1305_BLOCK_SIZE * 18) && !state->is_base2_26) ||
149 if (!dctx->rset && len >= POLY1305_BLOCK_SIZE) {
151 inp += POLY1305_BLOCK_SIZE;
152 len -= POLY1305_BLOCK_SIZE;
153 acc += POLY1305_BLOCK_SIZE;
156 if (len >= POLY1305_BLOCK_SIZE) {
161 acc += POLY1305_BLOCK_SIZE;
174 bytes = min(srclen, POLY1305_BLOCK_SIZE - dctx->buflen);
180 if (dctx->buflen == POLY1305_BLOCK_SIZE) {
181 if (likely(!crypto_poly1305_setdctxkey(dctx, dctx->buf, POLY1305_BLOCK_SIZE)))
182 poly1305_simd_blocks(&dctx->h, dctx->buf, POLY1305_BLOCK_SIZE, 1);
187 if (likely(srclen >= POLY1305_BLOCK_SIZE)) {
188 bytes = round_down(srclen, POLY1305_BLOCK_SIZE);
208 POLY1305_BLOCK_SIZE - dctx->buflen);
209 poly1305_simd_blocks(&dctx->h, dctx->buf, POLY1305_BLOCK_SIZE, 0);
255 .cra_blocksize = POLY1305_BLOCK_SIZE,