• Home
  • Raw
  • Download

Lines Matching refs:W

89 #define WUPDATE(nr, W) (P1(W[((nr)-16)&15] ^ W[((nr)-9)&15] ^ ROL32(W[((nr)-3)&15],15)) ^ ROL32(W[(…  argument
92 #define SM3_STEP1(nr, A,B,C,D,E,F,G,H, Tj, W) { \ argument
93 TT1 = FF1(A,B,C) + D + (W[nr&15] ^ W[(nr+4)&15]); \
94 TT2 = GG1(E,F,G) + H + W[nr&15]; \
104 W[(nr)&15] = WUPDATE(nr, W); \
107 #define SM3_STEP2(nr, A,B,C,D,E,F,G,H, Tj, W) { \ argument
108 TT1 = FF2(A,B,C) + D + (W[nr&15] ^ W[(nr+4)&15]); \
109 TT2 = GG2(E,F,G) + H + W[nr&15]; \
119 W[(nr)&15] = WUPDATE(nr, W); \
122 #define SM3_STEP3(nr, A,B,C,D,E,F,G,H, Tj, W) { \ argument
123 TT1 = FF2(A,B,C) + D + (W[nr&15] ^ W[(nr+4)&15]); \
124 TT2 = GG2(E,F,G) + H + W[nr&15]; \
136 #define COMPACT_SM3_STEP(A,B,C,D,E,F,G,H, FF, GG, W,Tj, r) { \ argument
137 TT1 = FF((r)&0x30, A,B,C) + D + (W[(r)] ^ W[(r)+4]); \
138 TT2 = GG((r)&0x30, E,F,G) + H + W[(r)]; \
201 Ipp32u W[68]; in UpdateSM3() local
205 W[r] = data[r]; in UpdateSM3()
207 W[r] = ENDIANNESS( data[r] ); in UpdateSM3()
211 W[r] = P1(W[r-16] ^ W[r-9] ^ ROL32(W[r-3],15)) ^ ROL32(W[r-13],7) ^ W[r-6]; in UpdateSM3()
229 COMPACT_SM3_STEP(A,B,C,D,E,F,G,H, MagicFF,MagicGG, W, SM3_cnt_loc, r); in UpdateSM3()
264 Ipp32u W[16]; in UpdateSM3() local
271 W[j] = data[j]; in UpdateSM3()
273 W[j] = ENDIANNESS( data[j] ); in UpdateSM3()
280 SM3_STEP1( 0, A,B,C,D,E,F,G,H, SM3_cnt_loc[0], W); in UpdateSM3()
281 SM3_STEP1( 1, H,A,B,C,D,E,F,G, SM3_cnt_loc[1], W); in UpdateSM3()
282 SM3_STEP1( 2, G,H,A,B,C,D,E,F, SM3_cnt_loc[2], W); in UpdateSM3()
283 SM3_STEP1( 3, F,G,H,A,B,C,D,E, SM3_cnt_loc[3], W); in UpdateSM3()
284 SM3_STEP1( 4, E,F,G,H,A,B,C,D, SM3_cnt_loc[4], W); in UpdateSM3()
285 SM3_STEP1( 5, D,E,F,G,H,A,B,C, SM3_cnt_loc[5], W); in UpdateSM3()
286 SM3_STEP1( 6, C,D,E,F,G,H,A,B, SM3_cnt_loc[6], W); in UpdateSM3()
287 SM3_STEP1( 7, B,C,D,E,F,G,H,A, SM3_cnt_loc[7], W); in UpdateSM3()
289 SM3_STEP1( 8, A,B,C,D,E,F,G,H, SM3_cnt_loc[ 8], W); in UpdateSM3()
290 SM3_STEP1( 9, H,A,B,C,D,E,F,G, SM3_cnt_loc[ 9], W); in UpdateSM3()
291 SM3_STEP1(10, G,H,A,B,C,D,E,F, SM3_cnt_loc[10], W); in UpdateSM3()
292 SM3_STEP1(11, F,G,H,A,B,C,D,E, SM3_cnt_loc[11], W); in UpdateSM3()
293 SM3_STEP1(12, E,F,G,H,A,B,C,D, SM3_cnt_loc[12], W); in UpdateSM3()
294 SM3_STEP1(13, D,E,F,G,H,A,B,C, SM3_cnt_loc[13], W); in UpdateSM3()
295 SM3_STEP1(14, C,D,E,F,G,H,A,B, SM3_cnt_loc[14], W); in UpdateSM3()
296 SM3_STEP1(15, B,C,D,E,F,G,H,A, SM3_cnt_loc[15], W); in UpdateSM3()
298 SM3_STEP2(16, A,B,C,D,E,F,G,H, SM3_cnt_loc[16], W); in UpdateSM3()
299 SM3_STEP2(17, H,A,B,C,D,E,F,G, SM3_cnt_loc[17], W); in UpdateSM3()
300 SM3_STEP2(18, G,H,A,B,C,D,E,F, SM3_cnt_loc[18], W); in UpdateSM3()
301 SM3_STEP2(19, F,G,H,A,B,C,D,E, SM3_cnt_loc[19], W); in UpdateSM3()
302 SM3_STEP2(20, E,F,G,H,A,B,C,D, SM3_cnt_loc[20], W); in UpdateSM3()
303 SM3_STEP2(21, D,E,F,G,H,A,B,C, SM3_cnt_loc[21], W); in UpdateSM3()
304 SM3_STEP2(22, C,D,E,F,G,H,A,B, SM3_cnt_loc[22], W); in UpdateSM3()
305 SM3_STEP2(23, B,C,D,E,F,G,H,A, SM3_cnt_loc[23], W); in UpdateSM3()
307 SM3_STEP2(24, A,B,C,D,E,F,G,H, SM3_cnt_loc[24], W); in UpdateSM3()
308 SM3_STEP2(25, H,A,B,C,D,E,F,G, SM3_cnt_loc[25], W); in UpdateSM3()
309 SM3_STEP2(26, G,H,A,B,C,D,E,F, SM3_cnt_loc[26], W); in UpdateSM3()
310 SM3_STEP2(27, F,G,H,A,B,C,D,E, SM3_cnt_loc[27], W); in UpdateSM3()
311 SM3_STEP2(28, E,F,G,H,A,B,C,D, SM3_cnt_loc[28], W); in UpdateSM3()
312 SM3_STEP2(29, D,E,F,G,H,A,B,C, SM3_cnt_loc[29], W); in UpdateSM3()
313 SM3_STEP2(30, C,D,E,F,G,H,A,B, SM3_cnt_loc[30], W); in UpdateSM3()
314 SM3_STEP2(31, B,C,D,E,F,G,H,A, SM3_cnt_loc[31], W); in UpdateSM3()
316 SM3_STEP2(32, A,B,C,D,E,F,G,H, SM3_cnt_loc[32], W); in UpdateSM3()
317 SM3_STEP2(33, H,A,B,C,D,E,F,G, SM3_cnt_loc[33], W); in UpdateSM3()
318 SM3_STEP2(34, G,H,A,B,C,D,E,F, SM3_cnt_loc[34], W); in UpdateSM3()
319 SM3_STEP2(35, F,G,H,A,B,C,D,E, SM3_cnt_loc[35], W); in UpdateSM3()
320 SM3_STEP2(36, E,F,G,H,A,B,C,D, SM3_cnt_loc[36], W); in UpdateSM3()
321 SM3_STEP2(37, D,E,F,G,H,A,B,C, SM3_cnt_loc[37], W); in UpdateSM3()
322 SM3_STEP2(38, C,D,E,F,G,H,A,B, SM3_cnt_loc[38], W); in UpdateSM3()
323 SM3_STEP2(39, B,C,D,E,F,G,H,A, SM3_cnt_loc[39], W); in UpdateSM3()
325 SM3_STEP2(40, A,B,C,D,E,F,G,H, SM3_cnt_loc[40], W); in UpdateSM3()
326 SM3_STEP2(41, H,A,B,C,D,E,F,G, SM3_cnt_loc[41], W); in UpdateSM3()
327 SM3_STEP2(42, G,H,A,B,C,D,E,F, SM3_cnt_loc[42], W); in UpdateSM3()
328 SM3_STEP2(43, F,G,H,A,B,C,D,E, SM3_cnt_loc[43], W); in UpdateSM3()
329 SM3_STEP2(44, E,F,G,H,A,B,C,D, SM3_cnt_loc[44], W); in UpdateSM3()
330 SM3_STEP2(45, D,E,F,G,H,A,B,C, SM3_cnt_loc[45], W); in UpdateSM3()
331 SM3_STEP2(46, C,D,E,F,G,H,A,B, SM3_cnt_loc[46], W); in UpdateSM3()
332 SM3_STEP2(47, B,C,D,E,F,G,H,A, SM3_cnt_loc[47], W); in UpdateSM3()
334 SM3_STEP2(48, A,B,C,D,E,F,G,H, SM3_cnt_loc[48], W); in UpdateSM3()
335 SM3_STEP2(49, H,A,B,C,D,E,F,G, SM3_cnt_loc[49], W); in UpdateSM3()
336 SM3_STEP2(50, G,H,A,B,C,D,E,F, SM3_cnt_loc[50], W); in UpdateSM3()
337 SM3_STEP2(51, F,G,H,A,B,C,D,E, SM3_cnt_loc[51], W); in UpdateSM3()
338 SM3_STEP3(52, E,F,G,H,A,B,C,D, SM3_cnt_loc[52], W); in UpdateSM3()
339 SM3_STEP3(53, D,E,F,G,H,A,B,C, SM3_cnt_loc[53], W); in UpdateSM3()
340 SM3_STEP3(54, C,D,E,F,G,H,A,B, SM3_cnt_loc[54], W); in UpdateSM3()
341 SM3_STEP3(55, B,C,D,E,F,G,H,A, SM3_cnt_loc[55], W); in UpdateSM3()
343 SM3_STEP3(56, A,B,C,D,E,F,G,H, SM3_cnt_loc[56], W); in UpdateSM3()
344 SM3_STEP3(57, H,A,B,C,D,E,F,G, SM3_cnt_loc[57], W); in UpdateSM3()
345 SM3_STEP3(58, G,H,A,B,C,D,E,F, SM3_cnt_loc[58], W); in UpdateSM3()
346 SM3_STEP3(59, F,G,H,A,B,C,D,E, SM3_cnt_loc[59], W); in UpdateSM3()
347 SM3_STEP3(60, E,F,G,H,A,B,C,D, SM3_cnt_loc[60], W); in UpdateSM3()
348 SM3_STEP3(61, D,E,F,G,H,A,B,C, SM3_cnt_loc[61], W); in UpdateSM3()
349 SM3_STEP3(62, C,D,E,F,G,H,A,B, SM3_cnt_loc[62], W); in UpdateSM3()
350 SM3_STEP3(63, B,C,D,E,F,G,H,A, SM3_cnt_loc[63], W); in UpdateSM3()