Home
last modified time | relevance | path

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

/third_party/python/Modules/
H A Dsha1module.c43 #define SHA1_BLOCKSIZE 64 macro
51 unsigned char buf[SHA1_BLOCKSIZE];
223 if (sha1->curlen == 0 && inlen >= SHA1_BLOCKSIZE) { in sha1_process()
225 sha1->length += SHA1_BLOCKSIZE * 8; in sha1_process()
226 in += SHA1_BLOCKSIZE; in sha1_process()
227 inlen -= SHA1_BLOCKSIZE; in sha1_process()
229 n = Py_MIN(inlen, (Py_ssize_t)(SHA1_BLOCKSIZE - sha1->curlen)); in sha1_process()
234 if (sha1->curlen == SHA1_BLOCKSIZE) { in sha1_process()
236 sha1->length += 8*SHA1_BLOCKSIZE; in sha1_process()
436 return PyLong_FromLong(SHA1_BLOCKSIZE); in SHA1_get_block_size()
[all...]

Completed in 1 milliseconds