Searched refs:SHA_BYTE (Results 1 – 2 of 2) sorted by relevance
/third_party/python/Modules/ |
D | sha256module.c | 33 typedef unsigned char SHA_BYTE; typedef 47 SHA_BYTE data[SHA_BLOCKSIZE]; /* SHA data buffer */ 270 sha_update(SHAobject *sha_info, SHA_BYTE *buffer, Py_ssize_t count) in sha_update() 286 memcpy(((SHA_BYTE *) sha_info->data) + sha_info->local, buffer, i); in sha_update() 318 ((SHA_BYTE *) sha_info->data)[count++] = 0x80; in sha_final() 320 memset(((SHA_BYTE *) sha_info->data) + count, 0, in sha_final() 323 memset((SHA_BYTE *) sha_info->data, 0, SHA_BLOCKSIZE - 8); in sha_final() 326 memset(((SHA_BYTE *) sha_info->data) + count, 0, in sha_final()
|
D | sha512module.c | 33 typedef unsigned char SHA_BYTE; typedef 48 SHA_BYTE data[SHA_BLOCKSIZE]; /* SHA data buffer */ 274 sha512_update(SHAobject *sha_info, SHA_BYTE *buffer, Py_ssize_t count) in sha512_update() 290 memcpy(((SHA_BYTE *) sha_info->data) + sha_info->local, buffer, i); in sha512_update() 322 ((SHA_BYTE *) sha_info->data)[count++] = 0x80; in sha512_final() 324 memset(((SHA_BYTE *) sha_info->data) + count, 0, in sha512_final() 327 memset((SHA_BYTE *) sha_info->data, 0, SHA_BLOCKSIZE - 16); in sha512_final() 330 memset(((SHA_BYTE *) sha_info->data) + count, 0, in sha512_final()
|