Lines Matching refs:b

243 #define FF(a, b, c, d, x, s, ac) { \  argument
244 (a) += F ((b), (c), (d)) + (x) + (uint32_t)(ac); \
246 (a) += (b); \
248 #define GG(a, b, c, d, x, s, ac) { \ argument
249 (a) += G ((b), (c), (d)) + (x) + (uint32_t)(ac); \
251 (a) += (b); \
253 #define HH(a, b, c, d, x, s, ac) { \ argument
254 (a) += H ((b), (c), (d)) + (x) + (uint32_t)(ac); \
256 (a) += (b); \
258 #define II(a, b, c, d, x, s, ac) { \ argument
259 (a) += I ((b), (c), (d)) + (x) + (uint32_t)(ac); \
261 (a) += (b); \
358 uint32_t a = state[0], b = state[1], c = state[2], d = state[3], x[16]; local
363 FF(a, b, c, d, x[0], S11, 0xd76aa478); /* 1 */
364 FF(d, a, b, c, x[1], S12, 0xe8c7b756); /* 2 */
365 FF(c, d, a, b, x[2], S13, 0x242070db); /* 3 */
366 FF(b, c, d, a, x[3], S14, 0xc1bdceee); /* 4 */
367 FF(a, b, c, d, x[4], S11, 0xf57c0faf); /* 5 */
368 FF(d, a, b, c, x[5], S12, 0x4787c62a); /* 6 */
369 FF(c, d, a, b, x[6], S13, 0xa8304613); /* 7 */
370 FF(b, c, d, a, x[7], S14, 0xfd469501); /* 8 */
371 FF(a, b, c, d, x[8], S11, 0x698098d8); /* 9 */
372 FF(d, a, b, c, x[9], S12, 0x8b44f7af); /* 10 */
373 FF(c, d, a, b, x[10], S13, 0xffff5bb1); /* 11 */
374 FF(b, c, d, a, x[11], S14, 0x895cd7be); /* 12 */
375 FF(a, b, c, d, x[12], S11, 0x6b901122); /* 13 */
376 FF(d, a, b, c, x[13], S12, 0xfd987193); /* 14 */
377 FF(c, d, a, b, x[14], S13, 0xa679438e); /* 15 */
378 FF(b, c, d, a, x[15], S14, 0x49b40821); /* 16 */
381 GG(a, b, c, d, x[1], S21, 0xf61e2562); /* 17 */
382 GG(d, a, b, c, x[6], S22, 0xc040b340); /* 18 */
383 GG(c, d, a, b, x[11], S23, 0x265e5a51); /* 19 */
384 GG(b, c, d, a, x[0], S24, 0xe9b6c7aa); /* 20 */
385 GG(a, b, c, d, x[5], S21, 0xd62f105d); /* 21 */
386 GG(d, a, b, c, x[10], S22, 0x2441453); /* 22 */
387 GG(c, d, a, b, x[15], S23, 0xd8a1e681); /* 23 */
388 GG(b, c, d, a, x[4], S24, 0xe7d3fbc8); /* 24 */
389 GG(a, b, c, d, x[9], S21, 0x21e1cde6); /* 25 */
390 GG(d, a, b, c, x[14], S22, 0xc33707d6); /* 26 */
391 GG(c, d, a, b, x[3], S23, 0xf4d50d87); /* 27 */
392 GG(b, c, d, a, x[8], S24, 0x455a14ed); /* 28 */
393 GG(a, b, c, d, x[13], S21, 0xa9e3e905); /* 29 */
394 GG(d, a, b, c, x[2], S22, 0xfcefa3f8); /* 30 */
395 GG(c, d, a, b, x[7], S23, 0x676f02d9); /* 31 */
396 GG(b, c, d, a, x[12], S24, 0x8d2a4c8a); /* 32 */
399 HH(a, b, c, d, x[5], S31, 0xfffa3942); /* 33 */
400 HH(d, a, b, c, x[8], S32, 0x8771f681); /* 34 */
401 HH(c, d, a, b, x[11], S33, 0x6d9d6122); /* 35 */
402 HH(b, c, d, a, x[14], S34, 0xfde5380c); /* 36 */
403 HH(a, b, c, d, x[1], S31, 0xa4beea44); /* 37 */
404 HH(d, a, b, c, x[4], S32, 0x4bdecfa9); /* 38 */
405 HH(c, d, a, b, x[7], S33, 0xf6bb4b60); /* 39 */
406 HH(b, c, d, a, x[10], S34, 0xbebfbc70); /* 40 */
407 HH(a, b, c, d, x[13], S31, 0x289b7ec6); /* 41 */
408 HH(d, a, b, c, x[0], S32, 0xeaa127fa); /* 42 */
409 HH(c, d, a, b, x[3], S33, 0xd4ef3085); /* 43 */
410 HH(b, c, d, a, x[6], S34, 0x4881d05); /* 44 */
411 HH(a, b, c, d, x[9], S31, 0xd9d4d039); /* 45 */
412 HH(d, a, b, c, x[12], S32, 0xe6db99e5); /* 46 */
413 HH(c, d, a, b, x[15], S33, 0x1fa27cf8); /* 47 */
414 HH(b, c, d, a, x[2], S34, 0xc4ac5665); /* 48 */
417 II(a, b, c, d, x[0], S41, 0xf4292244); /* 49 */
418 II(d, a, b, c, x[7], S42, 0x432aff97); /* 50 */
419 II(c, d, a, b, x[14], S43, 0xab9423a7); /* 51 */
420 II(b, c, d, a, x[5], S44, 0xfc93a039); /* 52 */
421 II(a, b, c, d, x[12], S41, 0x655b59c3); /* 53 */
422 II(d, a, b, c, x[3], S42, 0x8f0ccc92); /* 54 */
423 II(c, d, a, b, x[10], S43, 0xffeff47d); /* 55 */
424 II(b, c, d, a, x[1], S44, 0x85845dd1); /* 56 */
425 II(a, b, c, d, x[8], S41, 0x6fa87e4f); /* 57 */
426 II(d, a, b, c, x[15], S42, 0xfe2ce6e0); /* 58 */
427 II(c, d, a, b, x[6], S43, 0xa3014314); /* 59 */
428 II(b, c, d, a, x[13], S44, 0x4e0811a1); /* 60 */
429 II(a, b, c, d, x[4], S41, 0xf7537e82); /* 61 */
430 II(d, a, b, c, x[11], S42, 0xbd3af235); /* 62 */
431 II(c, d, a, b, x[2], S43, 0x2ad7d2bb); /* 63 */
432 II(b, c, d, a, x[9], S44, 0xeb86d391); /* 64 */
435 state[1] += b;
454 #define MD4_R1(a,b,c,d,k,s) a = ROTL32(s, a + MD4_F(b,c,d) + x[k]) argument
455 #define MD4_R2(a,b,c,d,k,s) a = ROTL32(s, a + MD4_G(b,c,d) + x[k] + 0x5A827999) argument
456 #define MD4_R3(a,b,c,d,k,s) a = ROTL32(s, a + MD4_H(b,c,d) + x[k] + 0x6ED9EBA1) argument
460 uint32_t a = state[0], b = state[1], c = state[2], d = state[3], x[16]; in MD4Transform() local
465 MD4_R1(a,b,c,d, 0, 3); in MD4Transform()
466 MD4_R1(d,a,b,c, 1, 7); in MD4Transform()
467 MD4_R1(c,d,a,b, 2,11); in MD4Transform()
468 MD4_R1(b,c,d,a, 3,19); in MD4Transform()
469 MD4_R1(a,b,c,d, 4, 3); in MD4Transform()
470 MD4_R1(d,a,b,c, 5, 7); in MD4Transform()
471 MD4_R1(c,d,a,b, 6,11); in MD4Transform()
472 MD4_R1(b,c,d,a, 7,19); in MD4Transform()
473 MD4_R1(a,b,c,d, 8, 3); in MD4Transform()
474 MD4_R1(d,a,b,c, 9, 7); in MD4Transform()
475 MD4_R1(c,d,a,b,10,11); in MD4Transform()
476 MD4_R1(b,c,d,a,11,19); in MD4Transform()
477 MD4_R1(a,b,c,d,12, 3); in MD4Transform()
478 MD4_R1(d,a,b,c,13, 7); in MD4Transform()
479 MD4_R1(c,d,a,b,14,11); in MD4Transform()
480 MD4_R1(b,c,d,a,15,19); in MD4Transform()
483 MD4_R2(a,b,c,d, 0, 3); in MD4Transform()
484 MD4_R2(d,a,b,c, 4, 5); in MD4Transform()
485 MD4_R2(c,d,a,b, 8, 9); in MD4Transform()
486 MD4_R2(b,c,d,a,12,13); in MD4Transform()
487 MD4_R2(a,b,c,d, 1, 3); in MD4Transform()
488 MD4_R2(d,a,b,c, 5, 5); in MD4Transform()
489 MD4_R2(c,d,a,b, 9, 9); in MD4Transform()
490 MD4_R2(b,c,d,a,13,13); in MD4Transform()
491 MD4_R2(a,b,c,d, 2, 3); in MD4Transform()
492 MD4_R2(d,a,b,c, 6, 5); in MD4Transform()
493 MD4_R2(c,d,a,b,10, 9); in MD4Transform()
494 MD4_R2(b,c,d,a,14,13); in MD4Transform()
495 MD4_R2(a,b,c,d, 3, 3); in MD4Transform()
496 MD4_R2(d,a,b,c, 7, 5); in MD4Transform()
497 MD4_R2(c,d,a,b,11, 9); in MD4Transform()
498 MD4_R2(b,c,d,a,15,13); in MD4Transform()
501 MD4_R3(a,b,c,d, 0, 3); in MD4Transform()
502 MD4_R3(d,a,b,c, 8, 9); in MD4Transform()
503 MD4_R3(c,d,a,b, 4,11); in MD4Transform()
504 MD4_R3(b,c,d,a,12,15); in MD4Transform()
505 MD4_R3(a,b,c,d, 2, 3); in MD4Transform()
506 MD4_R3(d,a,b,c,10, 9); in MD4Transform()
507 MD4_R3(c,d,a,b, 6,11); in MD4Transform()
508 MD4_R3(b,c,d,a,14,15); in MD4Transform()
509 MD4_R3(a,b,c,d, 1, 3); in MD4Transform()
510 MD4_R3(d,a,b,c, 9, 9); in MD4Transform()
511 MD4_R3(c,d,a,b, 5,11); in MD4Transform()
512 MD4_R3(b,c,d,a,13,15); in MD4Transform()
513 MD4_R3(a,b,c,d, 3, 3); in MD4Transform()
514 MD4_R3(d,a,b,c,11, 9); in MD4Transform()
515 MD4_R3(c,d,a,b, 7,11); in MD4Transform()
516 MD4_R3(b,c,d,a,15,15); in MD4Transform()
519 state[1] += b; in MD4Transform()