Lines Matching +full:2 +full:p5
77 …u64b_t kw[WCNT+4+RCNT*2]; /* key schedule words : chaining vars + tweak + "rotat… in Skein_256_Process_Block()
85 Xptr[0] = &X0; Xptr[1] = &X1; Xptr[2] = &X2; Xptr[3] = &X3; in Skein_256_Process_Block()
91 /* this implementation only supports 2**64 input bytes (no carry out here) */ in Skein_256_Process_Block()
97 ks[2] = ctx->X[2]; in Skein_256_Process_Block()
99 ks[4] = ks[0] ^ ks[1] ^ ks[2] ^ ks[3] ^ SKEIN_KS_PARITY; in Skein_256_Process_Block()
101 ts[2] = ts[0] ^ ts[1]; in Skein_256_Process_Block()
109 X2 = w[2] + ks[2] + ts[1]; in Skein_256_Process_Block()
129 X1 += ks[((R)+2) % 5] + ts[((R)+1) % 3]; \ in Skein_256_Process_Block()
130 X2 += ks[((R)+3) % 5] + ts[((R)+2) % 3]; \ in Skein_256_Process_Block()
141 X2 += ks[r+(R)+2] + ts[r+(R)+1]; \ in Skein_256_Process_Block()
144 ts[r + (R)+2 ] = ts[r+(R)-1]; \ in Skein_256_Process_Block()
147 for (r=1;r < 2*RCNT;r+=2*SKEIN_UNROLL_256) /* loop thru it */ in Skein_256_Process_Block()
151 R256(0,1,2,3,R_256_0,8*(R) + 1); \ in Skein_256_Process_Block()
152 R256(0,3,2,1,R_256_1,8*(R) + 2); \ in Skein_256_Process_Block()
153 R256(0,1,2,3,R_256_2,8*(R) + 3); \ in Skein_256_Process_Block()
154 R256(0,3,2,1,R_256_3,8*(R) + 4); \ in Skein_256_Process_Block()
155 I256(2*(R)); \ in Skein_256_Process_Block()
156 R256(0,1,2,3,R_256_4,8*(R) + 5); \ in Skein_256_Process_Block()
157 R256(0,3,2,1,R_256_5,8*(R) + 6); \ in Skein_256_Process_Block()
158 R256(0,1,2,3,R_256_6,8*(R) + 7); \ in Skein_256_Process_Block()
159 R256(0,3,2,1,R_256_7,8*(R) + 8); \ in Skein_256_Process_Block()
160 I256(2*(R)+1); in Skein_256_Process_Block()
169 #if R256_Unroll_R( 2) in Skein_256_Process_Block()
170 R256_8_rounds( 2); in Skein_256_Process_Block()
215 ctx->X[2] = X2 ^ w[2]; in Skein_256_Process_Block()
262 …u64b_t kw[WCNT+4+RCNT*2]; /* key schedule words : chaining vars + tweak + "rotat… in Skein_512_Process_Block()
270 Xptr[0] = &X0; Xptr[1] = &X1; Xptr[2] = &X2; Xptr[3] = &X3; in Skein_512_Process_Block()
278 /* this implementation only supports 2**64 input bytes (no carry out here) */ in Skein_512_Process_Block()
284 ks[2] = ctx->X[2]; in Skein_512_Process_Block()
290 ks[8] = ks[0] ^ ks[1] ^ ks[2] ^ ks[3] ^ in Skein_512_Process_Block()
293 ts[2] = ts[0] ^ ts[1]; in Skein_512_Process_Block()
301 X2 = w[2] + ks[2]; in Skein_512_Process_Block()
312 #define Round512(p0,p1,p2,p3,p4,p5,p6,p7,ROT,rNum) \ in Skein_512_Process_Block() argument
315 X##p4 += X##p5; X##p5 = RotL_64(X##p5,ROT##_2); X##p5 ^= X##p4; \ in Skein_512_Process_Block()
319 #define R512(p0,p1,p2,p3,p4,p5,p6,p7,ROT,rNum) /* unrolled */ \ in Skein_512_Process_Block() argument
320 Round512(p0,p1,p2,p3,p4,p5,p6,p7,ROT,rNum) \ in Skein_512_Process_Block()
325 X1 += ks[((R)+2) % 9]; \ in Skein_512_Process_Block()
330 X6 += ks[((R)+7) % 9] + ts[((R)+2) % 3]; \ in Skein_512_Process_Block()
334 #define R512(p0,p1,p2,p3,p4,p5,p6,p7,ROT,rNum) \ in Skein_512_Process_Block() argument
335 Round512(p0,p1,p2,p3,p4,p5,p6,p7,ROT,rNum) \ in Skein_512_Process_Block()
341 X2 += ks[r+(R)+2]; \ in Skein_512_Process_Block()
348 ts[r + (R)+2] = ts[r+(R)-1]; \ in Skein_512_Process_Block()
351 for (r=1;r < 2*RCNT;r+=2*SKEIN_UNROLL_512) /* loop thru it */ in Skein_512_Process_Block()
355 R512(0,1,2,3,4,5,6,7,R_512_0,8*(R)+ 1); \ in Skein_512_Process_Block()
356 R512(2,1,4,7,6,5,0,3,R_512_1,8*(R)+ 2); \ in Skein_512_Process_Block()
357 R512(4,1,6,3,0,5,2,7,R_512_2,8*(R)+ 3); \ in Skein_512_Process_Block()
358 R512(6,1,0,7,2,5,4,3,R_512_3,8*(R)+ 4); \ in Skein_512_Process_Block()
359 I512(2*(R)); \ in Skein_512_Process_Block()
360 R512(0,1,2,3,4,5,6,7,R_512_4,8*(R)+ 5); \ in Skein_512_Process_Block()
361 R512(2,1,4,7,6,5,0,3,R_512_5,8*(R)+ 6); \ in Skein_512_Process_Block()
362 R512(4,1,6,3,0,5,2,7,R_512_6,8*(R)+ 7); \ in Skein_512_Process_Block()
363 R512(6,1,0,7,2,5,4,3,R_512_7,8*(R)+ 8); \ in Skein_512_Process_Block()
364 I512(2*(R)+1); /* and key injection */ in Skein_512_Process_Block()
373 #if R512_Unroll_R( 2) in Skein_512_Process_Block()
374 R512_8_rounds( 2); in Skein_512_Process_Block()
420 ctx->X[2] = X2 ^ w[2]; in Skein_512_Process_Block()
470 …u64b_t kw[WCNT+4+RCNT*2]; /* key schedule words : chaining vars + tweak + "rotat… in Skein1024_Process_Block()
480 Xptr[ 0] = &X00; Xptr[ 1] = &X01; Xptr[ 2] = &X02; Xptr[ 3] = &X03; in Skein1024_Process_Block()
490 /* this implementation only supports 2**64 input bytes (no carry out here) */ in Skein1024_Process_Block()
496 ks[ 2] = ctx->X[ 2]; in Skein1024_Process_Block()
510 ks[16] = ks[ 0] ^ ks[ 1] ^ ks[ 2] ^ ks[ 3] ^ in Skein1024_Process_Block()
515 ts[2] = ts[0] ^ ts[1]; in Skein1024_Process_Block()
523 X02 = w[ 2] + ks[ 2]; in Skein1024_Process_Block()
540 #define Round1024(p0,p1,p2,p3,p4,p5,p6,p7,p8,p9,pA,pB,pC,pD,pE,pF,ROT,rNum) \ in Skein1024_Process_Block() argument
543 X##p4 += X##p5; X##p5 = RotL_64(X##p5,ROT##_2); X##p5 ^= X##p4; \ in Skein1024_Process_Block()
551 #define R1024(p0,p1,p2,p3,p4,p5,p6,p7,p8,p9,pA,pB,pC,pD,pE,pF,ROT,rn) \ in Skein1024_Process_Block() argument
552 Round1024(p0,p1,p2,p3,p4,p5,p6,p7,p8,p9,pA,pB,pC,pD,pE,pF,ROT,rn) \ in Skein1024_Process_Block()
557 X01 += ks[((R)+ 2) % 17]; \ in Skein1024_Process_Block()
570 X14 += ks[((R)+15) % 17] + ts[((R)+2) % 3]; \ in Skein1024_Process_Block()
574 #define R1024(p0,p1,p2,p3,p4,p5,p6,p7,p8,p9,pA,pB,pC,pD,pE,pF,ROT,rn) \ in Skein1024_Process_Block() argument
575 Round1024(p0,p1,p2,p3,p4,p5,p6,p7,p8,p9,pA,pB,pC,pD,pE,pF,ROT,rn) \ in Skein1024_Process_Block()
581 X02 += ks[r+(R)+ 2]; \ in Skein1024_Process_Block()
596 ts[r + (R)+ 2] = ts[r+(R)-1]; \ in Skein1024_Process_Block()
599 for (r=1;r <= 2*RCNT;r+=2*SKEIN_UNROLL_1024) /* loop thru it */ in Skein1024_Process_Block()
604 R1024(00,09,02,13,06,11,04,15,10,07,12,03,14,05,08,01,R1024_1,8*(R) + 2); \ in Skein1024_Process_Block()
607 I1024(2*(R)); \ in Skein1024_Process_Block()
612 I1024(2*(R)+1); in Skein1024_Process_Block()
621 #if R1024_Unroll_R( 2) in Skein1024_Process_Block()
622 R1024_8_rounds( 2); in Skein1024_Process_Block()
668 ctx->X[ 2] = X02 ^ w[ 2]; in Skein1024_Process_Block()