Lines Matching refs:subr
477 #define subr(x) subR[(x)]
498 subl(0) = kll; subr(0) = klr;
500 subl(1) = krl; subr(1) = krr;
504 subl(4) = kll; subr(4) = klr;
506 subl(5) = krl; subr(5) = krr;
510 subl(10) = kll; subr(10) = klr;
512 subl(11) = krl; subr(11) = krr;
516 subl(13) = krl; subr(13) = krr;
520 subl(16) = kll; subr(16) = klr;
522 subl(17) = krl; subr(17) = krr;
526 subl(18) = kll; subr(18) = klr;
528 subl(19) = krl; subr(19) = krr;
532 subl(22) = kll; subr(22) = klr;
534 subl(23) = krl; subr(23) = krr;
537 kll = subl(0); klr = subr(0);
538 krl = subl(1); krr = subr(1);
558 subl(2) = kll; subr(2) = klr;
559 subl(3) = krl; subr(3) = krr;
562 subl(6) = kll; subr(6) = klr;
563 subl(7) = krl; subr(7) = krr;
566 subl(8) = kll; subr(8) = klr;
567 subl(9) = krl; subr(9) = krr;
570 subl(12) = kll; subr(12) = klr;
573 subl(14) = kll; subr(14) = klr;
574 subl(15) = krl; subr(15) = krr;
577 subl(20) = kll; subr(20) = klr;
578 subl(21) = krl; subr(21) = krr;
581 subl(24) = kll; subr(24) = klr;
582 subl(25) = krl; subr(25) = krr;
587 subl(3) ^= subl(1); subr(3) ^= subr(1);
589 subl(5) ^= subl(1); subr(5) ^= subr(1);
591 subl(7) ^= subl(1); subr(7) ^= subr(1);
592 subl(1) ^= subr(1) & ~subr(9);
594 subr(1) ^= CAMELLIA_RL1(dw); /* modified for FLinv(kl2) */
596 subl(11) ^= subl(1); subr(11) ^= subr(1);
598 subl(13) ^= subl(1); subr(13) ^= subr(1);
600 subl(15) ^= subl(1); subr(15) ^= subr(1);
601 subl(1) ^= subr(1) & ~subr(17);
603 subr(1) ^= CAMELLIA_RL1(dw); /* modified for FLinv(kl4) */
605 subl(19) ^= subl(1); subr(19) ^= subr(1);
607 subl(21) ^= subl(1); subr(21) ^= subr(1);
609 subl(23) ^= subl(1); subr(23) ^= subr(1);
611 subl(24) ^= subl(1); subr(24) ^= subr(1);
614 kw4l = subl(25); kw4r = subr(25);
616 subl(22) ^= kw4l; subr(22) ^= kw4r;
618 subl(20) ^= kw4l; subr(20) ^= kw4r;
620 subl(18) ^= kw4l; subr(18) ^= kw4r;
621 kw4l ^= kw4r & ~subr(16);
625 subl(14) ^= kw4l; subr(14) ^= kw4r;
627 subl(12) ^= kw4l; subr(12) ^= kw4r;
629 subl(10) ^= kw4l; subr(10) ^= kw4r;
630 kw4l ^= kw4r & ~subr(8);
634 subl(6) ^= kw4l; subr(6) ^= kw4r;
636 subl(4) ^= kw4l; subr(4) ^= kw4r;
638 subl(2) ^= kw4l; subr(2) ^= kw4r;
640 subl(0) ^= kw4l; subr(0) ^= kw4r;
645 CamelliaSubkeyR(0) = subr(0) ^ subr(2);
647 CamelliaSubkeyR(2) = subr(3);
649 CamelliaSubkeyR(3) = subr(2) ^ subr(4);
651 CamelliaSubkeyR(4) = subr(3) ^ subr(5);
653 CamelliaSubkeyR(5) = subr(4) ^ subr(6);
655 CamelliaSubkeyR(6) = subr(5) ^ subr(7);
656 tl = subl(10) ^ (subr(10) & ~subr(8));
658 tr = subr(10) ^ CAMELLIA_RL1(dw);
660 CamelliaSubkeyR(7) = subr(6) ^ tr;
662 CamelliaSubkeyR(8) = subr(8);
664 CamelliaSubkeyR(9) = subr(9);
665 tl = subl(7) ^ (subr(7) & ~subr(9));
667 tr = subr(7) ^ CAMELLIA_RL1(dw);
669 CamelliaSubkeyR(10) = tr ^ subr(11);
671 CamelliaSubkeyR(11) = subr(10) ^ subr(12);
673 CamelliaSubkeyR(12) = subr(11) ^ subr(13);
675 CamelliaSubkeyR(13) = subr(12) ^ subr(14);
677 CamelliaSubkeyR(14) = subr(13) ^ subr(15);
678 tl = subl(18) ^ (subr(18) & ~subr(16));
680 tr = subr(18) ^ CAMELLIA_RL1(dw);
682 CamelliaSubkeyR(15) = subr(14) ^ tr;
684 CamelliaSubkeyR(16) = subr(16);
686 CamelliaSubkeyR(17) = subr(17);
687 tl = subl(15) ^ (subr(15) & ~subr(17));
689 tr = subr(15) ^ CAMELLIA_RL1(dw);
691 CamelliaSubkeyR(18) = tr ^ subr(19);
693 CamelliaSubkeyR(19) = subr(18) ^ subr(20);
695 CamelliaSubkeyR(20) = subr(19) ^ subr(21);
697 CamelliaSubkeyR(21) = subr(20) ^ subr(22);
699 CamelliaSubkeyR(22) = subr(21) ^ subr(23);
701 CamelliaSubkeyR(23) = subr(22);
703 CamelliaSubkeyR(24) = subr(24) ^ subr(23);
807 subl(0) = kll; subr(0) = klr;
809 subl(1) = krl; subr(1) = krr;
812 subl(12) = kll; subr(12) = klr;
814 subl(13) = krl; subr(13) = krr;
817 subl(16) = kll; subr(16) = klr;
819 subl(17) = krl; subr(17) = krr;
822 subl(22) = kll; subr(22) = klr;
824 subl(23) = krl; subr(23) = krr;
827 subl(30) = kll; subr(30) = klr;
829 subl(31) = krl; subr(31) = krr;
834 subl(4) = krll; subr(4) = krlr;
836 subl(5) = krrl; subr(5) = krrr;
839 subl(8) = krll; subr(8) = krlr;
841 subl(9) = krrl; subr(9) = krrr;
844 subl(18) = krll; subr(18) = krlr;
846 subl(19) = krrl; subr(19) = krrr;
849 subl(26) = krll; subr(26) = krlr;
851 subl(27) = krrl; subr(27) = krrr;
855 kll = subl(0) ^ krll; klr = subr(0) ^ krlr;
856 krl = subl(1) ^ krrl; krr = subr(1) ^ krrr;
889 subl(6) = kll; subr(6) = klr;
891 subl(7) = krl; subr(7) = krr;
894 subl(14) = kll; subr(14) = klr;
896 subl(15) = krl; subr(15) = krr;
899 subl(24) = klr; subr(24) = krl;
901 subl(25) = krr; subr(25) = kll;
905 subl(28) = kll; subr(28) = klr;
907 subl(29) = krl; subr(29) = krr;
911 subl(2) = krll; subr(2) = krlr;
913 subl(3) = krrl; subr(3) = krrr;
916 subl(10) = krll; subr(10) = krlr;
918 subl(11) = krrl; subr(11) = krrr;
921 subl(20) = krll; subr(20) = krlr;
923 subl(21) = krrl; subr(21) = krrr;
926 subl(32) = krll; subr(32) = krlr;
928 subl(33) = krrl; subr(33) = krrr;
932 subl(3) ^= subl(1); subr(3) ^= subr(1);
934 subl(5) ^= subl(1); subr(5) ^= subr(1);
936 subl(7) ^= subl(1); subr(7) ^= subr(1);
937 subl(1) ^= subr(1) & ~subr(9);
939 subr(1) ^= CAMELLIA_RL1(dw); /* modified for FLinv(kl2) */
941 subl(11) ^= subl(1); subr(11) ^= subr(1);
943 subl(13) ^= subl(1); subr(13) ^= subr(1);
945 subl(15) ^= subl(1); subr(15) ^= subr(1);
946 subl(1) ^= subr(1) & ~subr(17);
948 subr(1) ^= CAMELLIA_RL1(dw); /* modified for FLinv(kl4) */
950 subl(19) ^= subl(1); subr(19) ^= subr(1);
952 subl(21) ^= subl(1); subr(21) ^= subr(1);
954 subl(23) ^= subl(1); subr(23) ^= subr(1);
955 subl(1) ^= subr(1) & ~subr(25);
957 subr(1) ^= CAMELLIA_RL1(dw); /* modified for FLinv(kl6) */
959 subl(27) ^= subl(1); subr(27) ^= subr(1);
961 subl(29) ^= subl(1); subr(29) ^= subr(1);
963 subl(31) ^= subl(1); subr(31) ^= subr(1);
965 subl(32) ^= subl(1); subr(32) ^= subr(1);
969 kw4l = subl(33); kw4r = subr(33);
971 subl(30) ^= kw4l; subr(30) ^= kw4r;
973 subl(28) ^= kw4l; subr(28) ^= kw4r;
975 subl(26) ^= kw4l; subr(26) ^= kw4r;
976 kw4l ^= kw4r & ~subr(24);
980 subl(22) ^= kw4l; subr(22) ^= kw4r;
982 subl(20) ^= kw4l; subr(20) ^= kw4r;
984 subl(18) ^= kw4l; subr(18) ^= kw4r;
985 kw4l ^= kw4r & ~subr(16);
989 subl(14) ^= kw4l; subr(14) ^= kw4r;
991 subl(12) ^= kw4l; subr(12) ^= kw4r;
993 subl(10) ^= kw4l; subr(10) ^= kw4r;
994 kw4l ^= kw4r & ~subr(8);
998 subl(6) ^= kw4l; subr(6) ^= kw4r;
1000 subl(4) ^= kw4l; subr(4) ^= kw4r;
1002 subl(2) ^= kw4l; subr(2) ^= kw4r;
1004 subl(0) ^= kw4l; subr(0) ^= kw4r;
1008 CamelliaSubkeyR(0) = subr(0) ^ subr(2);
1010 CamelliaSubkeyR(2) = subr(3);
1012 CamelliaSubkeyR(3) = subr(2) ^ subr(4);
1014 CamelliaSubkeyR(4) = subr(3) ^ subr(5);
1016 CamelliaSubkeyR(5) = subr(4) ^ subr(6);
1018 CamelliaSubkeyR(6) = subr(5) ^ subr(7);
1019 tl = subl(10) ^ (subr(10) & ~subr(8));
1021 tr = subr(10) ^ CAMELLIA_RL1(dw);
1023 CamelliaSubkeyR(7) = subr(6) ^ tr;
1025 CamelliaSubkeyR(8) = subr(8);
1027 CamelliaSubkeyR(9) = subr(9);
1028 tl = subl(7) ^ (subr(7) & ~subr(9));
1030 tr = subr(7) ^ CAMELLIA_RL1(dw);
1032 CamelliaSubkeyR(10) = tr ^ subr(11);
1034 CamelliaSubkeyR(11) = subr(10) ^ subr(12);
1036 CamelliaSubkeyR(12) = subr(11) ^ subr(13);
1038 CamelliaSubkeyR(13) = subr(12) ^ subr(14);
1040 CamelliaSubkeyR(14) = subr(13) ^ subr(15);
1041 tl = subl(18) ^ (subr(18) & ~subr(16));
1043 tr = subr(18) ^ CAMELLIA_RL1(dw);
1045 CamelliaSubkeyR(15) = subr(14) ^ tr;
1047 CamelliaSubkeyR(16) = subr(16);
1049 CamelliaSubkeyR(17) = subr(17);
1050 tl = subl(15) ^ (subr(15) & ~subr(17));
1052 tr = subr(15) ^ CAMELLIA_RL1(dw);
1054 CamelliaSubkeyR(18) = tr ^ subr(19);
1056 CamelliaSubkeyR(19) = subr(18) ^ subr(20);
1058 CamelliaSubkeyR(20) = subr(19) ^ subr(21);
1060 CamelliaSubkeyR(21) = subr(20) ^ subr(22);
1062 CamelliaSubkeyR(22) = subr(21) ^ subr(23);
1063 tl = subl(26) ^ (subr(26)
1064 & ~subr(24));
1066 tr = subr(26) ^ CAMELLIA_RL1(dw);
1068 CamelliaSubkeyR(23) = subr(22) ^ tr;
1070 CamelliaSubkeyR(24) = subr(24);
1072 CamelliaSubkeyR(25) = subr(25);
1073 tl = subl(23) ^ (subr(23) &
1074 ~subr(25));
1076 tr = subr(23) ^ CAMELLIA_RL1(dw);
1078 CamelliaSubkeyR(26) = tr ^ subr(27);
1080 CamelliaSubkeyR(27) = subr(26) ^ subr(28);
1082 CamelliaSubkeyR(28) = subr(27) ^ subr(29);
1084 CamelliaSubkeyR(29) = subr(28) ^ subr(30);
1086 CamelliaSubkeyR(30) = subr(29) ^ subr(31);
1088 CamelliaSubkeyR(31) = subr(30);
1090 CamelliaSubkeyR(32) = subr(32) ^ subr(31);