Lines Matching refs:SM3_BLOCK_SIZE
174 data += SM3_BLOCK_SIZE;
180 unsigned int partial = sctx->count % SM3_BLOCK_SIZE;
185 if ((partial + len) >= SM3_BLOCK_SIZE) {
189 int p = SM3_BLOCK_SIZE - partial;
198 blocks = len / SM3_BLOCK_SIZE;
199 len %= SM3_BLOCK_SIZE;
203 data += blocks * SM3_BLOCK_SIZE;
217 const int bit_offset = SM3_BLOCK_SIZE - sizeof(u64);
220 unsigned int partial = sctx->count % SM3_BLOCK_SIZE;
226 memset(sctx->buffer + partial, 0, SM3_BLOCK_SIZE - partial);