Lines Matching refs:W
54 static inline void LOAD_OP(int I, u32 *W, const u8 *input) in LOAD_OP() argument
56 W[I] = get_unaligned_be32((__u32 *)input + I); in LOAD_OP()
59 static inline void BLEND_OP(int I, u32 *W) in BLEND_OP() argument
61 W[I] = s1(W[I-2]) + W[I-7] + s0(W[I-15]) + W[I-16]; in BLEND_OP()
66 t1 = h + e1(e) + Ch(e, f, g) + SHA256_K[i] + W[i]; \
72 static void sha256_transform(u32 *state, const u8 *input, u32 *W) in sha256_transform() argument
79 LOAD_OP(i + 0, W, input); in sha256_transform()
80 LOAD_OP(i + 1, W, input); in sha256_transform()
81 LOAD_OP(i + 2, W, input); in sha256_transform()
82 LOAD_OP(i + 3, W, input); in sha256_transform()
83 LOAD_OP(i + 4, W, input); in sha256_transform()
84 LOAD_OP(i + 5, W, input); in sha256_transform()
85 LOAD_OP(i + 6, W, input); in sha256_transform()
86 LOAD_OP(i + 7, W, input); in sha256_transform()
91 BLEND_OP(i + 0, W); in sha256_transform()
92 BLEND_OP(i + 1, W); in sha256_transform()
93 BLEND_OP(i + 2, W); in sha256_transform()
94 BLEND_OP(i + 3, W); in sha256_transform()
95 BLEND_OP(i + 4, W); in sha256_transform()
96 BLEND_OP(i + 5, W); in sha256_transform()
97 BLEND_OP(i + 6, W); in sha256_transform()
98 BLEND_OP(i + 7, W); in sha256_transform()
124 u32 W[64]; in sha256_transform_blocks() local
127 sha256_transform(sctx->state, input, W); in sha256_transform_blocks()
131 memzero_explicit(W, sizeof(W)); in sha256_transform_blocks()