Lines Matching refs:j
182 #define ROLS(j, x) (((x) << S[j]) | ((x) >> (32 - S[j]))) argument
183 #define ROLSS(j, x) (((x) << SS[j]) | ((x) >> (32 - SS[j]))) argument
192 unsigned int i, j; in RIPEMDDecode() local
194 for (i = 0, j = 0; j < len; i++, j += 4) in RIPEMDDecode()
195 output[i] = ((php_hash_uint32) input[j + 0]) | (((php_hash_uint32) input[j + 1]) << 8) | in RIPEMDDecode()
196 (((php_hash_uint32) input[j + 2]) << 16) | (((php_hash_uint32) input[j + 3]) << 24); in RIPEMDDecode()
208 int j; in RIPEMD128Transform() local
212 for(j = 0; j < 16; j++) { in RIPEMD128Transform()
213 tmp = ROLS( j, a + F0(b, c, d) + x[R[j]] + K(j)); in RIPEMD128Transform()
215 tmp = ROLSS(j, aa + F3(bb, cc, dd) + x[RR[j]] + KK(j)); in RIPEMD128Transform()
219 for(j = 16; j < 32; j++) { in RIPEMD128Transform()
220 tmp = ROLS( j, a + F1(b, c, d) + x[R[j]] + K(j)); in RIPEMD128Transform()
222 tmp = ROLSS(j, aa + F2(bb, cc, dd) + x[RR[j]] + KK(j)); in RIPEMD128Transform()
226 for(j = 32; j < 48; j++) { in RIPEMD128Transform()
227 tmp = ROLS( j, a + F2(b, c, d) + x[R[j]] + K(j)); in RIPEMD128Transform()
229 tmp = ROLSS(j, aa + F1(bb, cc, dd) + x[RR[j]] + KK(j)); in RIPEMD128Transform()
233 for(j = 48; j < 64; j++) { in RIPEMD128Transform()
234 tmp = ROLS( j, a + F3(b, c, d) + x[R[j]] + K(j)); in RIPEMD128Transform()
236 tmp = ROLSS(j, aa + F0(bb, cc, dd) + x[RR[j]] + KK(j)); in RIPEMD128Transform()
299 int j; in RIPEMD256Transform() local
303 for(j = 0; j < 16; j++) { in RIPEMD256Transform()
304 tmp = ROLS( j, a + F0(b, c, d) + x[R[j]] + K(j)); in RIPEMD256Transform()
306 tmp = ROLSS(j, aa + F3(bb, cc, dd) + x[RR[j]] + KK(j)); in RIPEMD256Transform()
311 for(j = 16; j < 32; j++) { in RIPEMD256Transform()
312 tmp = ROLS( j, a + F1(b, c, d) + x[R[j]] + K(j)); in RIPEMD256Transform()
314 tmp = ROLSS(j, aa + F2(bb, cc, dd) + x[RR[j]] + KK(j)); in RIPEMD256Transform()
319 for(j = 32; j < 48; j++) { in RIPEMD256Transform()
320 tmp = ROLS( j, a + F2(b, c, d) + x[R[j]] + K(j)); in RIPEMD256Transform()
322 tmp = ROLSS(j, aa + F1(bb, cc, dd) + x[RR[j]] + KK(j)); in RIPEMD256Transform()
327 for(j = 48; j < 64; j++) { in RIPEMD256Transform()
328 tmp = ROLS( j, a + F3(b, c, d) + x[R[j]] + K(j)); in RIPEMD256Transform()
330 tmp = ROLSS(j, aa + F0(bb, cc, dd) + x[RR[j]] + KK(j)); in RIPEMD256Transform()
397 int j; in RIPEMD160Transform() local
401 for(j = 0; j < 16; j++) { in RIPEMD160Transform()
402 tmp = ROLS( j, a + F0(b, c, d) + x[R[j]] + K(j)) + e; in RIPEMD160Transform()
404 tmp = ROLSS(j, aa + F4(bb, cc, dd) + x[RR[j]] + KK160(j)) + ee; in RIPEMD160Transform()
408 for(j = 16; j < 32; j++) { in RIPEMD160Transform()
409 tmp = ROLS( j, a + F1(b, c, d) + x[R[j]] + K(j)) + e; in RIPEMD160Transform()
411 tmp = ROLSS(j, aa + F3(bb, cc, dd) + x[RR[j]] + KK160(j)) + ee; in RIPEMD160Transform()
415 for(j = 32; j < 48; j++) { in RIPEMD160Transform()
416 tmp = ROLS( j, a + F2(b, c, d) + x[R[j]] + K(j)) + e; in RIPEMD160Transform()
418 tmp = ROLSS(j, aa + F2(bb, cc, dd) + x[RR[j]] + KK160(j)) + ee; in RIPEMD160Transform()
422 for(j = 48; j < 64; j++) { in RIPEMD160Transform()
423 tmp = ROLS( j, a + F3(b, c, d) + x[R[j]] + K(j)) + e; in RIPEMD160Transform()
425 tmp = ROLSS(j, aa + F1(bb, cc, dd) + x[RR[j]] + KK160(j)) + ee; in RIPEMD160Transform()
429 for(j = 64; j < 80; j++) { in RIPEMD160Transform()
430 tmp = ROLS( j, a + F4(b, c, d) + x[R[j]] + K(j)) + e; in RIPEMD160Transform()
432 tmp = ROLSS(j, aa + F0(bb, cc, dd) + x[RR[j]] + KK160(j)) + ee; in RIPEMD160Transform()
496 int j; in RIPEMD320Transform() local
500 for(j = 0; j < 16; j++) { in RIPEMD320Transform()
501 tmp = ROLS( j, a + F0(b, c, d) + x[R[j]] + K(j)) + e; in RIPEMD320Transform()
503 tmp = ROLSS(j, aa + F4(bb, cc, dd) + x[RR[j]] + KK160(j)) + ee; in RIPEMD320Transform()
508 for(j = 16; j < 32; j++) { in RIPEMD320Transform()
509 tmp = ROLS( j, a + F1(b, c, d) + x[R[j]] + K(j)) + e; in RIPEMD320Transform()
511 tmp = ROLSS(j, aa + F3(bb, cc, dd) + x[RR[j]] + KK160(j)) + ee; in RIPEMD320Transform()
516 for(j = 32; j < 48; j++) { in RIPEMD320Transform()
517 tmp = ROLS( j, a + F2(b, c, d) + x[R[j]] + K(j)) + e; in RIPEMD320Transform()
519 tmp = ROLSS(j, aa + F2(bb, cc, dd) + x[RR[j]] + KK160(j)) + ee; in RIPEMD320Transform()
524 for(j = 48; j < 64; j++) { in RIPEMD320Transform()
525 tmp = ROLS( j, a + F3(b, c, d) + x[R[j]] + K(j)) + e; in RIPEMD320Transform()
527 tmp = ROLSS(j, aa + F1(bb, cc, dd) + x[RR[j]] + KK160(j)) + ee; in RIPEMD320Transform()
532 for(j = 64; j < 80; j++) { in RIPEMD320Transform()
533 tmp = ROLS( j, a + F4(b, c, d) + x[R[j]] + K(j)) + e; in RIPEMD320Transform()
535 tmp = ROLSS(j, aa + F0(bb, cc, dd) + x[RR[j]] + KK160(j)) + ee; in RIPEMD320Transform()
609 unsigned int i, j; in RIPEMDEncode() local
611 for (i = 0, j = 0; j < len; i++, j += 4) { in RIPEMDEncode()
612 output[j + 3] = (unsigned char) ((input[i] >> 24) & 0xff); in RIPEMDEncode()
613 output[j + 2] = (unsigned char) ((input[i] >> 16) & 0xff); in RIPEMDEncode()
614 output[j + 1] = (unsigned char) ((input[i] >> 8) & 0xff); in RIPEMDEncode()
615 output[j + 0] = (unsigned char) (input[i] & 0xff); in RIPEMDEncode()