Home
last modified time | relevance | path

Searched refs:SHA1_BLOCKSIZE (Results 1 – 1 of 1) sorted by relevance

/external/python/cpython3/Modules/
Dsha1module.c40 #define SHA1_BLOCKSIZE 64 macro
48 unsigned char buf[SHA1_BLOCKSIZE];
220 if (sha1->curlen == 0 && inlen >= SHA1_BLOCKSIZE) { in sha1_process()
222 sha1->length += SHA1_BLOCKSIZE * 8; in sha1_process()
223 in += SHA1_BLOCKSIZE; in sha1_process()
224 inlen -= SHA1_BLOCKSIZE; in sha1_process()
226 n = Py_MIN(inlen, (Py_ssize_t)(SHA1_BLOCKSIZE - sha1->curlen)); in sha1_process()
231 if (sha1->curlen == SHA1_BLOCKSIZE) { in sha1_process()
233 sha1->length += 8*SHA1_BLOCKSIZE; in sha1_process()
410 return PyLong_FromLong(SHA1_BLOCKSIZE); in SHA1_get_block_size()