Searched refs:SHA_BYTE (Results 1 – 6 of 6) sorted by relevance
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/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()
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/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()
|