Lines Matching refs:W
95 static inline void LOAD_OP(int I, uint64_t *W, const uint8_t *input) in LOAD_OP() argument
97 W[I] = __be64_to_cpu( ((uint64_t *)(input))[I] ); in LOAD_OP()
100 static inline void BLEND_OP(int I, uint64_t *W) in BLEND_OP() argument
102 W[I] = s1(W[I-2]) + W[I-7] + s0(W[I-15]) + W[I-16]; in BLEND_OP()
105 static void sha512_transform(uint64_t *state, uint64_t *W, const uint8_t *input) in sha512_transform() argument
113 LOAD_OP(i, W, input); in sha512_transform()
116 BLEND_OP(i, W); in sha512_transform()
124 t1 = h + e1(e) + Ch(e,f,g) + sha512_K[i ] + W[i ]; in sha512_transform()
126 t1 = g + e1(d) + Ch(d,e,f) + sha512_K[i+1] + W[i+1]; in sha512_transform()
128 t1 = f + e1(c) + Ch(c,d,e) + sha512_K[i+2] + W[i+2]; in sha512_transform()
130 t1 = e + e1(b) + Ch(b,c,d) + sha512_K[i+3] + W[i+3]; in sha512_transform()
132 t1 = d + e1(a) + Ch(a,b,c) + sha512_K[i+4] + W[i+4]; in sha512_transform()
134 t1 = c + e1(h) + Ch(h,a,b) + sha512_K[i+5] + W[i+5]; in sha512_transform()
136 t1 = b + e1(g) + Ch(g,h,a) + sha512_K[i+6] + W[i+6]; in sha512_transform()
138 t1 = a + e1(f) + Ch(f,g,h) + sha512_K[i+7] + W[i+7]; in sha512_transform()
183 sha512_transform(sctx->state, sctx->W, sctx->buf); in fio_sha512_update()
186 sha512_transform(sctx->state, sctx->W, &data[i]); in fio_sha512_update()
197 memset(sctx->W, 0, sizeof(sctx->W)); in fio_sha512_update()