Lines Matching refs:SHA_BLOCKSIZE
44 #define SHA_BLOCKSIZE 128 macro
53 SHA_BYTE data[SHA_BLOCKSIZE]; /* SHA data buffer */
305 i = SHA_BLOCKSIZE - sha_info->local; in sha512_update()
313 if (sha_info->local == SHA_BLOCKSIZE) { in sha512_update()
320 while (count >= SHA_BLOCKSIZE) { in sha512_update()
321 memcpy(sha_info->data, buffer, SHA_BLOCKSIZE); in sha512_update()
322 buffer += SHA_BLOCKSIZE; in sha512_update()
323 count -= SHA_BLOCKSIZE; in sha512_update()
342 if (count > SHA_BLOCKSIZE - 16) { in sha512_final()
344 SHA_BLOCKSIZE - count); in sha512_final()
346 memset((SHA_BYTE *) sha_info->data, 0, SHA_BLOCKSIZE - 16); in sha512_final()
350 SHA_BLOCKSIZE - 16 - count); in sha512_final()
571 return PyInt_FromLong(SHA_BLOCKSIZE); in SHA512_get_block_size()