Lines Matching refs:buflen
24 desc->buflen = 0; in poly1305_init_generic()
35 if (unlikely(desc->buflen)) { in poly1305_update_generic()
36 bytes = min(nbytes, POLY1305_BLOCK_SIZE - desc->buflen); in poly1305_update_generic()
37 memcpy(desc->buf + desc->buflen, src, bytes); in poly1305_update_generic()
40 desc->buflen += bytes; in poly1305_update_generic()
42 if (desc->buflen == POLY1305_BLOCK_SIZE) { in poly1305_update_generic()
45 desc->buflen = 0; in poly1305_update_generic()
57 desc->buflen = nbytes; in poly1305_update_generic()
65 if (unlikely(desc->buflen)) { in poly1305_final_generic()
66 desc->buf[desc->buflen++] = 1; in poly1305_final_generic()
67 memset(desc->buf + desc->buflen, 0, in poly1305_final_generic()
68 POLY1305_BLOCK_SIZE - desc->buflen); in poly1305_final_generic()