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]) in poly1305_simd_init() argument
95 BUILD_BUG_ON(SZ_4K < POLY1305_BLOCK_SIZE || in poly1305_simd_blocks()
96 SZ_4K % POLY1305_BLOCK_SIZE); in poly1305_simd_blocks()
99 (len < (POLY1305_BLOCK_SIZE * 18) && !state->is_base2_26) || in poly1305_simd_blocks()
149 if (!dctx->rset && len >= POLY1305_BLOCK_SIZE) { in crypto_poly1305_setdctxkey()
151 inp += POLY1305_BLOCK_SIZE; in crypto_poly1305_setdctxkey()
152 len -= POLY1305_BLOCK_SIZE; in crypto_poly1305_setdctxkey()
153 acc += POLY1305_BLOCK_SIZE; in crypto_poly1305_setdctxkey()
156 if (len >= POLY1305_BLOCK_SIZE) { in crypto_poly1305_setdctxkey()
161 acc += POLY1305_BLOCK_SIZE; in crypto_poly1305_setdctxkey()
174 bytes = min(srclen, POLY1305_BLOCK_SIZE - dctx->buflen); in poly1305_update_arch()
180 if (dctx->buflen == POLY1305_BLOCK_SIZE) { in poly1305_update_arch()
181 if (likely(!crypto_poly1305_setdctxkey(dctx, dctx->buf, POLY1305_BLOCK_SIZE))) in poly1305_update_arch()
182 poly1305_simd_blocks(&dctx->h, dctx->buf, POLY1305_BLOCK_SIZE, 1); in poly1305_update_arch()
187 if (likely(srclen >= POLY1305_BLOCK_SIZE)) { in poly1305_update_arch()
188 bytes = round_down(srclen, POLY1305_BLOCK_SIZE); in poly1305_update_arch()
208 POLY1305_BLOCK_SIZE - dctx->buflen); in poly1305_final_arch()
209 poly1305_simd_blocks(&dctx->h, dctx->buf, POLY1305_BLOCK_SIZE, 0); in poly1305_final_arch()
255 .cra_blocksize = POLY1305_BLOCK_SIZE,