Lines Matching refs:SHA_BLOCKSIZE
42 #define SHA_BLOCKSIZE 64 macro
51 SHA_BYTE data[SHA_BLOCKSIZE]; /* SHA data buffer */
278 i = SHA_BLOCKSIZE - sha_info->local; in sha_update()
286 if (sha_info->local == SHA_BLOCKSIZE) { in sha_update()
293 while (count >= SHA_BLOCKSIZE) { in sha_update()
294 memcpy(sha_info->data, buffer, SHA_BLOCKSIZE); in sha_update()
295 buffer += SHA_BLOCKSIZE; in sha_update()
296 count -= SHA_BLOCKSIZE; in sha_update()
315 if (count > SHA_BLOCKSIZE - 8) { in sha_final()
317 SHA_BLOCKSIZE - count); in sha_final()
319 memset((SHA_BYTE *) sha_info->data, 0, SHA_BLOCKSIZE - 8); in sha_final()
323 SHA_BLOCKSIZE - 8 - count); in sha_final()
500 return PyLong_FromLong(SHA_BLOCKSIZE); in SHA256_get_block_size()