Lines Matching refs:partial
61 unsigned int partial = sctx->count[0] % SHA512_BLOCK_SIZE;
67 if (unlikely((partial + len) >= SHA512_BLOCK_SIZE)) {
70 if (partial) {
71 int p = SHA512_BLOCK_SIZE - partial;
73 memcpy(sctx->buf + partial, data, p);
87 partial = 0;
90 memcpy(sctx->buf + partial, data, len);
101 unsigned int partial = sctx->count[0] % SHA512_BLOCK_SIZE;
103 sctx->buf[partial++] = 0x80;
104 if (partial > bit_offset) {
105 memset(sctx->buf + partial, 0x0, SHA512_BLOCK_SIZE - partial);
106 partial = 0;
111 memset(sctx->buf + partial, 0x0, bit_offset - partial);