Searched refs:SHA_BYTE (Results 1 - 2 of 2) sorted by relevance
/third_party/python/Modules/ |
H A D | sha256module.c | 36 typedef unsigned char SHA_BYTE; typedef 50 SHA_BYTE data[SHA_BLOCKSIZE]; /* SHA data buffer */ 273 sha_update(SHAobject *sha_info, SHA_BYTE *buffer, Py_ssize_t count) in sha_update() 289 memcpy(((SHA_BYTE *) sha_info->data) + sha_info->local, buffer, i); in sha_update() 321 ((SHA_BYTE *) sha_info->data)[count++] = 0x80; in sha_final() 323 memset(((SHA_BYTE *) sha_info->data) + count, 0, in sha_final() 326 memset((SHA_BYTE *) sha_info->data, 0, SHA_BLOCKSIZE - 8); in sha_final() 329 memset(((SHA_BYTE *) sha_info->data) + count, 0, in sha_final()
|
H A D | sha512module.c | 36 typedef unsigned char SHA_BYTE; typedef 51 SHA_BYTE data[SHA_BLOCKSIZE]; /* SHA data buffer */ 277 sha512_update(SHAobject *sha_info, SHA_BYTE *buffer, Py_ssize_t count) in sha512_update() 293 memcpy(((SHA_BYTE *) sha_info->data) + sha_info->local, buffer, i); in sha512_update() 325 ((SHA_BYTE *) sha_info->data)[count++] = 0x80; in sha512_final() 327 memset(((SHA_BYTE *) sha_info->data) + count, 0, in sha512_final() 330 memset((SHA_BYTE *) sha_info->data, 0, SHA_BLOCKSIZE - 16); in sha512_final() 333 memset(((SHA_BYTE *) sha_info->data) + count, 0, in sha512_final()
|
Completed in 3 milliseconds