Lines Matching refs:SHA_BLOCKSIZE
42 #define SHA_BLOCKSIZE 64 macro
51 SHA_BYTE data[SHA_BLOCKSIZE]; /* SHA data buffer */
279 i = SHA_BLOCKSIZE - sha_info->local; in sha_update()
287 if (sha_info->local == SHA_BLOCKSIZE) { in sha_update()
294 while (count >= SHA_BLOCKSIZE) { in sha_update()
295 memcpy(sha_info->data, buffer, SHA_BLOCKSIZE); in sha_update()
296 buffer += SHA_BLOCKSIZE; in sha_update()
297 count -= SHA_BLOCKSIZE; in sha_update()
316 if (count > SHA_BLOCKSIZE - 8) { in sha_final()
318 SHA_BLOCKSIZE - count); in sha_final()
320 memset((SHA_BYTE *) sha_info->data, 0, SHA_BLOCKSIZE - 8); in sha_final()
324 SHA_BLOCKSIZE - 8 - count); in sha_final()
505 return PyInt_FromLong(SHA_BLOCKSIZE); in SHA256_get_block_size()