32 #define f1(x,y,z) ((x & y) | (~x & z)) 33 #define f2(x,y,z) (x ^ y ^ z) 34 #define f3(x,y,z) ((x & y) | (x & z) | (y & z)) 35 #define f4(x,y,z) (x ^ y ^ z) 39 #define CONST1 0x5a827999L 40 #define CONST2 0x6ed9eba1L 41 #define CONST3 0x8f1bbcdcL 42 #define CONST4 0xca62c1d6L 46 #define ROT32(x,n) ((x << n) | (x >> (32 - n))) 49 temp = ROT32(A,5) + f##n(B,C,D) + E + W[i] + CONST##n; \ 50 E = D; D = C; C = ROT32(B,30); B = A; A = temp 87 tmp |= (0xFF & *p2++) << 8;
88 tmp |= (0xFF & *p2++) << 16;
89 tmp |= (0xFF & *p2++) << 24;
103 for (i = 0; i < 16; ++i)
107 for (i = 16; i < 80; ++i)
109 W[i] = W[i - 3] ^ W[i - 8] ^ W[i - 14] ^ W[i - 16];
117 for (i = 0; i < 20; ++i)
121 for (i = 20; i < 40; ++i)
125 for (i = 40; i < 60; ++i)
129 for (i = 60; i < 80; ++i)
187 count = (int) ((lo_bit_count >> 3) & 0x3f);
214 for (j = 0; j <
VSIZE; j++)
void local_memset(INT32 *s, int c, int n, int e)
void __builtin_bambu_time_start()
void __builtin_bambu_time_stop()
const BYTE indata[VSIZE][BLOCK_SIZE]
void __attribute__((noinline))
void sha_update(const BYTE *buffer, int count)
void local_memcpy(INT32 *s1, const BYTE *s2, int n)
static void sha_transform()