Home
last modified time | relevance | path

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

/external/python/cpython2/Modules/
Dshamodule.c41 #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()
[all …]
Dsha256module.c42 #define SHA_BLOCKSIZE 64 macro
51 SHA_BYTE data[SHA_BLOCKSIZE]; /* SHA data buffer */
279 i = SHA_BLOCKSIZE - sha_info->local; in sha_update()
287 if (sha_info->local == SHA_BLOCKSIZE) { in sha_update()
294 while (count >= SHA_BLOCKSIZE) { in sha_update()
295 memcpy(sha_info->data, buffer, SHA_BLOCKSIZE); in sha_update()
296 buffer += SHA_BLOCKSIZE; in sha_update()
297 count -= SHA_BLOCKSIZE; in sha_update()
316 if (count > SHA_BLOCKSIZE - 8) { in sha_final()
318 SHA_BLOCKSIZE - count); in sha_final()
[all …]
Dsha512module.c44 #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()
[all …]
/external/python/cpython3/Modules/
Dsha256module.c42 #define SHA_BLOCKSIZE 64 macro
51 SHA_BYTE data[SHA_BLOCKSIZE]; /* SHA data buffer */
278 i = SHA_BLOCKSIZE - sha_info->local; in sha_update()
286 if (sha_info->local == SHA_BLOCKSIZE) { in sha_update()
293 while (count >= SHA_BLOCKSIZE) { in sha_update()
294 memcpy(sha_info->data, buffer, SHA_BLOCKSIZE); in sha_update()
295 buffer += SHA_BLOCKSIZE; in sha_update()
296 count -= SHA_BLOCKSIZE; in sha_update()
315 if (count > SHA_BLOCKSIZE - 8) { in sha_final()
317 SHA_BLOCKSIZE - count); in sha_final()
[all …]
Dsha512module.c43 #define SHA_BLOCKSIZE 128 macro
52 SHA_BYTE data[SHA_BLOCKSIZE]; /* SHA data buffer */
303 i = SHA_BLOCKSIZE - sha_info->local; in sha512_update()
311 if (sha_info->local == SHA_BLOCKSIZE) { in sha512_update()
318 while (count >= SHA_BLOCKSIZE) { in sha512_update()
319 memcpy(sha_info->data, buffer, SHA_BLOCKSIZE); in sha512_update()
320 buffer += SHA_BLOCKSIZE; in sha512_update()
321 count -= SHA_BLOCKSIZE; in sha512_update()
340 if (count > SHA_BLOCKSIZE - 16) { in sha512_final()
342 SHA_BLOCKSIZE - count); in sha512_final()
[all …]