Lines Matching refs:buflen
27 dctx->buflen = 0; in poly1305_init_arch()
35 dctx->buflen = 0; in mips_poly1305_init()
75 if (unlikely(dctx->buflen)) { in mips_poly1305_update()
76 u32 bytes = min(len, POLY1305_BLOCK_SIZE - dctx->buflen); in mips_poly1305_update()
78 memcpy(dctx->buf + dctx->buflen, src, bytes); in mips_poly1305_update()
81 dctx->buflen += bytes; in mips_poly1305_update()
83 if (dctx->buflen == POLY1305_BLOCK_SIZE) { in mips_poly1305_update()
85 dctx->buflen = 0; in mips_poly1305_update()
96 dctx->buflen = len; in mips_poly1305_update()
105 if (unlikely(dctx->buflen)) { in poly1305_update_arch()
106 u32 bytes = min(nbytes, POLY1305_BLOCK_SIZE - dctx->buflen); in poly1305_update_arch()
108 memcpy(dctx->buf + dctx->buflen, src, bytes); in poly1305_update_arch()
111 dctx->buflen += bytes; in poly1305_update_arch()
113 if (dctx->buflen == POLY1305_BLOCK_SIZE) { in poly1305_update_arch()
116 dctx->buflen = 0; in poly1305_update_arch()
129 dctx->buflen = nbytes; in poly1305_update_arch()
137 if (unlikely(dctx->buflen)) { in poly1305_final_arch()
138 dctx->buf[dctx->buflen++] = 1; in poly1305_final_arch()
139 memset(dctx->buf + dctx->buflen, 0, in poly1305_final_arch()
140 POLY1305_BLOCK_SIZE - dctx->buflen); in poly1305_final_arch()