Lines Matching defs:count
50 SHA_INT32 count_lo, count_hi; /* 64-bit bit count */
277 sha512_update(SHAobject *sha_info, SHA_BYTE *buffer, Py_ssize_t count)
282 clo = sha_info->count_lo + ((SHA_INT32) count << 3);
287 sha_info->count_hi += (SHA_INT32) count >> 29;
290 if (i > count) {
291 i = count;
294 count -= i;
304 while (count >= SHA_BLOCKSIZE) {
307 count -= SHA_BLOCKSIZE;
310 memcpy(sha_info->data, buffer, count);
311 sha_info->local = (int)count;
319 int count;
324 count = (int) ((lo_bit_count >> 3) & 0x7f);
325 ((SHA_BYTE *) sha_info->data)[count++] = 0x80;
326 if (count > SHA_BLOCKSIZE - 16) {
327 memset(((SHA_BYTE *) sha_info->data) + count, 0,
328 SHA_BLOCKSIZE - count);
333 memset(((SHA_BYTE *) sha_info->data) + count, 0,
334 SHA_BLOCKSIZE - 16 - count);