Lines Matching refs:partial
43 unsigned int partial = sctx->count % SHA256_BLOCK_SIZE;
47 if (unlikely((partial + len) >= SHA256_BLOCK_SIZE)) {
50 if (partial) {
51 int p = SHA256_BLOCK_SIZE - partial;
53 memcpy(sctx->buf + partial, data, p);
67 partial = 0;
70 memcpy(sctx->buf + partial, data, len);
81 unsigned int partial = sctx->count % SHA256_BLOCK_SIZE;
83 sctx->buf[partial++] = 0x80;
84 if (partial > bit_offset) {
85 memset(sctx->buf + partial, 0x0, SHA256_BLOCK_SIZE - partial);
86 partial = 0;
91 memset(sctx->buf + partial, 0x0, bit_offset - partial);