Lines Matching refs:bufpos
44 unsigned bufpos = ctx->total64 & 63; in common64_end() local
46 ctx->wbuffer[bufpos++] = 0x80; in common64_end()
50 unsigned remaining = 64 - bufpos; in common64_end()
51 memset(ctx->wbuffer + bufpos, 0, remaining); in common64_end()
64 bufpos = 0; in common64_end()
423 unsigned bufpos = ctx->total64 & 63; in md5_hash() local
428 unsigned remaining = 64 - bufpos; in md5_hash()
432 memcpy(ctx->wbuffer + bufpos, buffer, remaining); in md5_hash()
435 bufpos += remaining; in md5_hash()
438 bufpos -= 64; in md5_hash()
439 if (bufpos != 0) in md5_hash()
819 unsigned bufpos = ctx->total64[0] & 127; in sha512_hash() local
830 remaining = 128 - bufpos; in sha512_hash()
834 memcpy(ctx->wbuffer + bufpos, buffer, remaining); in sha512_hash()
837 bufpos += remaining; in sha512_hash()
840 bufpos -= 128; in sha512_hash()
841 if (bufpos != 0) in sha512_hash()
874 unsigned bufpos = ctx->total64[0] & 127; in sha512_end() local
877 ctx->wbuffer[bufpos++] = 0x80; in sha512_end()
880 unsigned remaining = 128 - bufpos; in sha512_end()
881 memset(ctx->wbuffer + bufpos, 0, remaining); in sha512_end()
895 bufpos = 0; in sha512_end()
1366 unsigned bufpos = ctx->bytes_queued; in sha3_hash() local
1369 unsigned remaining = ctx->input_block_bytes - bufpos; in sha3_hash()
1376 buf[bufpos] ^= *data++; in sha3_hash()
1377 bufpos++; in sha3_hash()
1382 bufpos -= ctx->input_block_bytes; in sha3_hash()
1383 if (bufpos != 0) in sha3_hash()
1390 ctx->bytes_queued = bufpos + ctx->input_block_bytes; in sha3_hash()
1394 unsigned bufpos = ctx->bytes_queued; in sha3_hash()
1398 if (bufpos != 0) { in sha3_hash()
1401 buf[bufpos] ^= *data++; in sha3_hash()
1403 bufpos++; in sha3_hash()
1404 if (bufpos == iblk_bytes) { in sha3_hash()
1405 bufpos = 0; in sha3_hash()
1433 buf[bufpos] ^= *data++; in sha3_hash()
1434 bufpos++; in sha3_hash()
1438 ctx->bytes_queued = bufpos; in sha3_hash()