Lines Matching refs:D

128     uint64_t C[5], D[5];  in Theta()  local
145 D[0] = ROL64(C[1], 1) ^ C[4]; in Theta()
146 D[1] = ROL64(C[2], 1) ^ C[0]; in Theta()
147 D[2] = ROL64(C[3], 1) ^ C[1]; in Theta()
148 D[3] = ROL64(C[4], 1) ^ C[2]; in Theta()
149 D[4] = ROL64(C[0], 1) ^ C[3]; in Theta()
152 A[y][0] ^= D[0]; in Theta()
153 A[y][1] ^= D[1]; in Theta()
154 A[y][2] ^= D[2]; in Theta()
155 A[y][3] ^= D[3]; in Theta()
156 A[y][4] ^= D[4]; in Theta()
267 uint64_t D[5], T[2][5]; /* memory */ in Round() local
278 D[1] = E[0] = ROL64(C[2], 1) ^ C[0]; in Round()
279 D[4] = E[1] = ROL64(C[0], 1) ^ C[3]; in Round()
280 D[0] = C[0] = ROL64(C[1], 1) ^ C[4]; in Round()
281 D[2] = C[1] = ROL64(C[3], 1) ^ C[1]; in Round()
282 D[3] = C[2] = ROL64(C[4], 1) ^ C[2]; in Round()
296 D[0] = ROL64(C[1], 1) ^ C[4]; in Round()
297 D[1] = ROL64(C[2], 1) ^ C[0]; in Round()
298 D[2] = ROL64(C[3], 1) ^ C[1]; in Round()
299 D[3] = ROL64(C[4], 1) ^ C[2]; in Round()
300 D[4] = ROL64(C[0], 1) ^ C[3]; in Round()
302 T[0][0] = A[3][0] ^ D[0]; /* borrow T[0][0] */ in Round()
303 T[0][1] = A[0][1] ^ D[1]; in Round()
304 T[0][2] = A[0][2] ^ D[2]; in Round()
305 T[0][3] = A[0][3] ^ D[3]; in Round()
306 T[0][4] = A[0][4] ^ D[4]; in Round()
308 C[0] = A[0][0] ^ D[0]; /* rotate by 0 */ in Round()
309 C[1] = ROL64(A[1][1] ^ D[1], rhotates[1][1]); in Round()
310 C[2] = ROL64(A[2][2] ^ D[2], rhotates[2][2]); in Round()
311 C[3] = ROL64(A[3][3] ^ D[3], rhotates[3][3]); in Round()
312 C[4] = ROL64(A[4][4] ^ D[4], rhotates[4][4]); in Round()
320 T[1][0] = A[1][0] ^ (C[3] = D[0]); in Round()
321 T[1][1] = A[2][1] ^ (C[4] = D[1]); /* borrow T[1][1] */ in Round()
322 T[1][2] = A[1][2] ^ (E[0] = D[2]); in Round()
323 T[1][3] = A[1][3] ^ (E[1] = D[3]); in Round()
324 T[1][4] = A[2][4] ^ (C[2] = D[4]); /* borrow T[1][4] */ in Round()
340 C[2] = ROL64(A[2][3] ^ D[3], rhotates[2][3]); in Round()
341 C[3] = ROL64(A[3][4] ^ D[4], rhotates[3][4]); in Round()
342 C[4] = ROL64(A[4][0] ^ D[0], rhotates[4][0]); in Round()
353 C[3] = ROL64(A[3][2] ^ D[2], rhotates[3][2]); in Round()
354 C[4] = ROL64(A[4][3] ^ D[3], rhotates[4][3]); in Round()
366 C[4] = ROL64(A[4][1] ^ D[1], rhotates[4][1]); in Round()
394 uint64_t C[5], D[5]; in Round() local
404 D[1] = C[0] ^ ROL64(C[2], 1); in Round()
405 D[2] = C[1] ^ ROL64(C[3], 1); in Round()
406 D[3] = C[2] ^= ROL64(C[4], 1); in Round()
407 D[4] = C[3] ^= ROL64(C[0], 1); in Round()
408 D[0] = C[4] ^= ROL64(C[1], 1); in Round()
410 A[0][1] ^= D[1]; in Round()
411 A[1][1] ^= D[1]; in Round()
412 A[2][1] ^= D[1]; in Round()
413 A[3][1] ^= D[1]; in Round()
414 A[4][1] ^= D[1]; in Round()
416 A[0][2] ^= D[2]; in Round()
417 A[1][2] ^= D[2]; in Round()
418 A[2][2] ^= D[2]; in Round()
419 A[3][2] ^= D[2]; in Round()
420 A[4][2] ^= D[2]; in Round()
477 D[0] = A[0][1]; in Round()
478 D[1] = A[1][1]; in Round()
488 A[0][4] ^= (~C[0] & D[0]); in Round()
489 A[1][4] ^= (~C[1] & D[1]); in Round()
493 D[2] = A[2][1]; in Round()
494 D[3] = A[3][1]; in Round()
504 A[2][4] ^= (~C[2] & D[2]); in Round()
505 A[3][4] ^= (~C[3] & D[3]); in Round()
508 D[4] = A[4][1]; in Round()
514 A[4][4] ^= (~C[4] & D[4]); in Round()
539 uint64_t C[5], D[5]; in Round() local
549 D[0] = ROL64(C[1], 1) ^ C[4]; in Round()
550 D[1] = ROL64(C[2], 1) ^ C[0]; in Round()
551 D[2] = ROL64(C[3], 1) ^ C[1]; in Round()
552 D[3] = ROL64(C[4], 1) ^ C[2]; in Round()
553 D[4] = ROL64(C[0], 1) ^ C[3]; in Round()
555 C[0] = A[0][0] ^ D[0]; /* rotate by 0 */ in Round()
556 C[1] = ROL64(A[1][1] ^ D[1], rhotates[1][1]); in Round()
557 C[2] = ROL64(A[2][2] ^ D[2], rhotates[2][2]); in Round()
558 C[3] = ROL64(A[3][3] ^ D[3], rhotates[3][3]); in Round()
559 C[4] = ROL64(A[4][4] ^ D[4], rhotates[4][4]); in Round()
575 C[0] = ROL64(A[0][3] ^ D[3], rhotates[0][3]); in Round()
576 C[1] = ROL64(A[1][4] ^ D[4], rhotates[1][4]); in Round()
577 C[2] = ROL64(A[2][0] ^ D[0], rhotates[2][0]); in Round()
578 C[3] = ROL64(A[3][1] ^ D[1], rhotates[3][1]); in Round()
579 C[4] = ROL64(A[4][2] ^ D[2], rhotates[4][2]); in Round()
595 C[0] = ROL64(A[0][1] ^ D[1], rhotates[0][1]); in Round()
596 C[1] = ROL64(A[1][2] ^ D[2], rhotates[1][2]); in Round()
597 C[2] = ROL64(A[2][3] ^ D[3], rhotates[2][3]); in Round()
598 C[3] = ROL64(A[3][4] ^ D[4], rhotates[3][4]); in Round()
599 C[4] = ROL64(A[4][0] ^ D[0], rhotates[4][0]); in Round()
615 C[0] = ROL64(A[0][4] ^ D[4], rhotates[0][4]); in Round()
616 C[1] = ROL64(A[1][0] ^ D[0], rhotates[1][0]); in Round()
617 C[2] = ROL64(A[2][1] ^ D[1], rhotates[2][1]); in Round()
618 C[3] = ROL64(A[3][2] ^ D[2], rhotates[3][2]); in Round()
619 C[4] = ROL64(A[4][3] ^ D[3], rhotates[4][3]); in Round()
635 C[0] = ROL64(A[0][2] ^ D[2], rhotates[0][2]); in Round()
636 C[1] = ROL64(A[1][3] ^ D[3], rhotates[1][3]); in Round()
637 C[2] = ROL64(A[2][4] ^ D[4], rhotates[2][4]); in Round()
638 C[3] = ROL64(A[3][0] ^ D[0], rhotates[3][0]); in Round()
639 C[4] = ROL64(A[4][1] ^ D[1], rhotates[4][1]); in Round()
697 uint64_t B[5], C[5], D[5]; in FourRounds() local
708 D[0] = ROL64(C[1], 1) ^ C[4]; in FourRounds()
709 D[1] = ROL64(C[2], 1) ^ C[0]; in FourRounds()
710 D[2] = ROL64(C[3], 1) ^ C[1]; in FourRounds()
711 D[3] = ROL64(C[4], 1) ^ C[2]; in FourRounds()
712 D[4] = ROL64(C[0], 1) ^ C[3]; in FourRounds()
714 B[0] = A[0][0] ^ D[0]; /* rotate by 0 */ in FourRounds()
715 B[1] = ROL64(A[1][1] ^ D[1], rhotates[1][1]); in FourRounds()
716 B[2] = ROL64(A[2][2] ^ D[2], rhotates[2][2]); in FourRounds()
717 B[3] = ROL64(A[3][3] ^ D[3], rhotates[3][3]); in FourRounds()
718 B[4] = ROL64(A[4][4] ^ D[4], rhotates[4][4]); in FourRounds()
726 B[0] = ROL64(A[0][3] ^ D[3], rhotates[0][3]); in FourRounds()
727 B[1] = ROL64(A[1][4] ^ D[4], rhotates[1][4]); in FourRounds()
728 B[2] = ROL64(A[2][0] ^ D[0], rhotates[2][0]); in FourRounds()
729 B[3] = ROL64(A[3][1] ^ D[1], rhotates[3][1]); in FourRounds()
730 B[4] = ROL64(A[4][2] ^ D[2], rhotates[4][2]); in FourRounds()
738 B[0] = ROL64(A[0][1] ^ D[1], rhotates[0][1]); in FourRounds()
739 B[1] = ROL64(A[1][2] ^ D[2], rhotates[1][2]); in FourRounds()
740 B[2] = ROL64(A[2][3] ^ D[3], rhotates[2][3]); in FourRounds()
741 B[3] = ROL64(A[3][4] ^ D[4], rhotates[3][4]); in FourRounds()
742 B[4] = ROL64(A[4][0] ^ D[0], rhotates[4][0]); in FourRounds()
750 B[0] = ROL64(A[0][4] ^ D[4], rhotates[0][4]); in FourRounds()
751 B[1] = ROL64(A[1][0] ^ D[0], rhotates[1][0]); in FourRounds()
752 B[2] = ROL64(A[2][1] ^ D[1], rhotates[2][1]); in FourRounds()
753 B[3] = ROL64(A[3][2] ^ D[2], rhotates[3][2]); in FourRounds()
754 B[4] = ROL64(A[4][3] ^ D[3], rhotates[4][3]); in FourRounds()
762 B[0] = ROL64(A[0][2] ^ D[2], rhotates[0][2]); in FourRounds()
763 B[1] = ROL64(A[1][3] ^ D[3], rhotates[1][3]); in FourRounds()
764 B[2] = ROL64(A[2][4] ^ D[4], rhotates[2][4]); in FourRounds()
765 B[3] = ROL64(A[3][0] ^ D[0], rhotates[3][0]); in FourRounds()
766 B[4] = ROL64(A[4][1] ^ D[1], rhotates[4][1]); in FourRounds()
775 D[0] = ROL64(C[1], 1) ^ C[4]; in FourRounds()
776 D[1] = ROL64(C[2], 1) ^ C[0]; in FourRounds()
777 D[2] = ROL64(C[3], 1) ^ C[1]; in FourRounds()
778 D[3] = ROL64(C[4], 1) ^ C[2]; in FourRounds()
779 D[4] = ROL64(C[0], 1) ^ C[3]; in FourRounds()
781 B[0] = A[0][0] ^ D[0]; /* rotate by 0 */ in FourRounds()
782 B[1] = ROL64(A[3][1] ^ D[1], rhotates[1][1]); in FourRounds()
783 B[2] = ROL64(A[1][2] ^ D[2], rhotates[2][2]); in FourRounds()
784 B[3] = ROL64(A[4][3] ^ D[3], rhotates[3][3]); in FourRounds()
785 B[4] = ROL64(A[2][4] ^ D[4], rhotates[4][4]); in FourRounds()
793 B[0] = ROL64(A[3][3] ^ D[3], rhotates[0][3]); in FourRounds()
794 B[1] = ROL64(A[1][4] ^ D[4], rhotates[1][4]); in FourRounds()
795 B[2] = ROL64(A[4][0] ^ D[0], rhotates[2][0]); in FourRounds()
796 B[3] = ROL64(A[2][1] ^ D[1], rhotates[3][1]); in FourRounds()
797 B[4] = ROL64(A[0][2] ^ D[2], rhotates[4][2]); in FourRounds()
805 B[0] = ROL64(A[1][1] ^ D[1], rhotates[0][1]); in FourRounds()
806 B[1] = ROL64(A[4][2] ^ D[2], rhotates[1][2]); in FourRounds()
807 B[2] = ROL64(A[2][3] ^ D[3], rhotates[2][3]); in FourRounds()
808 B[3] = ROL64(A[0][4] ^ D[4], rhotates[3][4]); in FourRounds()
809 B[4] = ROL64(A[3][0] ^ D[0], rhotates[4][0]); in FourRounds()
817 B[0] = ROL64(A[4][4] ^ D[4], rhotates[0][4]); in FourRounds()
818 B[1] = ROL64(A[2][0] ^ D[0], rhotates[1][0]); in FourRounds()
819 B[2] = ROL64(A[0][1] ^ D[1], rhotates[2][1]); in FourRounds()
820 B[3] = ROL64(A[3][2] ^ D[2], rhotates[3][2]); in FourRounds()
821 B[4] = ROL64(A[1][3] ^ D[3], rhotates[4][3]); in FourRounds()
829 B[0] = ROL64(A[2][2] ^ D[2], rhotates[0][2]); in FourRounds()
830 B[1] = ROL64(A[0][3] ^ D[3], rhotates[1][3]); in FourRounds()
831 B[2] = ROL64(A[3][4] ^ D[4], rhotates[2][4]); in FourRounds()
832 B[3] = ROL64(A[1][0] ^ D[0], rhotates[3][0]); in FourRounds()
833 B[4] = ROL64(A[4][1] ^ D[1], rhotates[4][1]); in FourRounds()
842 D[0] = ROL64(C[1], 1) ^ C[4]; in FourRounds()
843 D[1] = ROL64(C[2], 1) ^ C[0]; in FourRounds()
844 D[2] = ROL64(C[3], 1) ^ C[1]; in FourRounds()
845 D[3] = ROL64(C[4], 1) ^ C[2]; in FourRounds()
846 D[4] = ROL64(C[0], 1) ^ C[3]; in FourRounds()
848 B[0] = A[0][0] ^ D[0]; /* rotate by 0 */ in FourRounds()
849 B[1] = ROL64(A[2][1] ^ D[1], rhotates[1][1]); in FourRounds()
850 B[2] = ROL64(A[4][2] ^ D[2], rhotates[2][2]); in FourRounds()
851 B[3] = ROL64(A[1][3] ^ D[3], rhotates[3][3]); in FourRounds()
852 B[4] = ROL64(A[3][4] ^ D[4], rhotates[4][4]); in FourRounds()
860 B[0] = ROL64(A[4][3] ^ D[3], rhotates[0][3]); in FourRounds()
861 B[1] = ROL64(A[1][4] ^ D[4], rhotates[1][4]); in FourRounds()
862 B[2] = ROL64(A[3][0] ^ D[0], rhotates[2][0]); in FourRounds()
863 B[3] = ROL64(A[0][1] ^ D[1], rhotates[3][1]); in FourRounds()
864 B[4] = ROL64(A[2][2] ^ D[2], rhotates[4][2]); in FourRounds()
872 B[0] = ROL64(A[3][1] ^ D[1], rhotates[0][1]); in FourRounds()
873 B[1] = ROL64(A[0][2] ^ D[2], rhotates[1][2]); in FourRounds()
874 B[2] = ROL64(A[2][3] ^ D[3], rhotates[2][3]); in FourRounds()
875 B[3] = ROL64(A[4][4] ^ D[4], rhotates[3][4]); in FourRounds()
876 B[4] = ROL64(A[1][0] ^ D[0], rhotates[4][0]); in FourRounds()
884 B[0] = ROL64(A[2][4] ^ D[4], rhotates[0][4]); in FourRounds()
885 B[1] = ROL64(A[4][0] ^ D[0], rhotates[1][0]); in FourRounds()
886 B[2] = ROL64(A[1][1] ^ D[1], rhotates[2][1]); in FourRounds()
887 B[3] = ROL64(A[3][2] ^ D[2], rhotates[3][2]); in FourRounds()
888 B[4] = ROL64(A[0][3] ^ D[3], rhotates[4][3]); in FourRounds()
896 B[0] = ROL64(A[1][2] ^ D[2], rhotates[0][2]); in FourRounds()
897 B[1] = ROL64(A[3][3] ^ D[3], rhotates[1][3]); in FourRounds()
898 B[2] = ROL64(A[0][4] ^ D[4], rhotates[2][4]); in FourRounds()
899 B[3] = ROL64(A[2][0] ^ D[0], rhotates[3][0]); in FourRounds()
900 B[4] = ROL64(A[4][1] ^ D[1], rhotates[4][1]); in FourRounds()
909 D[0] = ROL64(C[1], 1) ^ C[4]; in FourRounds()
910 D[1] = ROL64(C[2], 1) ^ C[0]; in FourRounds()
911 D[2] = ROL64(C[3], 1) ^ C[1]; in FourRounds()
912 D[3] = ROL64(C[4], 1) ^ C[2]; in FourRounds()
913 D[4] = ROL64(C[0], 1) ^ C[3]; in FourRounds()
915 B[0] = A[0][0] ^ D[0]; /* rotate by 0 */ in FourRounds()
916 B[1] = ROL64(A[0][1] ^ D[1], rhotates[1][1]); in FourRounds()
917 B[2] = ROL64(A[0][2] ^ D[2], rhotates[2][2]); in FourRounds()
918 B[3] = ROL64(A[0][3] ^ D[3], rhotates[3][3]); in FourRounds()
919 B[4] = ROL64(A[0][4] ^ D[4], rhotates[4][4]); in FourRounds()
927 B[0] = ROL64(A[1][3] ^ D[3], rhotates[0][3]); in FourRounds()
928 B[1] = ROL64(A[1][4] ^ D[4], rhotates[1][4]); in FourRounds()
929 B[2] = ROL64(A[1][0] ^ D[0], rhotates[2][0]); in FourRounds()
930 B[3] = ROL64(A[1][1] ^ D[1], rhotates[3][1]); in FourRounds()
931 B[4] = ROL64(A[1][2] ^ D[2], rhotates[4][2]); in FourRounds()
939 B[0] = ROL64(A[2][1] ^ D[1], rhotates[0][1]); in FourRounds()
940 B[1] = ROL64(A[2][2] ^ D[2], rhotates[1][2]); in FourRounds()
941 B[2] = ROL64(A[2][3] ^ D[3], rhotates[2][3]); in FourRounds()
942 B[3] = ROL64(A[2][4] ^ D[4], rhotates[3][4]); in FourRounds()
943 B[4] = ROL64(A[2][0] ^ D[0], rhotates[4][0]); in FourRounds()
951 B[0] = ROL64(A[3][4] ^ D[4], rhotates[0][4]); in FourRounds()
952 B[1] = ROL64(A[3][0] ^ D[0], rhotates[1][0]); in FourRounds()
953 B[2] = ROL64(A[3][1] ^ D[1], rhotates[2][1]); in FourRounds()
954 B[3] = ROL64(A[3][2] ^ D[2], rhotates[3][2]); in FourRounds()
955 B[4] = ROL64(A[3][3] ^ D[3], rhotates[4][3]); in FourRounds()
963 B[0] = ROL64(A[4][2] ^ D[2], rhotates[0][2]); in FourRounds()
964 B[1] = ROL64(A[4][3] ^ D[3], rhotates[1][3]); in FourRounds()
965 B[2] = ROL64(A[4][4] ^ D[4], rhotates[2][4]); in FourRounds()
966 B[3] = ROL64(A[4][0] ^ D[0], rhotates[3][0]); in FourRounds()
967 B[4] = ROL64(A[4][1] ^ D[1], rhotates[4][1]); in FourRounds()