Lines Matching refs:POLY1305_BLOCK_SIZE
48 src += POLY1305_BLOCK_SIZE; in mips_poly1305_blocks()
49 len -= POLY1305_BLOCK_SIZE; in mips_poly1305_blocks()
52 if (len >= POLY1305_BLOCK_SIZE) { in mips_poly1305_blocks()
57 src += POLY1305_BLOCK_SIZE; in mips_poly1305_blocks()
58 len -= POLY1305_BLOCK_SIZE; in mips_poly1305_blocks()
61 if (len < POLY1305_BLOCK_SIZE) in mips_poly1305_blocks()
65 len &= ~(POLY1305_BLOCK_SIZE - 1); in mips_poly1305_blocks()
76 u32 bytes = min(len, POLY1305_BLOCK_SIZE - dctx->buflen); in mips_poly1305_update()
83 if (dctx->buflen == POLY1305_BLOCK_SIZE) { in mips_poly1305_update()
84 mips_poly1305_blocks(dctx, dctx->buf, POLY1305_BLOCK_SIZE, 1); in mips_poly1305_update()
89 if (likely(len >= POLY1305_BLOCK_SIZE)) { in mips_poly1305_update()
91 src += round_down(len, POLY1305_BLOCK_SIZE); in mips_poly1305_update()
92 len %= POLY1305_BLOCK_SIZE; in mips_poly1305_update()
106 u32 bytes = min(nbytes, POLY1305_BLOCK_SIZE - dctx->buflen); in poly1305_update_arch()
113 if (dctx->buflen == POLY1305_BLOCK_SIZE) { in poly1305_update_arch()
115 POLY1305_BLOCK_SIZE, 1); in poly1305_update_arch()
120 if (likely(nbytes >= POLY1305_BLOCK_SIZE)) { in poly1305_update_arch()
121 unsigned int len = round_down(nbytes, POLY1305_BLOCK_SIZE); in poly1305_update_arch()
125 nbytes %= POLY1305_BLOCK_SIZE; in poly1305_update_arch()
140 POLY1305_BLOCK_SIZE - dctx->buflen); in poly1305_final_arch()
141 poly1305_blocks_mips(&dctx->h, dctx->buf, POLY1305_BLOCK_SIZE, 0); in poly1305_final_arch()
170 .base.cra_blocksize = POLY1305_BLOCK_SIZE,