Lines Matching refs:W
63 #define I(i) (W[i] = get_unaligned_be32(data + i * 4))
64 #define W1(i) (W[i & 0x0f])
65 #define W2(i) (W[i & 0x0f] = \
66 P1(W[i & 0x0f] \
67 ^ W[(i-9) & 0x0f] \
68 ^ rol32(W[(i-3) & 0x0f], 15)) \
69 ^ rol32(W[(i-13) & 0x0f], 7) \
70 ^ W[(i-6) & 0x0f])
72 static void sm3_transform(struct sm3_state *sctx, u8 const *data, u32 W[16]) in sm3_transform()
170 u8 const *data, int blocks, u32 W[16]) in sm3_block()
173 sm3_transform(sctx, data, W); in sm3_block()
181 u32 W[16]; in sm3_update() local
195 sm3_block(sctx, sctx->buffer, 1, W); in sm3_update()
202 sm3_block(sctx, data, blocks, W); in sm3_update()
206 memzero_explicit(W, sizeof(W)); in sm3_update()
221 u32 W[16]; in sm3_final() local
229 sm3_block(sctx, sctx->buffer, 1, W); in sm3_final()
234 sm3_block(sctx, sctx->buffer, 1, W); in sm3_final()
240 memzero_explicit(W, sizeof(W)); in sm3_final()