Lines Matching defs:count
49 SHA_INT32 count_lo, count_hi; /* 64-bit bit count */
273 sha_update(SHAobject *sha_info, SHA_BYTE *buffer, Py_ssize_t count)
278 clo = sha_info->count_lo + ((SHA_INT32) count << 3);
283 sha_info->count_hi += (SHA_INT32) count >> 29;
286 if (i > count) {
287 i = count;
290 count -= i;
300 while (count >= SHA_BLOCKSIZE) {
303 count -= SHA_BLOCKSIZE;
306 memcpy(sha_info->data, buffer, count);
307 sha_info->local = (int)count;
315 int count;
320 count = (int) ((lo_bit_count >> 3) & 0x3f);
321 ((SHA_BYTE *) sha_info->data)[count++] = 0x80;
322 if (count > SHA_BLOCKSIZE - 8) {
323 memset(((SHA_BYTE *) sha_info->data) + count, 0,
324 SHA_BLOCKSIZE - count);
329 memset(((SHA_BYTE *) sha_info->data) + count, 0,
330 SHA_BLOCKSIZE - 8 - count);