Lines Matching refs:partial
180 unsigned int partial = sctx->count % SM3_BLOCK_SIZE; in sm3_update() local
185 if ((partial + len) >= SM3_BLOCK_SIZE) { in sm3_update()
188 if (partial) { in sm3_update()
189 int p = SM3_BLOCK_SIZE - partial; in sm3_update()
191 memcpy(sctx->buffer + partial, data, p); in sm3_update()
208 partial = 0; in sm3_update()
211 memcpy(sctx->buffer + partial, data, len); in sm3_update()
220 unsigned int partial = sctx->count % SM3_BLOCK_SIZE; in sm3_final() local
224 sctx->buffer[partial++] = 0x80; in sm3_final()
225 if (partial > bit_offset) { in sm3_final()
226 memset(sctx->buffer + partial, 0, SM3_BLOCK_SIZE - partial); in sm3_final()
227 partial = 0; in sm3_final()
232 memset(sctx->buffer + partial, 0, bit_offset - partial); in sm3_final()