D | sha256-internal.c | 136 #define S(x, n) RORc((x), (n)) macro 138 #define Sigma0(x) (S(x, 2) ^ S(x, 13) ^ S(x, 22)) 139 #define Sigma1(x) (S(x, 6) ^ S(x, 11) ^ S(x, 25)) 140 #define Gamma0(x) (S(x, 7) ^ S(x, 18) ^ R(x, 3)) 141 #define Gamma1(x) (S(x, 17) ^ S(x, 19) ^ R(x, 10)) 149 u32 S[8], W[64], t0, t1; in sha256_compress() local 155 S[i] = md->state[i]; in sha256_compress() 176 RND(S[0], S[1], S[2], S[3], S[4], S[5], S[6], S[7], i); in sha256_compress() 177 t = S[7]; S[7] = S[6]; S[6] = S[5]; S[5] = S[4]; in sha256_compress() 178 S[4] = S[3]; S[3] = S[2]; S[2] = S[1]; S[1] = S[0]; S[0] = t; in sha256_compress() [all …]
|