Lines Matching refs:W
55 static inline void LOAD_OP(int I, u32 *W, const u8 *input) in LOAD_OP() argument
57 W[I] = get_unaligned_be32((__u32 *)input + I); in LOAD_OP()
60 static inline void BLEND_OP(int I, u32 *W) in BLEND_OP() argument
62 W[I] = s1(W[I-2]) + W[I-7] + s0(W[I-15]) + W[I-16]; in BLEND_OP()
67 t1 = h + e1(e) + Ch(e, f, g) + SHA256_K[i] + W[i]; \
73 static void sha256_transform(u32 *state, const u8 *input, u32 *W) in sha256_transform() argument
80 LOAD_OP(i + 0, W, input); in sha256_transform()
81 LOAD_OP(i + 1, W, input); in sha256_transform()
82 LOAD_OP(i + 2, W, input); in sha256_transform()
83 LOAD_OP(i + 3, W, input); in sha256_transform()
84 LOAD_OP(i + 4, W, input); in sha256_transform()
85 LOAD_OP(i + 5, W, input); in sha256_transform()
86 LOAD_OP(i + 6, W, input); in sha256_transform()
87 LOAD_OP(i + 7, W, input); in sha256_transform()
92 BLEND_OP(i + 0, W); in sha256_transform()
93 BLEND_OP(i + 1, W); in sha256_transform()
94 BLEND_OP(i + 2, W); in sha256_transform()
95 BLEND_OP(i + 3, W); in sha256_transform()
96 BLEND_OP(i + 4, W); in sha256_transform()
97 BLEND_OP(i + 5, W); in sha256_transform()
98 BLEND_OP(i + 6, W); in sha256_transform()
99 BLEND_OP(i + 7, W); in sha256_transform()
126 u32 W[64]; in sha256_update() local
141 sha256_transform(sctx->state, src, W); in sha256_update()
146 memzero_explicit(W, sizeof(W)); in sha256_update()