Lines Matching refs:SHA_BLOCKSIZE
41 #define SHA_BLOCKSIZE 64 macro
50 SHA_BYTE data[SHA_BLOCKSIZE]; /* SHA data buffer */
251 i = SHA_BLOCKSIZE - sha_info->local; in sha_update()
259 if (sha_info->local == SHA_BLOCKSIZE) { in sha_update()
266 while (count >= SHA_BLOCKSIZE) { in sha_update()
267 memcpy(sha_info->data, buffer, SHA_BLOCKSIZE); in sha_update()
268 buffer += SHA_BLOCKSIZE; in sha_update()
269 count -= SHA_BLOCKSIZE; in sha_update()
288 if (count > SHA_BLOCKSIZE - 8) { in sha_final()
290 SHA_BLOCKSIZE - count); in sha_final()
292 memset((SHA_BYTE *) sha_info->data, 0, SHA_BLOCKSIZE - 8); in sha_final()
296 SHA_BLOCKSIZE - 8 - count); in sha_final()
467 return PyInt_FromLong(SHA_BLOCKSIZE); in SHA_get_block_size()