Lines Matching refs:D

126     uint64_t C[5], D[5];  in Theta()  local
143 D[0] = ROL64(C[1], 1) ^ C[4]; in Theta()
144 D[1] = ROL64(C[2], 1) ^ C[0]; in Theta()
145 D[2] = ROL64(C[3], 1) ^ C[1]; in Theta()
146 D[3] = ROL64(C[4], 1) ^ C[2]; in Theta()
147 D[4] = ROL64(C[0], 1) ^ C[3]; in Theta()
150 A[y][0] ^= D[0]; in Theta()
151 A[y][1] ^= D[1]; in Theta()
152 A[y][2] ^= D[2]; in Theta()
153 A[y][3] ^= D[3]; in Theta()
154 A[y][4] ^= D[4]; in Theta()
265 uint64_t D[5], T[2][5]; /* memory */ in Round() local
276 D[1] = E[0] = ROL64(C[2], 1) ^ C[0]; in Round()
277 D[4] = E[1] = ROL64(C[0], 1) ^ C[3]; in Round()
278 D[0] = C[0] = ROL64(C[1], 1) ^ C[4]; in Round()
279 D[2] = C[1] = ROL64(C[3], 1) ^ C[1]; in Round()
280 D[3] = C[2] = ROL64(C[4], 1) ^ C[2]; in Round()
294 D[0] = ROL64(C[1], 1) ^ C[4]; in Round()
295 D[1] = ROL64(C[2], 1) ^ C[0]; in Round()
296 D[2] = ROL64(C[3], 1) ^ C[1]; in Round()
297 D[3] = ROL64(C[4], 1) ^ C[2]; in Round()
298 D[4] = ROL64(C[0], 1) ^ C[3]; in Round()
300 T[0][0] = A[3][0] ^ D[0]; /* borrow T[0][0] */ in Round()
301 T[0][1] = A[0][1] ^ D[1]; in Round()
302 T[0][2] = A[0][2] ^ D[2]; in Round()
303 T[0][3] = A[0][3] ^ D[3]; in Round()
304 T[0][4] = A[0][4] ^ D[4]; in Round()
306 C[0] = A[0][0] ^ D[0]; /* rotate by 0 */ in Round()
307 C[1] = ROL64(A[1][1] ^ D[1], rhotates[1][1]); in Round()
308 C[2] = ROL64(A[2][2] ^ D[2], rhotates[2][2]); in Round()
309 C[3] = ROL64(A[3][3] ^ D[3], rhotates[3][3]); in Round()
310 C[4] = ROL64(A[4][4] ^ D[4], rhotates[4][4]); in Round()
318 T[1][0] = A[1][0] ^ (C[3] = D[0]); in Round()
319 T[1][1] = A[2][1] ^ (C[4] = D[1]); /* borrow T[1][1] */ in Round()
320 T[1][2] = A[1][2] ^ (E[0] = D[2]); in Round()
321 T[1][3] = A[1][3] ^ (E[1] = D[3]); in Round()
322 T[1][4] = A[2][4] ^ (C[2] = D[4]); /* borrow T[1][4] */ in Round()
338 C[2] = ROL64(A[2][3] ^ D[3], rhotates[2][3]); in Round()
339 C[3] = ROL64(A[3][4] ^ D[4], rhotates[3][4]); in Round()
340 C[4] = ROL64(A[4][0] ^ D[0], rhotates[4][0]); in Round()
351 C[3] = ROL64(A[3][2] ^ D[2], rhotates[3][2]); in Round()
352 C[4] = ROL64(A[4][3] ^ D[3], rhotates[4][3]); in Round()
364 C[4] = ROL64(A[4][1] ^ D[1], rhotates[4][1]); in Round()
392 uint64_t C[5], D[5]; in Round() local
402 D[1] = C[0] ^ ROL64(C[2], 1); in Round()
403 D[2] = C[1] ^ ROL64(C[3], 1); in Round()
404 D[3] = C[2] ^= ROL64(C[4], 1); in Round()
405 D[4] = C[3] ^= ROL64(C[0], 1); in Round()
406 D[0] = C[4] ^= ROL64(C[1], 1); in Round()
408 A[0][1] ^= D[1]; in Round()
409 A[1][1] ^= D[1]; in Round()
410 A[2][1] ^= D[1]; in Round()
411 A[3][1] ^= D[1]; in Round()
412 A[4][1] ^= D[1]; in Round()
414 A[0][2] ^= D[2]; in Round()
415 A[1][2] ^= D[2]; in Round()
416 A[2][2] ^= D[2]; in Round()
417 A[3][2] ^= D[2]; in Round()
418 A[4][2] ^= D[2]; in Round()
475 D[0] = A[0][1]; in Round()
476 D[1] = A[1][1]; in Round()
486 A[0][4] ^= (~C[0] & D[0]); in Round()
487 A[1][4] ^= (~C[1] & D[1]); in Round()
491 D[2] = A[2][1]; in Round()
492 D[3] = A[3][1]; in Round()
502 A[2][4] ^= (~C[2] & D[2]); in Round()
503 A[3][4] ^= (~C[3] & D[3]); in Round()
506 D[4] = A[4][1]; in Round()
512 A[4][4] ^= (~C[4] & D[4]); in Round()
537 uint64_t C[5], D[5]; in Round() local
547 D[0] = ROL64(C[1], 1) ^ C[4]; in Round()
548 D[1] = ROL64(C[2], 1) ^ C[0]; in Round()
549 D[2] = ROL64(C[3], 1) ^ C[1]; in Round()
550 D[3] = ROL64(C[4], 1) ^ C[2]; in Round()
551 D[4] = ROL64(C[0], 1) ^ C[3]; in Round()
553 C[0] = A[0][0] ^ D[0]; /* rotate by 0 */ in Round()
554 C[1] = ROL64(A[1][1] ^ D[1], rhotates[1][1]); in Round()
555 C[2] = ROL64(A[2][2] ^ D[2], rhotates[2][2]); in Round()
556 C[3] = ROL64(A[3][3] ^ D[3], rhotates[3][3]); in Round()
557 C[4] = ROL64(A[4][4] ^ D[4], rhotates[4][4]); in Round()
573 C[0] = ROL64(A[0][3] ^ D[3], rhotates[0][3]); in Round()
574 C[1] = ROL64(A[1][4] ^ D[4], rhotates[1][4]); in Round()
575 C[2] = ROL64(A[2][0] ^ D[0], rhotates[2][0]); in Round()
576 C[3] = ROL64(A[3][1] ^ D[1], rhotates[3][1]); in Round()
577 C[4] = ROL64(A[4][2] ^ D[2], rhotates[4][2]); in Round()
593 C[0] = ROL64(A[0][1] ^ D[1], rhotates[0][1]); in Round()
594 C[1] = ROL64(A[1][2] ^ D[2], rhotates[1][2]); in Round()
595 C[2] = ROL64(A[2][3] ^ D[3], rhotates[2][3]); in Round()
596 C[3] = ROL64(A[3][4] ^ D[4], rhotates[3][4]); in Round()
597 C[4] = ROL64(A[4][0] ^ D[0], rhotates[4][0]); in Round()
613 C[0] = ROL64(A[0][4] ^ D[4], rhotates[0][4]); in Round()
614 C[1] = ROL64(A[1][0] ^ D[0], rhotates[1][0]); in Round()
615 C[2] = ROL64(A[2][1] ^ D[1], rhotates[2][1]); in Round()
616 C[3] = ROL64(A[3][2] ^ D[2], rhotates[3][2]); in Round()
617 C[4] = ROL64(A[4][3] ^ D[3], rhotates[4][3]); in Round()
633 C[0] = ROL64(A[0][2] ^ D[2], rhotates[0][2]); in Round()
634 C[1] = ROL64(A[1][3] ^ D[3], rhotates[1][3]); in Round()
635 C[2] = ROL64(A[2][4] ^ D[4], rhotates[2][4]); in Round()
636 C[3] = ROL64(A[3][0] ^ D[0], rhotates[3][0]); in Round()
637 C[4] = ROL64(A[4][1] ^ D[1], rhotates[4][1]); in Round()
695 uint64_t B[5], C[5], D[5]; in FourRounds() local
706 D[0] = ROL64(C[1], 1) ^ C[4]; in FourRounds()
707 D[1] = ROL64(C[2], 1) ^ C[0]; in FourRounds()
708 D[2] = ROL64(C[3], 1) ^ C[1]; in FourRounds()
709 D[3] = ROL64(C[4], 1) ^ C[2]; in FourRounds()
710 D[4] = ROL64(C[0], 1) ^ C[3]; in FourRounds()
712 B[0] = A[0][0] ^ D[0]; /* rotate by 0 */ in FourRounds()
713 B[1] = ROL64(A[1][1] ^ D[1], rhotates[1][1]); in FourRounds()
714 B[2] = ROL64(A[2][2] ^ D[2], rhotates[2][2]); in FourRounds()
715 B[3] = ROL64(A[3][3] ^ D[3], rhotates[3][3]); in FourRounds()
716 B[4] = ROL64(A[4][4] ^ D[4], rhotates[4][4]); in FourRounds()
724 B[0] = ROL64(A[0][3] ^ D[3], rhotates[0][3]); in FourRounds()
725 B[1] = ROL64(A[1][4] ^ D[4], rhotates[1][4]); in FourRounds()
726 B[2] = ROL64(A[2][0] ^ D[0], rhotates[2][0]); in FourRounds()
727 B[3] = ROL64(A[3][1] ^ D[1], rhotates[3][1]); in FourRounds()
728 B[4] = ROL64(A[4][2] ^ D[2], rhotates[4][2]); in FourRounds()
736 B[0] = ROL64(A[0][1] ^ D[1], rhotates[0][1]); in FourRounds()
737 B[1] = ROL64(A[1][2] ^ D[2], rhotates[1][2]); in FourRounds()
738 B[2] = ROL64(A[2][3] ^ D[3], rhotates[2][3]); in FourRounds()
739 B[3] = ROL64(A[3][4] ^ D[4], rhotates[3][4]); in FourRounds()
740 B[4] = ROL64(A[4][0] ^ D[0], rhotates[4][0]); in FourRounds()
748 B[0] = ROL64(A[0][4] ^ D[4], rhotates[0][4]); in FourRounds()
749 B[1] = ROL64(A[1][0] ^ D[0], rhotates[1][0]); in FourRounds()
750 B[2] = ROL64(A[2][1] ^ D[1], rhotates[2][1]); in FourRounds()
751 B[3] = ROL64(A[3][2] ^ D[2], rhotates[3][2]); in FourRounds()
752 B[4] = ROL64(A[4][3] ^ D[3], rhotates[4][3]); in FourRounds()
760 B[0] = ROL64(A[0][2] ^ D[2], rhotates[0][2]); in FourRounds()
761 B[1] = ROL64(A[1][3] ^ D[3], rhotates[1][3]); in FourRounds()
762 B[2] = ROL64(A[2][4] ^ D[4], rhotates[2][4]); in FourRounds()
763 B[3] = ROL64(A[3][0] ^ D[0], rhotates[3][0]); in FourRounds()
764 B[4] = ROL64(A[4][1] ^ D[1], rhotates[4][1]); in FourRounds()
773 D[0] = ROL64(C[1], 1) ^ C[4]; in FourRounds()
774 D[1] = ROL64(C[2], 1) ^ C[0]; in FourRounds()
775 D[2] = ROL64(C[3], 1) ^ C[1]; in FourRounds()
776 D[3] = ROL64(C[4], 1) ^ C[2]; in FourRounds()
777 D[4] = ROL64(C[0], 1) ^ C[3]; in FourRounds()
779 B[0] = A[0][0] ^ D[0]; /* rotate by 0 */ in FourRounds()
780 B[1] = ROL64(A[3][1] ^ D[1], rhotates[1][1]); in FourRounds()
781 B[2] = ROL64(A[1][2] ^ D[2], rhotates[2][2]); in FourRounds()
782 B[3] = ROL64(A[4][3] ^ D[3], rhotates[3][3]); in FourRounds()
783 B[4] = ROL64(A[2][4] ^ D[4], rhotates[4][4]); in FourRounds()
791 B[0] = ROL64(A[3][3] ^ D[3], rhotates[0][3]); in FourRounds()
792 B[1] = ROL64(A[1][4] ^ D[4], rhotates[1][4]); in FourRounds()
793 B[2] = ROL64(A[4][0] ^ D[0], rhotates[2][0]); in FourRounds()
794 B[3] = ROL64(A[2][1] ^ D[1], rhotates[3][1]); in FourRounds()
795 B[4] = ROL64(A[0][2] ^ D[2], rhotates[4][2]); in FourRounds()
803 B[0] = ROL64(A[1][1] ^ D[1], rhotates[0][1]); in FourRounds()
804 B[1] = ROL64(A[4][2] ^ D[2], rhotates[1][2]); in FourRounds()
805 B[2] = ROL64(A[2][3] ^ D[3], rhotates[2][3]); in FourRounds()
806 B[3] = ROL64(A[0][4] ^ D[4], rhotates[3][4]); in FourRounds()
807 B[4] = ROL64(A[3][0] ^ D[0], rhotates[4][0]); in FourRounds()
815 B[0] = ROL64(A[4][4] ^ D[4], rhotates[0][4]); in FourRounds()
816 B[1] = ROL64(A[2][0] ^ D[0], rhotates[1][0]); in FourRounds()
817 B[2] = ROL64(A[0][1] ^ D[1], rhotates[2][1]); in FourRounds()
818 B[3] = ROL64(A[3][2] ^ D[2], rhotates[3][2]); in FourRounds()
819 B[4] = ROL64(A[1][3] ^ D[3], rhotates[4][3]); in FourRounds()
827 B[0] = ROL64(A[2][2] ^ D[2], rhotates[0][2]); in FourRounds()
828 B[1] = ROL64(A[0][3] ^ D[3], rhotates[1][3]); in FourRounds()
829 B[2] = ROL64(A[3][4] ^ D[4], rhotates[2][4]); in FourRounds()
830 B[3] = ROL64(A[1][0] ^ D[0], rhotates[3][0]); in FourRounds()
831 B[4] = ROL64(A[4][1] ^ D[1], rhotates[4][1]); in FourRounds()
840 D[0] = ROL64(C[1], 1) ^ C[4]; in FourRounds()
841 D[1] = ROL64(C[2], 1) ^ C[0]; in FourRounds()
842 D[2] = ROL64(C[3], 1) ^ C[1]; in FourRounds()
843 D[3] = ROL64(C[4], 1) ^ C[2]; in FourRounds()
844 D[4] = ROL64(C[0], 1) ^ C[3]; in FourRounds()
846 B[0] = A[0][0] ^ D[0]; /* rotate by 0 */ in FourRounds()
847 B[1] = ROL64(A[2][1] ^ D[1], rhotates[1][1]); in FourRounds()
848 B[2] = ROL64(A[4][2] ^ D[2], rhotates[2][2]); in FourRounds()
849 B[3] = ROL64(A[1][3] ^ D[3], rhotates[3][3]); in FourRounds()
850 B[4] = ROL64(A[3][4] ^ D[4], rhotates[4][4]); in FourRounds()
858 B[0] = ROL64(A[4][3] ^ D[3], rhotates[0][3]); in FourRounds()
859 B[1] = ROL64(A[1][4] ^ D[4], rhotates[1][4]); in FourRounds()
860 B[2] = ROL64(A[3][0] ^ D[0], rhotates[2][0]); in FourRounds()
861 B[3] = ROL64(A[0][1] ^ D[1], rhotates[3][1]); in FourRounds()
862 B[4] = ROL64(A[2][2] ^ D[2], rhotates[4][2]); in FourRounds()
870 B[0] = ROL64(A[3][1] ^ D[1], rhotates[0][1]); in FourRounds()
871 B[1] = ROL64(A[0][2] ^ D[2], rhotates[1][2]); in FourRounds()
872 B[2] = ROL64(A[2][3] ^ D[3], rhotates[2][3]); in FourRounds()
873 B[3] = ROL64(A[4][4] ^ D[4], rhotates[3][4]); in FourRounds()
874 B[4] = ROL64(A[1][0] ^ D[0], rhotates[4][0]); in FourRounds()
882 B[0] = ROL64(A[2][4] ^ D[4], rhotates[0][4]); in FourRounds()
883 B[1] = ROL64(A[4][0] ^ D[0], rhotates[1][0]); in FourRounds()
884 B[2] = ROL64(A[1][1] ^ D[1], rhotates[2][1]); in FourRounds()
885 B[3] = ROL64(A[3][2] ^ D[2], rhotates[3][2]); in FourRounds()
886 B[4] = ROL64(A[0][3] ^ D[3], rhotates[4][3]); in FourRounds()
894 B[0] = ROL64(A[1][2] ^ D[2], rhotates[0][2]); in FourRounds()
895 B[1] = ROL64(A[3][3] ^ D[3], rhotates[1][3]); in FourRounds()
896 B[2] = ROL64(A[0][4] ^ D[4], rhotates[2][4]); in FourRounds()
897 B[3] = ROL64(A[2][0] ^ D[0], rhotates[3][0]); in FourRounds()
898 B[4] = ROL64(A[4][1] ^ D[1], rhotates[4][1]); in FourRounds()
907 D[0] = ROL64(C[1], 1) ^ C[4]; in FourRounds()
908 D[1] = ROL64(C[2], 1) ^ C[0]; in FourRounds()
909 D[2] = ROL64(C[3], 1) ^ C[1]; in FourRounds()
910 D[3] = ROL64(C[4], 1) ^ C[2]; in FourRounds()
911 D[4] = ROL64(C[0], 1) ^ C[3]; in FourRounds()
913 B[0] = A[0][0] ^ D[0]; /* rotate by 0 */ in FourRounds()
914 B[1] = ROL64(A[0][1] ^ D[1], rhotates[1][1]); in FourRounds()
915 B[2] = ROL64(A[0][2] ^ D[2], rhotates[2][2]); in FourRounds()
916 B[3] = ROL64(A[0][3] ^ D[3], rhotates[3][3]); in FourRounds()
917 B[4] = ROL64(A[0][4] ^ D[4], rhotates[4][4]); in FourRounds()
925 B[0] = ROL64(A[1][3] ^ D[3], rhotates[0][3]); in FourRounds()
926 B[1] = ROL64(A[1][4] ^ D[4], rhotates[1][4]); in FourRounds()
927 B[2] = ROL64(A[1][0] ^ D[0], rhotates[2][0]); in FourRounds()
928 B[3] = ROL64(A[1][1] ^ D[1], rhotates[3][1]); in FourRounds()
929 B[4] = ROL64(A[1][2] ^ D[2], rhotates[4][2]); in FourRounds()
937 B[0] = ROL64(A[2][1] ^ D[1], rhotates[0][1]); in FourRounds()
938 B[1] = ROL64(A[2][2] ^ D[2], rhotates[1][2]); in FourRounds()
939 B[2] = ROL64(A[2][3] ^ D[3], rhotates[2][3]); in FourRounds()
940 B[3] = ROL64(A[2][4] ^ D[4], rhotates[3][4]); in FourRounds()
941 B[4] = ROL64(A[2][0] ^ D[0], rhotates[4][0]); in FourRounds()
949 B[0] = ROL64(A[3][4] ^ D[4], rhotates[0][4]); in FourRounds()
950 B[1] = ROL64(A[3][0] ^ D[0], rhotates[1][0]); in FourRounds()
951 B[2] = ROL64(A[3][1] ^ D[1], rhotates[2][1]); in FourRounds()
952 B[3] = ROL64(A[3][2] ^ D[2], rhotates[3][2]); in FourRounds()
953 B[4] = ROL64(A[3][3] ^ D[3], rhotates[4][3]); in FourRounds()
961 B[0] = ROL64(A[4][2] ^ D[2], rhotates[0][2]); in FourRounds()
962 B[1] = ROL64(A[4][3] ^ D[3], rhotates[1][3]); in FourRounds()
963 B[2] = ROL64(A[4][4] ^ D[4], rhotates[2][4]); in FourRounds()
964 B[3] = ROL64(A[4][0] ^ D[0], rhotates[3][0]); in FourRounds()
965 B[4] = ROL64(A[4][1] ^ D[1], rhotates[4][1]); in FourRounds()