Lines Matching refs:w
65 static void sm3_expand(u32 *t, u32 *w, u32 *wt) in sm3_expand() argument
72 w[i] = get_unaligned_be32((__u32 *)t + i); in sm3_expand()
75 tmp = w[i - 16] ^ w[i - 9] ^ rol32(w[i - 3], 15); in sm3_expand()
76 w[i] = p1(tmp) ^ (rol32(w[i - 13], 7)) ^ w[i - 6]; in sm3_expand()
80 wt[i] = w[i] ^ w[i + 4]; in sm3_expand()
83 static void sm3_compress(u32 *w, u32 *wt, u32 *m) in sm3_compress() argument
110 tt2 = gg(i, e, f, g) + h + ss1 + *w; in sm3_compress()
111 w++; in sm3_compress()
137 unsigned int w[68]; in sm3_transform() local
140 sm3_expand((u32 *)src, w, wt); in sm3_transform()
141 sm3_compress(w, wt, sst->state); in sm3_transform()
143 memzero_explicit(w, sizeof(w)); in sm3_transform()