Searched refs:SHA_BYTE (Results 1 – 5 of 5) sorted by relevance
/external/python/cpython2/Modules/ |
D | shamodule.c | 31 typedef unsigned char SHA_BYTE; typedef 50 SHA_BYTE data[SHA_BLOCKSIZE]; /* SHA data buffer */ 239 sha_update(SHAobject *sha_info, SHA_BYTE *buffer, unsigned int count) in sha_update() 255 memcpy(((SHA_BYTE *) sha_info->data) + sha_info->local, buffer, i); in sha_update() 287 ((SHA_BYTE *) sha_info->data)[count++] = 0x80; in sha_final() 289 memset(((SHA_BYTE *) sha_info->data) + count, 0, in sha_final() 292 memset((SHA_BYTE *) sha_info->data, 0, SHA_BLOCKSIZE - 8); in sha_final() 295 memset(((SHA_BYTE *) sha_info->data) + count, 0, in sha_final()
|
D | sha256module.c | 32 typedef unsigned char SHA_BYTE; typedef 51 SHA_BYTE data[SHA_BLOCKSIZE]; /* SHA data buffer */ 267 sha_update(SHAobject *sha_info, SHA_BYTE *buffer, int count) in sha_update() 283 memcpy(((SHA_BYTE *) sha_info->data) + sha_info->local, buffer, i); in sha_update() 315 ((SHA_BYTE *) sha_info->data)[count++] = 0x80; in sha_final() 317 memset(((SHA_BYTE *) sha_info->data) + count, 0, in sha_final() 320 memset((SHA_BYTE *) sha_info->data, 0, SHA_BLOCKSIZE - 8); in sha_final() 323 memset(((SHA_BYTE *) sha_info->data) + count, 0, in sha_final()
|
D | sha512module.c | 33 typedef unsigned char SHA_BYTE; typedef 53 SHA_BYTE data[SHA_BLOCKSIZE]; /* SHA data buffer */ 293 sha512_update(SHAobject *sha_info, SHA_BYTE *buffer, int count) in sha512_update() 309 memcpy(((SHA_BYTE *) sha_info->data) + sha_info->local, buffer, i); in sha512_update() 341 ((SHA_BYTE *) sha_info->data)[count++] = 0x80; in sha512_final() 343 memset(((SHA_BYTE *) sha_info->data) + count, 0, in sha512_final() 346 memset((SHA_BYTE *) sha_info->data, 0, SHA_BLOCKSIZE - 16); in sha512_final() 349 memset(((SHA_BYTE *) sha_info->data) + count, 0, in sha512_final()
|
/external/python/cpython3/Modules/ |
D | sha256module.c | 32 typedef unsigned char SHA_BYTE; typedef 51 SHA_BYTE data[SHA_BLOCKSIZE]; /* SHA data buffer */ 266 sha_update(SHAobject *sha_info, SHA_BYTE *buffer, Py_ssize_t count) in sha_update() 282 memcpy(((SHA_BYTE *) sha_info->data) + sha_info->local, buffer, i); in sha_update() 314 ((SHA_BYTE *) sha_info->data)[count++] = 0x80; in sha_final() 316 memset(((SHA_BYTE *) sha_info->data) + count, 0, in sha_final() 319 memset((SHA_BYTE *) sha_info->data, 0, SHA_BLOCKSIZE - 8); in sha_final() 322 memset(((SHA_BYTE *) sha_info->data) + count, 0, in sha_final()
|
D | sha512module.c | 32 typedef unsigned char SHA_BYTE; typedef 52 SHA_BYTE data[SHA_BLOCKSIZE]; /* SHA data buffer */ 291 sha512_update(SHAobject *sha_info, SHA_BYTE *buffer, Py_ssize_t count) in sha512_update() 307 memcpy(((SHA_BYTE *) sha_info->data) + sha_info->local, buffer, i); in sha512_update() 339 ((SHA_BYTE *) sha_info->data)[count++] = 0x80; in sha512_final() 341 memset(((SHA_BYTE *) sha_info->data) + count, 0, in sha512_final() 344 memset((SHA_BYTE *) sha_info->data, 0, SHA_BLOCKSIZE - 16); in sha512_final() 347 memset(((SHA_BYTE *) sha_info->data) + count, 0, in sha512_final()
|