Searched refs:SHA_BLOCKSIZE (Results 1 – 5 of 5) sorted by relevance
/external/python/cpython2/Modules/ |
D | shamodule.c | 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() [all …]
|
D | sha256module.c | 42 #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 …]
|
D | sha512module.c | 44 #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/ |
D | sha256module.c | 38 #define SHA_BLOCKSIZE 64 macro 47 SHA_BYTE data[SHA_BLOCKSIZE]; /* SHA data buffer */ 269 i = SHA_BLOCKSIZE - sha_info->local; in sha_update() 277 if (sha_info->local == SHA_BLOCKSIZE) { in sha_update() 284 while (count >= SHA_BLOCKSIZE) { in sha_update() 285 memcpy(sha_info->data, buffer, SHA_BLOCKSIZE); in sha_update() 286 buffer += SHA_BLOCKSIZE; in sha_update() 287 count -= SHA_BLOCKSIZE; in sha_update() 306 if (count > SHA_BLOCKSIZE - 8) { in sha_final() 308 SHA_BLOCKSIZE - count); in sha_final() [all …]
|
D | sha512module.c | 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() [all …]
|