Lines Matching refs:d

203 #define MEMCPY_BCOPY(d,s,l)	memcpy((d), (s), (l))  argument
207 #define MEMCPY_BCOPY(d,s,l) bcopy((s), (d), (l)) argument
385 #define ROUND256_0_TO_15(a,b,c,d,e,f,g,h) \ argument
389 (d) += T1; \
396 #define ROUND256_0_TO_15(a,b,c,d,e,f,g,h) \ argument
399 (d) += T1; \
405 #define ROUND256(a,b,c,d,e,f,g,h) \ argument
412 (d) += T1; \
417 sha2_word32 a, b, c, d, e, f, g, h, s0, s1; in SHA256_Transform() local
427 d = context->state[3]; in SHA256_Transform()
436 ROUND256_0_TO_15(a,b,c,d,e,f,g,h); in SHA256_Transform()
437 ROUND256_0_TO_15(h,a,b,c,d,e,f,g); in SHA256_Transform()
438 ROUND256_0_TO_15(g,h,a,b,c,d,e,f); in SHA256_Transform()
439 ROUND256_0_TO_15(f,g,h,a,b,c,d,e); in SHA256_Transform()
440 ROUND256_0_TO_15(e,f,g,h,a,b,c,d); in SHA256_Transform()
441 ROUND256_0_TO_15(d,e,f,g,h,a,b,c); in SHA256_Transform()
442 ROUND256_0_TO_15(c,d,e,f,g,h,a,b); in SHA256_Transform()
443 ROUND256_0_TO_15(b,c,d,e,f,g,h,a); in SHA256_Transform()
448 ROUND256(a,b,c,d,e,f,g,h); in SHA256_Transform()
449 ROUND256(h,a,b,c,d,e,f,g); in SHA256_Transform()
450 ROUND256(g,h,a,b,c,d,e,f); in SHA256_Transform()
451 ROUND256(f,g,h,a,b,c,d,e); in SHA256_Transform()
452 ROUND256(e,f,g,h,a,b,c,d); in SHA256_Transform()
453 ROUND256(d,e,f,g,h,a,b,c); in SHA256_Transform()
454 ROUND256(c,d,e,f,g,h,a,b); in SHA256_Transform()
455 ROUND256(b,c,d,e,f,g,h,a); in SHA256_Transform()
462 context->state[3] += d; in SHA256_Transform()
469 a = b = c = d = e = f = g = h = T1 = 0; in SHA256_Transform()
475 sha2_word32 a, b, c, d, e, f, g, h, s0, s1; in SHA256_Transform() local
485 d = context->state[3]; in SHA256_Transform()
506 e = d + T1; in SHA256_Transform()
507 d = c; in SHA256_Transform()
529 e = d + T1; in SHA256_Transform()
530 d = c; in SHA256_Transform()
542 context->state[3] += d; in SHA256_Transform()
549 a = b = c = d = e = f = g = h = T1 = T2 = 0; in SHA256_Transform()
603 sha2_word32 *d = (sha2_word32*)digest; in SHA256_Final() local
652 *d++ = context->state[j]; in SHA256_Final()
656 MEMCPY_BCOPY(d, context->state, SHA256_DIGEST_LENGTH); in SHA256_Final()
666 sha2_byte digest[SHA256_DIGEST_LENGTH], *d = digest; in SHA256_End() local
676 *buffer++ = sha2_hex_digits[(*d & 0xf0) >> 4]; in SHA256_End()
677 *buffer++ = sha2_hex_digits[*d & 0x0f]; in SHA256_End()
678 d++; in SHA256_End()
713 #define ROUND512_0_TO_15(a,b,c,d,e,f,g,h) \ argument
717 (d) += T1, \
724 #define ROUND512_0_TO_15(a,b,c,d,e,f,g,h) \ argument
727 (d) += T1; \
733 #define ROUND512(a,b,c,d,e,f,g,h) \ argument
740 (d) += T1; \
745 sha2_word64 a, b, c, d, e, f, g, h, s0, s1; in SHA512_Transform() local
753 d = context->state[3]; in SHA512_Transform()
761 ROUND512_0_TO_15(a,b,c,d,e,f,g,h); in SHA512_Transform()
762 ROUND512_0_TO_15(h,a,b,c,d,e,f,g); in SHA512_Transform()
763 ROUND512_0_TO_15(g,h,a,b,c,d,e,f); in SHA512_Transform()
764 ROUND512_0_TO_15(f,g,h,a,b,c,d,e); in SHA512_Transform()
765 ROUND512_0_TO_15(e,f,g,h,a,b,c,d); in SHA512_Transform()
766 ROUND512_0_TO_15(d,e,f,g,h,a,b,c); in SHA512_Transform()
767 ROUND512_0_TO_15(c,d,e,f,g,h,a,b); in SHA512_Transform()
768 ROUND512_0_TO_15(b,c,d,e,f,g,h,a); in SHA512_Transform()
773 ROUND512(a,b,c,d,e,f,g,h); in SHA512_Transform()
774 ROUND512(h,a,b,c,d,e,f,g); in SHA512_Transform()
775 ROUND512(g,h,a,b,c,d,e,f); in SHA512_Transform()
776 ROUND512(f,g,h,a,b,c,d,e); in SHA512_Transform()
777 ROUND512(e,f,g,h,a,b,c,d); in SHA512_Transform()
778 ROUND512(d,e,f,g,h,a,b,c); in SHA512_Transform()
779 ROUND512(c,d,e,f,g,h,a,b); in SHA512_Transform()
780 ROUND512(b,c,d,e,f,g,h,a); in SHA512_Transform()
787 context->state[3] += d; in SHA512_Transform()
794 a = b = c = d = e = f = g = h = T1 = 0; in SHA512_Transform()
800 sha2_word64 a, b, c, d, e, f, g, h, s0, s1; in SHA512_Transform() local
808 d = context->state[3]; in SHA512_Transform()
829 e = d + T1; in SHA512_Transform()
830 d = c; in SHA512_Transform()
852 e = d + T1; in SHA512_Transform()
853 d = c; in SHA512_Transform()
865 context->state[3] += d; in SHA512_Transform()
872 a = b = c = d = e = f = g = h = T1 = T2 = 0; in SHA512_Transform()
967 sha2_word64 *d = (sha2_word64*)digest; in SHA512_Final() local
983 *d++ = context->state[j]; in SHA512_Final()
987 MEMCPY_BCOPY(d, context->state, SHA512_DIGEST_LENGTH); in SHA512_Final()
996 sha2_byte digest[SHA512_DIGEST_LENGTH], *d = digest; in SHA512_End() local
1006 *buffer++ = sha2_hex_digits[(*d & 0xf0) >> 4]; in SHA512_End()
1007 *buffer++ = sha2_hex_digits[*d & 0x0f]; in SHA512_End()
1008 d++; in SHA512_End()
1043 sha2_word64 *d = (sha2_word64*)digest; in SHA384_Final() local
1059 *d++ = context->state[j]; in SHA384_Final()
1063 MEMCPY_BCOPY(d, context->state, SHA384_DIGEST_LENGTH); in SHA384_Final()
1072 sha2_byte digest[SHA384_DIGEST_LENGTH], *d = digest; in SHA384_End() local
1082 *buffer++ = sha2_hex_digits[(*d & 0xf0) >> 4]; in SHA384_End()
1083 *buffer++ = sha2_hex_digits[*d & 0x0f]; in SHA384_End()
1084 d++; in SHA384_End()