Lines Matching refs:b

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