Lines Matching refs:partial
42 unsigned int partial = sctx->count % SHA256_BLOCK_SIZE;
46 if (unlikely((partial + len) >= SHA256_BLOCK_SIZE)) {
49 if (partial) {
50 int p = SHA256_BLOCK_SIZE - partial;
52 memcpy(sctx->buf + partial, data, p);
66 partial = 0;
69 memcpy(sctx->buf + partial, data, len);
89 unsigned int partial = sctx->count % SHA256_BLOCK_SIZE;
91 sctx->buf[partial++] = 0x80;
92 if (partial > bit_offset) {
93 memset(sctx->buf + partial, 0x0, SHA256_BLOCK_SIZE - partial);
94 partial = 0;
99 memset(sctx->buf + partial, 0x0, bit_offset - partial);