Lines Matching refs:j
184 #define ROLS(j, x) (((x) << S[j]) | ((x) >> (32 - S[j]))) argument
185 #define ROLSS(j, x) (((x) << SS[j]) | ((x) >> (32 - SS[j]))) argument
194 unsigned int i, j; in RIPEMDDecode() local
196 for (i = 0, j = 0; j < len; i++, j += 4) in RIPEMDDecode()
197 output[i] = ((uint32_t) input[j + 0]) | (((uint32_t) input[j + 1]) << 8) | in RIPEMDDecode()
198 (((uint32_t) input[j + 2]) << 16) | (((uint32_t) input[j + 3]) << 24); in RIPEMDDecode()
210 int j; in RIPEMD128Transform() local
214 for(j = 0; j < 16; j++) { in RIPEMD128Transform()
215 tmp = ROLS( j, a + F0(b, c, d) + x[R[j]] + K(j)); in RIPEMD128Transform()
217 tmp = ROLSS(j, aa + F3(bb, cc, dd) + x[RR[j]] + KK(j)); in RIPEMD128Transform()
221 for(j = 16; j < 32; j++) { in RIPEMD128Transform()
222 tmp = ROLS( j, a + F1(b, c, d) + x[R[j]] + K(j)); in RIPEMD128Transform()
224 tmp = ROLSS(j, aa + F2(bb, cc, dd) + x[RR[j]] + KK(j)); in RIPEMD128Transform()
228 for(j = 32; j < 48; j++) { in RIPEMD128Transform()
229 tmp = ROLS( j, a + F2(b, c, d) + x[R[j]] + K(j)); in RIPEMD128Transform()
231 tmp = ROLSS(j, aa + F1(bb, cc, dd) + x[RR[j]] + KK(j)); in RIPEMD128Transform()
235 for(j = 48; j < 64; j++) { in RIPEMD128Transform()
236 tmp = ROLS( j, a + F3(b, c, d) + x[R[j]] + K(j)); in RIPEMD128Transform()
238 tmp = ROLSS(j, aa + F0(bb, cc, dd) + x[RR[j]] + KK(j)); in RIPEMD128Transform()
301 int j; in RIPEMD256Transform() local
305 for(j = 0; j < 16; j++) { in RIPEMD256Transform()
306 tmp = ROLS( j, a + F0(b, c, d) + x[R[j]] + K(j)); in RIPEMD256Transform()
308 tmp = ROLSS(j, aa + F3(bb, cc, dd) + x[RR[j]] + KK(j)); in RIPEMD256Transform()
313 for(j = 16; j < 32; j++) { in RIPEMD256Transform()
314 tmp = ROLS( j, a + F1(b, c, d) + x[R[j]] + K(j)); in RIPEMD256Transform()
316 tmp = ROLSS(j, aa + F2(bb, cc, dd) + x[RR[j]] + KK(j)); in RIPEMD256Transform()
321 for(j = 32; j < 48; j++) { in RIPEMD256Transform()
322 tmp = ROLS( j, a + F2(b, c, d) + x[R[j]] + K(j)); in RIPEMD256Transform()
324 tmp = ROLSS(j, aa + F1(bb, cc, dd) + x[RR[j]] + KK(j)); in RIPEMD256Transform()
329 for(j = 48; j < 64; j++) { in RIPEMD256Transform()
330 tmp = ROLS( j, a + F3(b, c, d) + x[R[j]] + K(j)); in RIPEMD256Transform()
332 tmp = ROLSS(j, aa + F0(bb, cc, dd) + x[RR[j]] + KK(j)); in RIPEMD256Transform()
399 int j; in RIPEMD160Transform() local
403 for(j = 0; j < 16; j++) { in RIPEMD160Transform()
404 tmp = ROLS( j, a + F0(b, c, d) + x[R[j]] + K(j)) + e; in RIPEMD160Transform()
406 tmp = ROLSS(j, aa + F4(bb, cc, dd) + x[RR[j]] + KK160(j)) + ee; in RIPEMD160Transform()
410 for(j = 16; j < 32; j++) { in RIPEMD160Transform()
411 tmp = ROLS( j, a + F1(b, c, d) + x[R[j]] + K(j)) + e; in RIPEMD160Transform()
413 tmp = ROLSS(j, aa + F3(bb, cc, dd) + x[RR[j]] + KK160(j)) + ee; in RIPEMD160Transform()
417 for(j = 32; j < 48; j++) { in RIPEMD160Transform()
418 tmp = ROLS( j, a + F2(b, c, d) + x[R[j]] + K(j)) + e; in RIPEMD160Transform()
420 tmp = ROLSS(j, aa + F2(bb, cc, dd) + x[RR[j]] + KK160(j)) + ee; in RIPEMD160Transform()
424 for(j = 48; j < 64; j++) { in RIPEMD160Transform()
425 tmp = ROLS( j, a + F3(b, c, d) + x[R[j]] + K(j)) + e; in RIPEMD160Transform()
427 tmp = ROLSS(j, aa + F1(bb, cc, dd) + x[RR[j]] + KK160(j)) + ee; in RIPEMD160Transform()
431 for(j = 64; j < 80; j++) { in RIPEMD160Transform()
432 tmp = ROLS( j, a + F4(b, c, d) + x[R[j]] + K(j)) + e; in RIPEMD160Transform()
434 tmp = ROLSS(j, aa + F0(bb, cc, dd) + x[RR[j]] + KK160(j)) + ee; in RIPEMD160Transform()
498 int j; in RIPEMD320Transform() local
502 for(j = 0; j < 16; j++) { in RIPEMD320Transform()
503 tmp = ROLS( j, a + F0(b, c, d) + x[R[j]] + K(j)) + e; in RIPEMD320Transform()
505 tmp = ROLSS(j, aa + F4(bb, cc, dd) + x[RR[j]] + KK160(j)) + ee; in RIPEMD320Transform()
510 for(j = 16; j < 32; j++) { in RIPEMD320Transform()
511 tmp = ROLS( j, a + F1(b, c, d) + x[R[j]] + K(j)) + e; in RIPEMD320Transform()
513 tmp = ROLSS(j, aa + F3(bb, cc, dd) + x[RR[j]] + KK160(j)) + ee; in RIPEMD320Transform()
518 for(j = 32; j < 48; j++) { in RIPEMD320Transform()
519 tmp = ROLS( j, a + F2(b, c, d) + x[R[j]] + K(j)) + e; in RIPEMD320Transform()
521 tmp = ROLSS(j, aa + F2(bb, cc, dd) + x[RR[j]] + KK160(j)) + ee; in RIPEMD320Transform()
526 for(j = 48; j < 64; j++) { in RIPEMD320Transform()
527 tmp = ROLS( j, a + F3(b, c, d) + x[R[j]] + K(j)) + e; in RIPEMD320Transform()
529 tmp = ROLSS(j, aa + F1(bb, cc, dd) + x[RR[j]] + KK160(j)) + ee; in RIPEMD320Transform()
534 for(j = 64; j < 80; j++) { in RIPEMD320Transform()
535 tmp = ROLS( j, a + F4(b, c, d) + x[R[j]] + K(j)) + e; in RIPEMD320Transform()
537 tmp = ROLSS(j, aa + F0(bb, cc, dd) + x[RR[j]] + KK160(j)) + ee; in RIPEMD320Transform()
611 unsigned int i, j; in RIPEMDEncode() local
613 for (i = 0, j = 0; j < len; i++, j += 4) { in RIPEMDEncode()
614 output[j + 3] = (unsigned char) ((input[i] >> 24) & 0xff); in RIPEMDEncode()
615 output[j + 2] = (unsigned char) ((input[i] >> 16) & 0xff); in RIPEMDEncode()
616 output[j + 1] = (unsigned char) ((input[i] >> 8) & 0xff); in RIPEMDEncode()
617 output[j + 0] = (unsigned char) (input[i] & 0xff); in RIPEMDEncode()