Lines Matching refs:ROL64
47 static uint64_t ROL64(uint64_t val, int offset) in ROL64() function
136 D[0] = ROL64(C[1], 1) ^ C[4]; in Theta()
137 D[1] = ROL64(C[2], 1) ^ C[0]; in Theta()
138 D[2] = ROL64(C[3], 1) ^ C[1]; in Theta()
139 D[3] = ROL64(C[4], 1) ^ C[2]; in Theta()
140 D[4] = ROL64(C[0], 1) ^ C[3]; in Theta()
156 A[y][0] = ROL64(A[y][0], rhotates[y][0]); in Rho()
157 A[y][1] = ROL64(A[y][1], rhotates[y][1]); in Rho()
158 A[y][2] = ROL64(A[y][2], rhotates[y][2]); in Rho()
159 A[y][3] = ROL64(A[y][3], rhotates[y][3]); in Rho()
160 A[y][4] = ROL64(A[y][4], rhotates[y][4]); in Rho()
269 D[1] = E[0] = ROL64(C[2], 1) ^ C[0]; in Round()
270 D[4] = E[1] = ROL64(C[0], 1) ^ C[3]; in Round()
271 D[0] = C[0] = ROL64(C[1], 1) ^ C[4]; in Round()
272 D[2] = C[1] = ROL64(C[3], 1) ^ C[1]; in Round()
273 D[3] = C[2] = ROL64(C[4], 1) ^ C[2]; in Round()
281 C[3] = ROL64(A[3][3] ^ C[2], rhotates[3][3]); /* D[3] */ in Round()
282 C[4] = ROL64(A[4][4] ^ E[1], rhotates[4][4]); /* D[4] */ in Round()
284 C[2] = ROL64(A[2][2] ^ C[1], rhotates[2][2]); /* D[2] */ in Round()
285 C[1] = ROL64(A[1][1] ^ E[0], rhotates[1][1]); /* D[1] */ in Round()
287 D[0] = ROL64(C[1], 1) ^ C[4]; in Round()
288 D[1] = ROL64(C[2], 1) ^ C[0]; in Round()
289 D[2] = ROL64(C[3], 1) ^ C[1]; in Round()
290 D[3] = ROL64(C[4], 1) ^ C[2]; in Round()
291 D[4] = ROL64(C[0], 1) ^ C[3]; in Round()
300 C[1] = ROL64(A[1][1] ^ D[1], rhotates[1][1]); in Round()
301 C[2] = ROL64(A[2][2] ^ D[2], rhotates[2][2]); in Round()
302 C[3] = ROL64(A[3][3] ^ D[3], rhotates[3][3]); in Round()
303 C[4] = ROL64(A[4][4] ^ D[4], rhotates[4][4]); in Round()
317 C[0] = ROL64(T[0][3], rhotates[0][3]); in Round()
318 C[1] = ROL64(A[1][4] ^ C[2], rhotates[1][4]); /* D[4] */ in Round()
319 C[2] = ROL64(A[2][0] ^ C[3], rhotates[2][0]); /* D[0] */ in Round()
320 C[3] = ROL64(A[3][1] ^ C[4], rhotates[3][1]); /* D[1] */ in Round()
321 C[4] = ROL64(A[4][2] ^ E[0], rhotates[4][2]); /* D[2] */ in Round()
329 C[0] = ROL64(T[0][1], rhotates[0][1]); in Round()
330 C[1] = ROL64(T[1][2], rhotates[1][2]); in Round()
331 C[2] = ROL64(A[2][3] ^ D[3], rhotates[2][3]); in Round()
332 C[3] = ROL64(A[3][4] ^ D[4], rhotates[3][4]); in Round()
333 C[4] = ROL64(A[4][0] ^ D[0], rhotates[4][0]); in Round()
341 C[0] = ROL64(T[0][4], rhotates[0][4]); in Round()
342 C[1] = ROL64(T[1][0], rhotates[1][0]); in Round()
343 C[2] = ROL64(T[1][1], rhotates[2][1]); /* originally A[2][1] */ in Round()
344 C[3] = ROL64(A[3][2] ^ D[2], rhotates[3][2]); in Round()
345 C[4] = ROL64(A[4][3] ^ D[3], rhotates[4][3]); in Round()
353 C[0] = ROL64(T[0][2], rhotates[0][2]); in Round()
354 C[1] = ROL64(T[1][3], rhotates[1][3]); in Round()
355 C[2] = ROL64(T[1][4], rhotates[2][4]); /* originally A[2][4] */ in Round()
356 C[3] = ROL64(T[0][0], rhotates[3][0]); /* originally A[3][0] */ in Round()
357 C[4] = ROL64(A[4][1] ^ D[1], rhotates[4][1]); in Round()
395 D[1] = C[0] ^ ROL64(C[2], 1); in Round()
396 D[2] = C[1] ^ ROL64(C[3], 1); in Round()
397 D[3] = C[2] ^= ROL64(C[4], 1); in Round()
398 D[4] = C[3] ^= ROL64(C[0], 1); in Round()
399 D[0] = C[4] ^= ROL64(C[1], 1); in Round()
436 A[0][1] = ROL64(A[1][1], rhotates[1][1]); in Round()
437 A[0][2] = ROL64(A[2][2], rhotates[2][2]); in Round()
438 A[0][3] = ROL64(A[3][3], rhotates[3][3]); in Round()
439 A[0][4] = ROL64(A[4][4], rhotates[4][4]); in Round()
441 A[1][1] = ROL64(A[1][4], rhotates[1][4]); in Round()
442 A[2][2] = ROL64(A[2][3], rhotates[2][3]); in Round()
443 A[3][3] = ROL64(A[3][2], rhotates[3][2]); in Round()
444 A[4][4] = ROL64(A[4][1], rhotates[4][1]); in Round()
446 A[1][4] = ROL64(A[4][2], rhotates[4][2]); in Round()
447 A[2][3] = ROL64(A[3][4], rhotates[3][4]); in Round()
448 A[3][2] = ROL64(A[2][1], rhotates[2][1]); in Round()
449 A[4][1] = ROL64(A[1][3], rhotates[1][3]); in Round()
451 A[4][2] = ROL64(A[2][4], rhotates[2][4]); in Round()
452 A[3][4] = ROL64(A[4][3], rhotates[4][3]); in Round()
453 A[2][1] = ROL64(A[1][2], rhotates[1][2]); in Round()
454 A[1][3] = ROL64(A[3][1], rhotates[3][1]); in Round()
456 A[2][4] = ROL64(A[4][0], rhotates[4][0]); in Round()
457 A[4][3] = ROL64(A[3][0], rhotates[3][0]); in Round()
458 A[1][2] = ROL64(A[2][0], rhotates[2][0]); in Round()
459 A[3][1] = ROL64(A[1][0], rhotates[1][0]); in Round()
461 A[1][0] = ROL64(C[3], rhotates[0][3]); in Round()
462 A[2][0] = ROL64(C[1], rhotates[0][1]); in Round()
463 A[3][0] = ROL64(C[4], rhotates[0][4]); in Round()
464 A[4][0] = ROL64(C[2], rhotates[0][2]); in Round()
540 D[0] = ROL64(C[1], 1) ^ C[4]; in Round()
541 D[1] = ROL64(C[2], 1) ^ C[0]; in Round()
542 D[2] = ROL64(C[3], 1) ^ C[1]; in Round()
543 D[3] = ROL64(C[4], 1) ^ C[2]; in Round()
544 D[4] = ROL64(C[0], 1) ^ C[3]; in Round()
547 C[1] = ROL64(A[1][1] ^ D[1], rhotates[1][1]); in Round()
548 C[2] = ROL64(A[2][2] ^ D[2], rhotates[2][2]); in Round()
549 C[3] = ROL64(A[3][3] ^ D[3], rhotates[3][3]); in Round()
550 C[4] = ROL64(A[4][4] ^ D[4], rhotates[4][4]); in Round()
566 C[0] = ROL64(A[0][3] ^ D[3], rhotates[0][3]); in Round()
567 C[1] = ROL64(A[1][4] ^ D[4], rhotates[1][4]); in Round()
568 C[2] = ROL64(A[2][0] ^ D[0], rhotates[2][0]); in Round()
569 C[3] = ROL64(A[3][1] ^ D[1], rhotates[3][1]); in Round()
570 C[4] = ROL64(A[4][2] ^ D[2], rhotates[4][2]); in Round()
586 C[0] = ROL64(A[0][1] ^ D[1], rhotates[0][1]); in Round()
587 C[1] = ROL64(A[1][2] ^ D[2], rhotates[1][2]); in Round()
588 C[2] = ROL64(A[2][3] ^ D[3], rhotates[2][3]); in Round()
589 C[3] = ROL64(A[3][4] ^ D[4], rhotates[3][4]); in Round()
590 C[4] = ROL64(A[4][0] ^ D[0], rhotates[4][0]); in Round()
606 C[0] = ROL64(A[0][4] ^ D[4], rhotates[0][4]); in Round()
607 C[1] = ROL64(A[1][0] ^ D[0], rhotates[1][0]); in Round()
608 C[2] = ROL64(A[2][1] ^ D[1], rhotates[2][1]); in Round()
609 C[3] = ROL64(A[3][2] ^ D[2], rhotates[3][2]); in Round()
610 C[4] = ROL64(A[4][3] ^ D[3], rhotates[4][3]); in Round()
626 C[0] = ROL64(A[0][2] ^ D[2], rhotates[0][2]); in Round()
627 C[1] = ROL64(A[1][3] ^ D[3], rhotates[1][3]); in Round()
628 C[2] = ROL64(A[2][4] ^ D[4], rhotates[2][4]); in Round()
629 C[3] = ROL64(A[3][0] ^ D[0], rhotates[3][0]); in Round()
630 C[4] = ROL64(A[4][1] ^ D[1], rhotates[4][1]); in Round()
699 D[0] = ROL64(C[1], 1) ^ C[4]; in FourRounds()
700 D[1] = ROL64(C[2], 1) ^ C[0]; in FourRounds()
701 D[2] = ROL64(C[3], 1) ^ C[1]; in FourRounds()
702 D[3] = ROL64(C[4], 1) ^ C[2]; in FourRounds()
703 D[4] = ROL64(C[0], 1) ^ C[3]; in FourRounds()
706 B[1] = ROL64(A[1][1] ^ D[1], rhotates[1][1]); in FourRounds()
707 B[2] = ROL64(A[2][2] ^ D[2], rhotates[2][2]); in FourRounds()
708 B[3] = ROL64(A[3][3] ^ D[3], rhotates[3][3]); in FourRounds()
709 B[4] = ROL64(A[4][4] ^ D[4], rhotates[4][4]); in FourRounds()
717 B[0] = ROL64(A[0][3] ^ D[3], rhotates[0][3]); in FourRounds()
718 B[1] = ROL64(A[1][4] ^ D[4], rhotates[1][4]); in FourRounds()
719 B[2] = ROL64(A[2][0] ^ D[0], rhotates[2][0]); in FourRounds()
720 B[3] = ROL64(A[3][1] ^ D[1], rhotates[3][1]); in FourRounds()
721 B[4] = ROL64(A[4][2] ^ D[2], rhotates[4][2]); in FourRounds()
729 B[0] = ROL64(A[0][1] ^ D[1], rhotates[0][1]); in FourRounds()
730 B[1] = ROL64(A[1][2] ^ D[2], rhotates[1][2]); in FourRounds()
731 B[2] = ROL64(A[2][3] ^ D[3], rhotates[2][3]); in FourRounds()
732 B[3] = ROL64(A[3][4] ^ D[4], rhotates[3][4]); in FourRounds()
733 B[4] = ROL64(A[4][0] ^ D[0], rhotates[4][0]); in FourRounds()
741 B[0] = ROL64(A[0][4] ^ D[4], rhotates[0][4]); in FourRounds()
742 B[1] = ROL64(A[1][0] ^ D[0], rhotates[1][0]); in FourRounds()
743 B[2] = ROL64(A[2][1] ^ D[1], rhotates[2][1]); in FourRounds()
744 B[3] = ROL64(A[3][2] ^ D[2], rhotates[3][2]); in FourRounds()
745 B[4] = ROL64(A[4][3] ^ D[3], rhotates[4][3]); in FourRounds()
753 B[0] = ROL64(A[0][2] ^ D[2], rhotates[0][2]); in FourRounds()
754 B[1] = ROL64(A[1][3] ^ D[3], rhotates[1][3]); in FourRounds()
755 B[2] = ROL64(A[2][4] ^ D[4], rhotates[2][4]); in FourRounds()
756 B[3] = ROL64(A[3][0] ^ D[0], rhotates[3][0]); in FourRounds()
757 B[4] = ROL64(A[4][1] ^ D[1], rhotates[4][1]); in FourRounds()
766 D[0] = ROL64(C[1], 1) ^ C[4]; in FourRounds()
767 D[1] = ROL64(C[2], 1) ^ C[0]; in FourRounds()
768 D[2] = ROL64(C[3], 1) ^ C[1]; in FourRounds()
769 D[3] = ROL64(C[4], 1) ^ C[2]; in FourRounds()
770 D[4] = ROL64(C[0], 1) ^ C[3]; in FourRounds()
773 B[1] = ROL64(A[3][1] ^ D[1], rhotates[1][1]); in FourRounds()
774 B[2] = ROL64(A[1][2] ^ D[2], rhotates[2][2]); in FourRounds()
775 B[3] = ROL64(A[4][3] ^ D[3], rhotates[3][3]); in FourRounds()
776 B[4] = ROL64(A[2][4] ^ D[4], rhotates[4][4]); in FourRounds()
784 B[0] = ROL64(A[3][3] ^ D[3], rhotates[0][3]); in FourRounds()
785 B[1] = ROL64(A[1][4] ^ D[4], rhotates[1][4]); in FourRounds()
786 B[2] = ROL64(A[4][0] ^ D[0], rhotates[2][0]); in FourRounds()
787 B[3] = ROL64(A[2][1] ^ D[1], rhotates[3][1]); in FourRounds()
788 B[4] = ROL64(A[0][2] ^ D[2], rhotates[4][2]); in FourRounds()
796 B[0] = ROL64(A[1][1] ^ D[1], rhotates[0][1]); in FourRounds()
797 B[1] = ROL64(A[4][2] ^ D[2], rhotates[1][2]); in FourRounds()
798 B[2] = ROL64(A[2][3] ^ D[3], rhotates[2][3]); in FourRounds()
799 B[3] = ROL64(A[0][4] ^ D[4], rhotates[3][4]); in FourRounds()
800 B[4] = ROL64(A[3][0] ^ D[0], rhotates[4][0]); in FourRounds()
808 B[0] = ROL64(A[4][4] ^ D[4], rhotates[0][4]); in FourRounds()
809 B[1] = ROL64(A[2][0] ^ D[0], rhotates[1][0]); in FourRounds()
810 B[2] = ROL64(A[0][1] ^ D[1], rhotates[2][1]); in FourRounds()
811 B[3] = ROL64(A[3][2] ^ D[2], rhotates[3][2]); in FourRounds()
812 B[4] = ROL64(A[1][3] ^ D[3], rhotates[4][3]); in FourRounds()
820 B[0] = ROL64(A[2][2] ^ D[2], rhotates[0][2]); in FourRounds()
821 B[1] = ROL64(A[0][3] ^ D[3], rhotates[1][3]); in FourRounds()
822 B[2] = ROL64(A[3][4] ^ D[4], rhotates[2][4]); in FourRounds()
823 B[3] = ROL64(A[1][0] ^ D[0], rhotates[3][0]); in FourRounds()
824 B[4] = ROL64(A[4][1] ^ D[1], rhotates[4][1]); in FourRounds()
833 D[0] = ROL64(C[1], 1) ^ C[4]; in FourRounds()
834 D[1] = ROL64(C[2], 1) ^ C[0]; in FourRounds()
835 D[2] = ROL64(C[3], 1) ^ C[1]; in FourRounds()
836 D[3] = ROL64(C[4], 1) ^ C[2]; in FourRounds()
837 D[4] = ROL64(C[0], 1) ^ C[3]; in FourRounds()
840 B[1] = ROL64(A[2][1] ^ D[1], rhotates[1][1]); in FourRounds()
841 B[2] = ROL64(A[4][2] ^ D[2], rhotates[2][2]); in FourRounds()
842 B[3] = ROL64(A[1][3] ^ D[3], rhotates[3][3]); in FourRounds()
843 B[4] = ROL64(A[3][4] ^ D[4], rhotates[4][4]); in FourRounds()
851 B[0] = ROL64(A[4][3] ^ D[3], rhotates[0][3]); in FourRounds()
852 B[1] = ROL64(A[1][4] ^ D[4], rhotates[1][4]); in FourRounds()
853 B[2] = ROL64(A[3][0] ^ D[0], rhotates[2][0]); in FourRounds()
854 B[3] = ROL64(A[0][1] ^ D[1], rhotates[3][1]); in FourRounds()
855 B[4] = ROL64(A[2][2] ^ D[2], rhotates[4][2]); in FourRounds()
863 B[0] = ROL64(A[3][1] ^ D[1], rhotates[0][1]); in FourRounds()
864 B[1] = ROL64(A[0][2] ^ D[2], rhotates[1][2]); in FourRounds()
865 B[2] = ROL64(A[2][3] ^ D[3], rhotates[2][3]); in FourRounds()
866 B[3] = ROL64(A[4][4] ^ D[4], rhotates[3][4]); in FourRounds()
867 B[4] = ROL64(A[1][0] ^ D[0], rhotates[4][0]); in FourRounds()
875 B[0] = ROL64(A[2][4] ^ D[4], rhotates[0][4]); in FourRounds()
876 B[1] = ROL64(A[4][0] ^ D[0], rhotates[1][0]); in FourRounds()
877 B[2] = ROL64(A[1][1] ^ D[1], rhotates[2][1]); in FourRounds()
878 B[3] = ROL64(A[3][2] ^ D[2], rhotates[3][2]); in FourRounds()
879 B[4] = ROL64(A[0][3] ^ D[3], rhotates[4][3]); in FourRounds()
887 B[0] = ROL64(A[1][2] ^ D[2], rhotates[0][2]); in FourRounds()
888 B[1] = ROL64(A[3][3] ^ D[3], rhotates[1][3]); in FourRounds()
889 B[2] = ROL64(A[0][4] ^ D[4], rhotates[2][4]); in FourRounds()
890 B[3] = ROL64(A[2][0] ^ D[0], rhotates[3][0]); in FourRounds()
891 B[4] = ROL64(A[4][1] ^ D[1], rhotates[4][1]); in FourRounds()
900 D[0] = ROL64(C[1], 1) ^ C[4]; in FourRounds()
901 D[1] = ROL64(C[2], 1) ^ C[0]; in FourRounds()
902 D[2] = ROL64(C[3], 1) ^ C[1]; in FourRounds()
903 D[3] = ROL64(C[4], 1) ^ C[2]; in FourRounds()
904 D[4] = ROL64(C[0], 1) ^ C[3]; in FourRounds()
907 B[1] = ROL64(A[0][1] ^ D[1], rhotates[1][1]); in FourRounds()
908 B[2] = ROL64(A[0][2] ^ D[2], rhotates[2][2]); in FourRounds()
909 B[3] = ROL64(A[0][3] ^ D[3], rhotates[3][3]); in FourRounds()
910 B[4] = ROL64(A[0][4] ^ D[4], rhotates[4][4]); in FourRounds()
918 B[0] = ROL64(A[1][3] ^ D[3], rhotates[0][3]); in FourRounds()
919 B[1] = ROL64(A[1][4] ^ D[4], rhotates[1][4]); in FourRounds()
920 B[2] = ROL64(A[1][0] ^ D[0], rhotates[2][0]); in FourRounds()
921 B[3] = ROL64(A[1][1] ^ D[1], rhotates[3][1]); in FourRounds()
922 B[4] = ROL64(A[1][2] ^ D[2], rhotates[4][2]); in FourRounds()
930 B[0] = ROL64(A[2][1] ^ D[1], rhotates[0][1]); in FourRounds()
931 B[1] = ROL64(A[2][2] ^ D[2], rhotates[1][2]); in FourRounds()
932 B[2] = ROL64(A[2][3] ^ D[3], rhotates[2][3]); in FourRounds()
933 B[3] = ROL64(A[2][4] ^ D[4], rhotates[3][4]); in FourRounds()
934 B[4] = ROL64(A[2][0] ^ D[0], rhotates[4][0]); in FourRounds()
942 B[0] = ROL64(A[3][4] ^ D[4], rhotates[0][4]); in FourRounds()
943 B[1] = ROL64(A[3][0] ^ D[0], rhotates[1][0]); in FourRounds()
944 B[2] = ROL64(A[3][1] ^ D[1], rhotates[2][1]); in FourRounds()
945 B[3] = ROL64(A[3][2] ^ D[2], rhotates[3][2]); in FourRounds()
946 B[4] = ROL64(A[3][3] ^ D[3], rhotates[4][3]); in FourRounds()
954 B[0] = ROL64(A[4][2] ^ D[2], rhotates[0][2]); in FourRounds()
955 B[1] = ROL64(A[4][3] ^ D[3], rhotates[1][3]); in FourRounds()
956 B[2] = ROL64(A[4][4] ^ D[4], rhotates[2][4]); in FourRounds()
957 B[3] = ROL64(A[4][0] ^ D[0], rhotates[3][0]); in FourRounds()
958 B[4] = ROL64(A[4][1] ^ D[1], rhotates[4][1]); in FourRounds()