Lines Matching refs:SHA_BLOCKSIZE
38 #define SHA_BLOCKSIZE 64 macro
47 SHA_BYTE data[SHA_BLOCKSIZE]; /* SHA data buffer */
269 i = SHA_BLOCKSIZE - sha_info->local; in sha_update()
277 if (sha_info->local == SHA_BLOCKSIZE) { in sha_update()
284 while (count >= SHA_BLOCKSIZE) { in sha_update()
285 memcpy(sha_info->data, buffer, SHA_BLOCKSIZE); in sha_update()
286 buffer += SHA_BLOCKSIZE; in sha_update()
287 count -= SHA_BLOCKSIZE; in sha_update()
306 if (count > SHA_BLOCKSIZE - 8) { in sha_final()
308 SHA_BLOCKSIZE - count); in sha_final()
310 memset((SHA_BYTE *) sha_info->data, 0, SHA_BLOCKSIZE - 8); in sha_final()
314 SHA_BLOCKSIZE - 8 - count); in sha_final()
491 return PyLong_FromLong(SHA_BLOCKSIZE); in SHA256_get_block_size()