Lines Matching refs:ROL64
54 static uint64_t ROL64(uint64_t val, int offset) in ROL64() function
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()
163 A[y][0] = ROL64(A[y][0], rhotates[y][0]); in Rho()
164 A[y][1] = ROL64(A[y][1], rhotates[y][1]); in Rho()
165 A[y][2] = ROL64(A[y][2], rhotates[y][2]); in Rho()
166 A[y][3] = ROL64(A[y][3], rhotates[y][3]); in Rho()
167 A[y][4] = ROL64(A[y][4], rhotates[y][4]); in Rho()
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()
288 C[3] = ROL64(A[3][3] ^ C[2], rhotates[3][3]); /* D[3] */ in Round()
289 C[4] = ROL64(A[4][4] ^ E[1], rhotates[4][4]); /* D[4] */ in Round()
291 C[2] = ROL64(A[2][2] ^ C[1], rhotates[2][2]); /* D[2] */ in Round()
292 C[1] = ROL64(A[1][1] ^ E[0], rhotates[1][1]); /* D[1] */ 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()
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()
324 C[0] = ROL64(T[0][3], rhotates[0][3]); in Round()
325 C[1] = ROL64(A[1][4] ^ C[2], rhotates[1][4]); /* D[4] */ in Round()
326 C[2] = ROL64(A[2][0] ^ C[3], rhotates[2][0]); /* D[0] */ in Round()
327 C[3] = ROL64(A[3][1] ^ C[4], rhotates[3][1]); /* D[1] */ in Round()
328 C[4] = ROL64(A[4][2] ^ E[0], rhotates[4][2]); /* D[2] */ in Round()
336 C[0] = ROL64(T[0][1], rhotates[0][1]); in Round()
337 C[1] = ROL64(T[1][2], rhotates[1][2]); 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()
348 C[0] = ROL64(T[0][4], rhotates[0][4]); in Round()
349 C[1] = ROL64(T[1][0], rhotates[1][0]); in Round()
350 C[2] = ROL64(T[1][1], rhotates[2][1]); /* originally A[2][1] */ 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()
360 C[0] = ROL64(T[0][2], rhotates[0][2]); in Round()
361 C[1] = ROL64(T[1][3], rhotates[1][3]); in Round()
362 C[2] = ROL64(T[1][4], rhotates[2][4]); /* originally A[2][4] */ in Round()
363 C[3] = ROL64(T[0][0], rhotates[3][0]); /* originally A[3][0] */ in Round()
364 C[4] = ROL64(A[4][1] ^ D[1], rhotates[4][1]); in Round()
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()
443 A[0][1] = ROL64(A[1][1], rhotates[1][1]); in Round()
444 A[0][2] = ROL64(A[2][2], rhotates[2][2]); in Round()
445 A[0][3] = ROL64(A[3][3], rhotates[3][3]); in Round()
446 A[0][4] = ROL64(A[4][4], rhotates[4][4]); in Round()
448 A[1][1] = ROL64(A[1][4], rhotates[1][4]); in Round()
449 A[2][2] = ROL64(A[2][3], rhotates[2][3]); in Round()
450 A[3][3] = ROL64(A[3][2], rhotates[3][2]); in Round()
451 A[4][4] = ROL64(A[4][1], rhotates[4][1]); in Round()
453 A[1][4] = ROL64(A[4][2], rhotates[4][2]); in Round()
454 A[2][3] = ROL64(A[3][4], rhotates[3][4]); in Round()
455 A[3][2] = ROL64(A[2][1], rhotates[2][1]); in Round()
456 A[4][1] = ROL64(A[1][3], rhotates[1][3]); in Round()
458 A[4][2] = ROL64(A[2][4], rhotates[2][4]); in Round()
459 A[3][4] = ROL64(A[4][3], rhotates[4][3]); in Round()
460 A[2][1] = ROL64(A[1][2], rhotates[1][2]); in Round()
461 A[1][3] = ROL64(A[3][1], rhotates[3][1]); in Round()
463 A[2][4] = ROL64(A[4][0], rhotates[4][0]); in Round()
464 A[4][3] = ROL64(A[3][0], rhotates[3][0]); in Round()
465 A[1][2] = ROL64(A[2][0], rhotates[2][0]); in Round()
466 A[3][1] = ROL64(A[1][0], rhotates[1][0]); in Round()
468 A[1][0] = ROL64(C[3], rhotates[0][3]); in Round()
469 A[2][0] = ROL64(C[1], rhotates[0][1]); in Round()
470 A[3][0] = ROL64(C[4], rhotates[0][4]); in Round()
471 A[4][0] = ROL64(C[2], rhotates[0][2]); in Round()
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()
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()
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()
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()
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()
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()
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()