Lines Matching refs:j

198 #define ROLS(j, x)	(((x) << S[j])  | ((x) >> (32 - S[j])))  argument
199 #define ROLSS(j, x) (((x) << SS[j]) | ((x) >> (32 - SS[j]))) argument
208 unsigned int i, j; in RIPEMDDecode() local
210 for (i = 0, j = 0; j < len; i++, j += 4) in RIPEMDDecode()
211 output[i] = ((uint32_t) input[j + 0]) | (((uint32_t) input[j + 1]) << 8) | in RIPEMDDecode()
212 (((uint32_t) input[j + 2]) << 16) | (((uint32_t) input[j + 3]) << 24); in RIPEMDDecode()
224 int j; in RIPEMD128Transform() local
228 for(j = 0; j < 16; j++) { in RIPEMD128Transform()
229 tmp = ROLS( j, a + F0(b, c, d) + x[R[j]] + K(j)); in RIPEMD128Transform()
231 tmp = ROLSS(j, aa + F3(bb, cc, dd) + x[RR[j]] + KK(j)); in RIPEMD128Transform()
235 for(j = 16; j < 32; j++) { in RIPEMD128Transform()
236 tmp = ROLS( j, a + F1(b, c, d) + x[R[j]] + K(j)); in RIPEMD128Transform()
238 tmp = ROLSS(j, aa + F2(bb, cc, dd) + x[RR[j]] + KK(j)); in RIPEMD128Transform()
242 for(j = 32; j < 48; j++) { in RIPEMD128Transform()
243 tmp = ROLS( j, a + F2(b, c, d) + x[R[j]] + K(j)); in RIPEMD128Transform()
245 tmp = ROLSS(j, aa + F1(bb, cc, dd) + x[RR[j]] + KK(j)); in RIPEMD128Transform()
249 for(j = 48; j < 64; j++) { in RIPEMD128Transform()
250 tmp = ROLS( j, a + F3(b, c, d) + x[R[j]] + K(j)); in RIPEMD128Transform()
252 tmp = ROLSS(j, aa + F0(bb, cc, dd) + x[RR[j]] + KK(j)); in RIPEMD128Transform()
316 int j; in RIPEMD256Transform() local
320 for(j = 0; j < 16; j++) { in RIPEMD256Transform()
321 tmp = ROLS( j, a + F0(b, c, d) + x[R[j]] + K(j)); in RIPEMD256Transform()
323 tmp = ROLSS(j, aa + F3(bb, cc, dd) + x[RR[j]] + KK(j)); in RIPEMD256Transform()
328 for(j = 16; j < 32; j++) { in RIPEMD256Transform()
329 tmp = ROLS( j, a + F1(b, c, d) + x[R[j]] + K(j)); in RIPEMD256Transform()
331 tmp = ROLSS(j, aa + F2(bb, cc, dd) + x[RR[j]] + KK(j)); in RIPEMD256Transform()
336 for(j = 32; j < 48; j++) { in RIPEMD256Transform()
337 tmp = ROLS( j, a + F2(b, c, d) + x[R[j]] + K(j)); in RIPEMD256Transform()
339 tmp = ROLSS(j, aa + F1(bb, cc, dd) + x[RR[j]] + KK(j)); in RIPEMD256Transform()
344 for(j = 48; j < 64; j++) { in RIPEMD256Transform()
345 tmp = ROLS( j, a + F3(b, c, d) + x[R[j]] + K(j)); in RIPEMD256Transform()
347 tmp = ROLSS(j, aa + F0(bb, cc, dd) + x[RR[j]] + KK(j)); in RIPEMD256Transform()
415 int j; in RIPEMD160Transform() local
419 for(j = 0; j < 16; j++) { in RIPEMD160Transform()
420 tmp = ROLS( j, a + F0(b, c, d) + x[R[j]] + K(j)) + e; in RIPEMD160Transform()
422 tmp = ROLSS(j, aa + F4(bb, cc, dd) + x[RR[j]] + KK160(j)) + ee; in RIPEMD160Transform()
426 for(j = 16; j < 32; j++) { in RIPEMD160Transform()
427 tmp = ROLS( j, a + F1(b, c, d) + x[R[j]] + K(j)) + e; in RIPEMD160Transform()
429 tmp = ROLSS(j, aa + F3(bb, cc, dd) + x[RR[j]] + KK160(j)) + ee; in RIPEMD160Transform()
433 for(j = 32; j < 48; j++) { in RIPEMD160Transform()
434 tmp = ROLS( j, a + F2(b, c, d) + x[R[j]] + K(j)) + e; in RIPEMD160Transform()
436 tmp = ROLSS(j, aa + F2(bb, cc, dd) + x[RR[j]] + KK160(j)) + ee; in RIPEMD160Transform()
440 for(j = 48; j < 64; j++) { in RIPEMD160Transform()
441 tmp = ROLS( j, a + F3(b, c, d) + x[R[j]] + K(j)) + e; in RIPEMD160Transform()
443 tmp = ROLSS(j, aa + F1(bb, cc, dd) + x[RR[j]] + KK160(j)) + ee; in RIPEMD160Transform()
447 for(j = 64; j < 80; j++) { in RIPEMD160Transform()
448 tmp = ROLS( j, a + F4(b, c, d) + x[R[j]] + K(j)) + e; in RIPEMD160Transform()
450 tmp = ROLSS(j, aa + F0(bb, cc, dd) + x[RR[j]] + KK160(j)) + ee; in RIPEMD160Transform()
515 int j; in RIPEMD320Transform() local
519 for(j = 0; j < 16; j++) { in RIPEMD320Transform()
520 tmp = ROLS( j, a + F0(b, c, d) + x[R[j]] + K(j)) + e; in RIPEMD320Transform()
522 tmp = ROLSS(j, aa + F4(bb, cc, dd) + x[RR[j]] + KK160(j)) + ee; in RIPEMD320Transform()
527 for(j = 16; j < 32; j++) { in RIPEMD320Transform()
528 tmp = ROLS( j, a + F1(b, c, d) + x[R[j]] + K(j)) + e; in RIPEMD320Transform()
530 tmp = ROLSS(j, aa + F3(bb, cc, dd) + x[RR[j]] + KK160(j)) + ee; in RIPEMD320Transform()
535 for(j = 32; j < 48; j++) { in RIPEMD320Transform()
536 tmp = ROLS( j, a + F2(b, c, d) + x[R[j]] + K(j)) + e; in RIPEMD320Transform()
538 tmp = ROLSS(j, aa + F2(bb, cc, dd) + x[RR[j]] + KK160(j)) + ee; in RIPEMD320Transform()
543 for(j = 48; j < 64; j++) { in RIPEMD320Transform()
544 tmp = ROLS( j, a + F3(b, c, d) + x[R[j]] + K(j)) + e; in RIPEMD320Transform()
546 tmp = ROLSS(j, aa + F1(bb, cc, dd) + x[RR[j]] + KK160(j)) + ee; in RIPEMD320Transform()
551 for(j = 64; j < 80; j++) { in RIPEMD320Transform()
552 tmp = ROLS( j, a + F4(b, c, d) + x[R[j]] + K(j)) + e; in RIPEMD320Transform()
554 tmp = ROLSS(j, aa + F0(bb, cc, dd) + x[RR[j]] + KK160(j)) + ee; in RIPEMD320Transform()
629 unsigned int i, j; in RIPEMDEncode() local
631 for (i = 0, j = 0; j < len; i++, j += 4) { in RIPEMDEncode()
632 output[j + 3] = (unsigned char) ((input[i] >> 24) & 0xff); in RIPEMDEncode()
633 output[j + 2] = (unsigned char) ((input[i] >> 16) & 0xff); in RIPEMDEncode()
634 output[j + 1] = (unsigned char) ((input[i] >> 8) & 0xff); in RIPEMDEncode()
635 output[j + 0] = (unsigned char) (input[i] & 0xff); in RIPEMDEncode()