Lines Matching refs:subr
445 #define subr(x) subR[(x)]
465 subl(0) = kll; subr(0) = klr;
466 subl(1) = krl; subr(1) = krr;
468 subl(4) = kll; subr(4) = klr;
469 subl(5) = krl; subr(5) = krr;
471 subl(10) = kll; subr(10) = klr;
472 subl(11) = krl; subr(11) = krr;
474 subl(13) = krl; subr(13) = krr;
476 subl(16) = kll; subr(16) = klr;
477 subl(17) = krl; subr(17) = krr;
479 subl(18) = kll; subr(18) = klr;
480 subl(19) = krl; subr(19) = krr;
482 subl(22) = kll; subr(22) = klr;
483 subl(23) = krl; subr(23) = krr;
486 kll = subl(0); klr = subr(0);
487 krl = subl(1); krr = subr(1);
505 subl(2) = kll; subr(2) = klr;
506 subl(3) = krl; subr(3) = krr;
508 subl(6) = kll; subr(6) = klr;
509 subl(7) = krl; subr(7) = krr;
511 subl(8) = kll; subr(8) = klr;
512 subl(9) = krl; subr(9) = krr;
514 subl(12) = kll; subr(12) = klr;
516 subl(14) = kll; subr(14) = klr;
517 subl(15) = krl; subr(15) = krr;
519 subl(20) = kll; subr(20) = klr;
520 subl(21) = krl; subr(21) = krr;
522 subl(24) = kll; subr(24) = klr;
523 subl(25) = krl; subr(25) = krr;
527 subl(3) ^= subl(1); subr(3) ^= subr(1);
528 subl(5) ^= subl(1); subr(5) ^= subr(1);
529 subl(7) ^= subl(1); subr(7) ^= subr(1);
530 subl(1) ^= subr(1) & ~subr(9);
531 dw = subl(1) & subl(9), subr(1) ^= CAMELLIA_RL1(dw);
532 subl(11) ^= subl(1); subr(11) ^= subr(1);
533 subl(13) ^= subl(1); subr(13) ^= subr(1);
534 subl(15) ^= subl(1); subr(15) ^= subr(1);
535 subl(1) ^= subr(1) & ~subr(17);
536 dw = subl(1) & subl(17), subr(1) ^= CAMELLIA_RL1(dw);
537 subl(19) ^= subl(1); subr(19) ^= subr(1);
538 subl(21) ^= subl(1); subr(21) ^= subr(1);
539 subl(23) ^= subl(1); subr(23) ^= subr(1);
540 subl(24) ^= subl(1); subr(24) ^= subr(1);
543 kw4l = subl(25); kw4r = subr(25);
544 subl(22) ^= kw4l; subr(22) ^= kw4r;
545 subl(20) ^= kw4l; subr(20) ^= kw4r;
546 subl(18) ^= kw4l; subr(18) ^= kw4r;
547 kw4l ^= kw4r & ~subr(16);
549 subl(14) ^= kw4l; subr(14) ^= kw4r;
550 subl(12) ^= kw4l; subr(12) ^= kw4r;
551 subl(10) ^= kw4l; subr(10) ^= kw4r;
552 kw4l ^= kw4r & ~subr(8);
554 subl(6) ^= kw4l; subr(6) ^= kw4r;
555 subl(4) ^= kw4l; subr(4) ^= kw4r;
556 subl(2) ^= kw4l; subr(2) ^= kw4r;
557 subl(0) ^= kw4l; subr(0) ^= kw4r;
561 CamelliaSubkeyR(0) = subr(0) ^ subr(2);
563 CamelliaSubkeyR(2) = subr(3);
565 CamelliaSubkeyR(3) = subr(2) ^ subr(4);
567 CamelliaSubkeyR(4) = subr(3) ^ subr(5);
569 CamelliaSubkeyR(5) = subr(4) ^ subr(6);
571 CamelliaSubkeyR(6) = subr(5) ^ subr(7);
572 tl = subl(10) ^ (subr(10) & ~subr(8));
573 dw = tl & subl(8), tr = subr(10) ^ CAMELLIA_RL1(dw);
575 CamelliaSubkeyR(7) = subr(6) ^ tr;
577 CamelliaSubkeyR(8) = subr(8);
579 CamelliaSubkeyR(9) = subr(9);
580 tl = subl(7) ^ (subr(7) & ~subr(9));
581 dw = tl & subl(9), tr = subr(7) ^ CAMELLIA_RL1(dw);
583 CamelliaSubkeyR(10) = tr ^ subr(11);
585 CamelliaSubkeyR(11) = subr(10) ^ subr(12);
587 CamelliaSubkeyR(12) = subr(11) ^ subr(13);
589 CamelliaSubkeyR(13) = subr(12) ^ subr(14);
591 CamelliaSubkeyR(14) = subr(13) ^ subr(15);
592 tl = subl(18) ^ (subr(18) & ~subr(16));
593 dw = tl & subl(16), tr = subr(18) ^ CAMELLIA_RL1(dw);
595 CamelliaSubkeyR(15) = subr(14) ^ tr;
597 CamelliaSubkeyR(16) = subr(16);
599 CamelliaSubkeyR(17) = subr(17);
600 tl = subl(15) ^ (subr(15) & ~subr(17));
601 dw = tl & subl(17), tr = subr(15) ^ CAMELLIA_RL1(dw);
603 CamelliaSubkeyR(18) = tr ^ subr(19);
605 CamelliaSubkeyR(19) = subr(18) ^ subr(20);
607 CamelliaSubkeyR(20) = subr(19) ^ subr(21);
609 CamelliaSubkeyR(21) = subr(20) ^ subr(22);
611 CamelliaSubkeyR(22) = subr(21) ^ subr(23);
613 CamelliaSubkeyR(23) = subr(22);
615 CamelliaSubkeyR(24) = subr(24) ^ subr(23);
682 subl(0) = kll; subr(0) = klr;
683 subl(1) = krl; subr(1) = krr;
685 subl(12) = kll; subr(12) = klr;
686 subl(13) = krl; subr(13) = krr;
688 subl(16) = kll; subr(16) = klr;
689 subl(17) = krl; subr(17) = krr;
691 subl(22) = kll; subr(22) = klr;
692 subl(23) = krl; subr(23) = krr;
694 subl(30) = kll; subr(30) = klr;
695 subl(31) = krl; subr(31) = krr;
699 subl(4) = krll; subr(4) = krlr;
700 subl(5) = krrl; subr(5) = krrr;
702 subl(8) = krll; subr(8) = krlr;
703 subl(9) = krrl; subr(9) = krrr;
705 subl(18) = krll; subr(18) = krlr;
706 subl(19) = krrl; subr(19) = krrr;
708 subl(26) = krll; subr(26) = krlr;
709 subl(27) = krrl; subr(27) = krrr;
713 kll = subl(0) ^ krll; klr = subr(0) ^ krlr;
714 krl = subl(1) ^ krrl; krr = subr(1) ^ krrr;
746 subl(6) = kll; subr(6) = klr;
747 subl(7) = krl; subr(7) = krr;
749 subl(14) = kll; subr(14) = klr;
750 subl(15) = krl; subr(15) = krr;
751 subl(24) = klr; subr(24) = krl;
752 subl(25) = krr; subr(25) = kll;
754 subl(28) = kll; subr(28) = klr;
755 subl(29) = krl; subr(29) = krr;
758 subl(2) = krll; subr(2) = krlr;
759 subl(3) = krrl; subr(3) = krrr;
761 subl(10) = krll; subr(10) = krlr;
762 subl(11) = krrl; subr(11) = krrr;
764 subl(20) = krll; subr(20) = krlr;
765 subl(21) = krrl; subr(21) = krrr;
767 subl(32) = krll; subr(32) = krlr;
768 subl(33) = krrl; subr(33) = krrr;
771 subl(3) ^= subl(1); subr(3) ^= subr(1);
772 subl(5) ^= subl(1); subr(5) ^= subr(1);
773 subl(7) ^= subl(1); subr(7) ^= subr(1);
774 subl(1) ^= subr(1) & ~subr(9);
775 dw = subl(1) & subl(9), subr(1) ^= CAMELLIA_RL1(dw);
776 subl(11) ^= subl(1); subr(11) ^= subr(1);
777 subl(13) ^= subl(1); subr(13) ^= subr(1);
778 subl(15) ^= subl(1); subr(15) ^= subr(1);
779 subl(1) ^= subr(1) & ~subr(17);
780 dw = subl(1) & subl(17), subr(1) ^= CAMELLIA_RL1(dw);
781 subl(19) ^= subl(1); subr(19) ^= subr(1);
782 subl(21) ^= subl(1); subr(21) ^= subr(1);
783 subl(23) ^= subl(1); subr(23) ^= subr(1);
784 subl(1) ^= subr(1) & ~subr(25);
785 dw = subl(1) & subl(25), subr(1) ^= CAMELLIA_RL1(dw);
786 subl(27) ^= subl(1); subr(27) ^= subr(1);
787 subl(29) ^= subl(1); subr(29) ^= subr(1);
788 subl(31) ^= subl(1); subr(31) ^= subr(1);
789 subl(32) ^= subl(1); subr(32) ^= subr(1);
792 kw4l = subl(33); kw4r = subr(33);
793 subl(30) ^= kw4l; subr(30) ^= kw4r;
794 subl(28) ^= kw4l; subr(28) ^= kw4r;
795 subl(26) ^= kw4l; subr(26) ^= kw4r;
796 kw4l ^= kw4r & ~subr(24);
798 subl(22) ^= kw4l; subr(22) ^= kw4r;
799 subl(20) ^= kw4l; subr(20) ^= kw4r;
800 subl(18) ^= kw4l; subr(18) ^= kw4r;
801 kw4l ^= kw4r & ~subr(16);
803 subl(14) ^= kw4l; subr(14) ^= kw4r;
804 subl(12) ^= kw4l; subr(12) ^= kw4r;
805 subl(10) ^= kw4l; subr(10) ^= kw4r;
806 kw4l ^= kw4r & ~subr(8);
808 subl(6) ^= kw4l; subr(6) ^= kw4r;
809 subl(4) ^= kw4l; subr(4) ^= kw4r;
810 subl(2) ^= kw4l; subr(2) ^= kw4r;
811 subl(0) ^= kw4l; subr(0) ^= kw4r;
815 CamelliaSubkeyR(0) = subr(0) ^ subr(2);
817 CamelliaSubkeyR(2) = subr(3);
819 CamelliaSubkeyR(3) = subr(2) ^ subr(4);
821 CamelliaSubkeyR(4) = subr(3) ^ subr(5);
823 CamelliaSubkeyR(5) = subr(4) ^ subr(6);
825 CamelliaSubkeyR(6) = subr(5) ^ subr(7);
826 tl = subl(10) ^ (subr(10) & ~subr(8));
827 dw = tl & subl(8), tr = subr(10) ^ CAMELLIA_RL1(dw);
829 CamelliaSubkeyR(7) = subr(6) ^ tr;
831 CamelliaSubkeyR(8) = subr(8);
833 CamelliaSubkeyR(9) = subr(9);
834 tl = subl(7) ^ (subr(7) & ~subr(9));
835 dw = tl & subl(9), tr = subr(7) ^ CAMELLIA_RL1(dw);
837 CamelliaSubkeyR(10) = tr ^ subr(11);
839 CamelliaSubkeyR(11) = subr(10) ^ subr(12);
841 CamelliaSubkeyR(12) = subr(11) ^ subr(13);
843 CamelliaSubkeyR(13) = subr(12) ^ subr(14);
845 CamelliaSubkeyR(14) = subr(13) ^ subr(15);
846 tl = subl(18) ^ (subr(18) & ~subr(16));
847 dw = tl & subl(16), tr = subr(18) ^ CAMELLIA_RL1(dw);
849 CamelliaSubkeyR(15) = subr(14) ^ tr;
851 CamelliaSubkeyR(16) = subr(16);
853 CamelliaSubkeyR(17) = subr(17);
854 tl = subl(15) ^ (subr(15) & ~subr(17));
855 dw = tl & subl(17), tr = subr(15) ^ CAMELLIA_RL1(dw);
857 CamelliaSubkeyR(18) = tr ^ subr(19);
859 CamelliaSubkeyR(19) = subr(18) ^ subr(20);
861 CamelliaSubkeyR(20) = subr(19) ^ subr(21);
863 CamelliaSubkeyR(21) = subr(20) ^ subr(22);
865 CamelliaSubkeyR(22) = subr(21) ^ subr(23);
866 tl = subl(26) ^ (subr(26) & ~subr(24));
867 dw = tl & subl(24), tr = subr(26) ^ CAMELLIA_RL1(dw);
869 CamelliaSubkeyR(23) = subr(22) ^ tr;
871 CamelliaSubkeyR(24) = subr(24);
873 CamelliaSubkeyR(25) = subr(25);
874 tl = subl(23) ^ (subr(23) & ~subr(25));
875 dw = tl & subl(25), tr = subr(23) ^ CAMELLIA_RL1(dw);
877 CamelliaSubkeyR(26) = tr ^ subr(27);
879 CamelliaSubkeyR(27) = subr(26) ^ subr(28);
881 CamelliaSubkeyR(28) = subr(27) ^ subr(29);
883 CamelliaSubkeyR(29) = subr(28) ^ subr(30);
885 CamelliaSubkeyR(30) = subr(29) ^ subr(31);
887 CamelliaSubkeyR(31) = subr(30);
889 CamelliaSubkeyR(32) = subr(32) ^ subr(31);