PandA-2024.02
|
Go to the source code of this file.
Macros | |
#define | f1(x, y, z) ((x & y) | (~x & z)) |
#define | f2(x, y, z) (x ^ y ^ z) |
#define | f3(x, y, z) ((x & y) | (x & z) | (y & z)) |
#define | f4(x, y, z) (x ^ y ^ z) |
#define | CONST1 0x5a827999L |
#define | CONST2 0x6ed9eba1L |
#define | CONST3 0x8f1bbcdcL |
#define | CONST4 0xca62c1d6L |
#define | ROT32(x, n) ((x << n) | (x >> (32 - n))) |
#define | FUNC(n, i) |
Functions | |
void | __builtin_bambu_time_start () |
void | __builtin_bambu_time_stop () |
void | local_memset (INT32 *s, int c, int n, int e) |
void | local_memcpy (INT32 *s1, const BYTE *s2, int n) |
static void | sha_transform () |
void | sha_init () |
void | sha_update (const BYTE *buffer, int count) |
void | sha_final () |
void | __attribute__ ((noinline)) |
#define FUNC | ( | n, | |
i | |||
) |
void __attribute__ | ( | (noinline) | ) |
Definition at line 206 of file sha.c.
References __builtin_bambu_time_start(), __builtin_bambu_time_stop(), in_i, indata, sha_final(), sha_init(), sha_update(), and VSIZE.
void __builtin_bambu_time_start | ( | ) |
void __builtin_bambu_time_stop | ( | ) |
void sha_final | ( | ) |
Definition at line 179 of file sha.c.
References local_memset(), sha_info_count_hi, sha_info_count_lo, sha_info_data, and sha_transform().
void sha_init | ( | ) |
Definition at line 144 of file sha.c.
References L, sha_info_count_hi, sha_info_count_lo, and sha_info_digest.
|
static |
Definition at line 98 of file sha.c.
References A, B, C, D, FUNC, sha_info_data, sha_info_digest, and W.
Referenced by sha_final(), and sha_update().
void sha_update | ( | const BYTE * | buffer, |
int | count | ||
) |
Definition at line 158 of file sha.c.
References local_memcpy(), SHA_BLOCKSIZE, sha_info_count_hi, sha_info_count_lo, sha_info_data, and sha_transform().