Lines Matching refs:SHA_BLOCKSIZE
38 #define SHA_BLOCKSIZE 64 macro
47 SHA_BYTE data[SHA_BLOCKSIZE]; /* SHA data buffer */
282 i = SHA_BLOCKSIZE - sha_info->local; in sha_update()
290 if (sha_info->local == SHA_BLOCKSIZE) { in sha_update()
297 while (count >= SHA_BLOCKSIZE) { in sha_update()
298 memcpy(sha_info->data, buffer, SHA_BLOCKSIZE); in sha_update()
299 buffer += SHA_BLOCKSIZE; in sha_update()
300 count -= SHA_BLOCKSIZE; in sha_update()
319 if (count > SHA_BLOCKSIZE - 8) { in sha_final()
321 SHA_BLOCKSIZE - count); in sha_final()
323 memset((SHA_BYTE *) sha_info->data, 0, SHA_BLOCKSIZE - 8); in sha_final()
327 SHA_BLOCKSIZE - 8 - count); in sha_final()
520 return PyLong_FromLong(SHA_BLOCKSIZE); in SHA256_get_block_size()