Lines Matching refs:partial
62 unsigned int partial = sctx->count[0] % SHA512_BLOCK_SIZE;
68 if (unlikely((partial + len) >= SHA512_BLOCK_SIZE)) {
71 if (partial) {
72 int p = SHA512_BLOCK_SIZE - partial;
74 memcpy(sctx->buf + partial, data, p);
88 partial = 0;
91 memcpy(sctx->buf + partial, data, len);
102 unsigned int partial = sctx->count[0] % SHA512_BLOCK_SIZE;
104 sctx->buf[partial++] = 0x80;
105 if (partial > bit_offset) {
106 memset(sctx->buf + partial, 0x0, SHA512_BLOCK_SIZE - partial);
107 partial = 0;
112 memset(sctx->buf + partial, 0x0, bit_offset - partial);