Lines Matching refs:SHA_BLOCKSIZE
39 #define SHA_BLOCKSIZE 128 macro
48 SHA_BYTE data[SHA_BLOCKSIZE]; /* SHA data buffer */
286 i = SHA_BLOCKSIZE - sha_info->local; in sha512_update()
294 if (sha_info->local == SHA_BLOCKSIZE) { in sha512_update()
301 while (count >= SHA_BLOCKSIZE) { in sha512_update()
302 memcpy(sha_info->data, buffer, SHA_BLOCKSIZE); in sha512_update()
303 buffer += SHA_BLOCKSIZE; in sha512_update()
304 count -= SHA_BLOCKSIZE; in sha512_update()
323 if (count > SHA_BLOCKSIZE - 16) { in sha512_final()
325 SHA_BLOCKSIZE - count); in sha512_final()
327 memset((SHA_BYTE *) sha_info->data, 0, SHA_BLOCKSIZE - 16); in sha512_final()
331 SHA_BLOCKSIZE - 16 - count); in sha512_final()
548 return PyLong_FromLong(SHA_BLOCKSIZE); in SHA512_get_block_size()